/* ========================================
   TimeGroup Frontend Styles
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c2c2c;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* CSS Variables */
:root {
    --primary-blue: #0066cc;
    --primary-orange: #ff6b35;
    --light-blue: #4d94ff;
    --light-orange: #ff8c5a;
    --dark-blue: #004c99;
    --dark-orange: #cc5529;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 14px;
    color: #2c2c2c;
    padding: 0;
    font-family: inherit;
    margin: 0;
}

.dropdown-toggle:hover {
    color: var(--primary-blue);
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.dropdown-open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown.dropdown-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f0f7ff;
    color: var(--primary-blue);
}

.dropdown-menu .submenu-item {
    position: relative;
}

.dropdown-menu .submenu-item > a::after {
    content: '›';
    position: absolute;
    right: 15px;
    font-size: 16px;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.submenu-item:hover .submenu,
.submenu-item.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Active page indicator */
.nav-links li.active > a,
.nav-links li.active > button {
    color: var(--primary-blue);
    font-weight: 600;
    position: relative;
}

.nav-links li.active > a::after,
.nav-links li.active > button::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 2px;
}

/* Adjust for dropdown arrow */
.nav-links li.active.dropdown > button::after {
    right: 15px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c2c2c;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mobile-toggle:active {
    background-color: rgba(0, 0, 0, 0.08);
}

/* Close button - hidden on desktop */
.mobile-close-button {
    display: none;
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: #000000;
    color: #ffffff;
    padding: 80px 0 0;
    margin-top: 80px;
}

.footer-intro {
    margin-bottom: 60px;
}

.footer-intro h2 {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    color: #2c2c2c;
    text-align: center;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #444;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
    color: #ffffff;
    line-height: 1.4;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 14px;
}

.footer-column a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-services {
    grid-column: span 3;
}

.footer-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    font-size: 13px;
    color: #999;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-label {
    color: #d0d0d0;
    font-size: 14px;
    margin-right: 10px;
}

.footer-social a {
    color: #d0d0d0;
    font-size: 20px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-orange);
}

/* Social Icons */
.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon svg {
    transition: fill 0.3s ease;
}

/* Disabled Social Icons */
.social-icon-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.social-icon-disabled:hover {
    transform: none;
    color: #d0d0d0;
}

.social-icon-disabled svg {
    opacity: 0.6;
}

/* Simple footer version (for some pages) */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-blue);
}

/* ========================================
   Common Components
   ======================================== */

/* Buttons */
.btn-primary {
    padding: 16px 45px;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.btn-primary:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
    padding: 16px 45px;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid var(--primary-blue);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #2c2c2c;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Section Headers */
.section-tag {
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c2c2c;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

/* Hero Sections */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
    
    .footer-services {
        grid-column: span 3;
    }
    
    .footer-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .footer-intro h2 {
        font-size: 42px;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-services {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    /* Navigation - Google Material Design Guidelines */
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 101;
        position: relative;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
    }
    
    header {
        position: relative;
    }
    
    nav {
        position: relative;
    }
    
    /* Navigation Drawer - Material Design 3 */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        overflow-y: auto;
        max-height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }
    
    /* Drawer Header - Material Design */
    .nav-links::before {
        content: '';
        display: block;
        width: 100%;
        height: 64px;
        background: #ffffff;
        border-bottom: 1px solid #e5e5e5;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    
    /* Close button styles - Mobile only */
    .mobile-close-button {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        cursor: pointer;
        color: #2c2c2c;
        z-index: 1002;
        background: transparent;
        border: none;
        border-radius: 50%;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-close-button:hover {
        background-color: rgba(0, 0, 0, 0.04);
    }
    
    .mobile-close-button:active {
        background-color: rgba(0, 0, 0, 0.08);
    }
    
    .nav-links li {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    /* Menu items - 48px minimum tap target */
    .nav-links > li > a,
    .nav-links > li > button {
        width: 100%;
        min-height: 48px;
        padding: 16px 16px;
        display: flex;
        align-items: center;
        font-size: 16px;
        line-height: 24px;
        color: #2c2c2c;
        text-decoration: none;
        background: transparent;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-links > li > a:hover,
    .nav-links > li > a:focus,
    .nav-links > li > button:hover,
    .nav-links > li > button:focus {
        background-color: rgba(0, 0, 0, 0.04);
        outline: none;
    }
    
    .nav-links > li > a:active,
    .nav-links > li > button:active {
        background-color: rgba(0, 0, 0, 0.08);
    }
    
    /* Dropdown menu - Material Design */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-blue);
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        display: none;
        width: 100%;
        background: #f8f9fa;
        padding: 0;
    }
    
    .dropdown.dropdown-open .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Submenu items - 48px minimum tap target */
    .dropdown-menu a {
        width: 100%;
        min-height: 48px;
        padding: 16px 16px 16px 40px;
        display: flex;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        color: #2c2c2c;
        text-decoration: none;
        background: transparent;
        border-bottom: 1px solid #e5e5e5;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        background-color: rgba(0, 0, 0, 0.04);
        outline: none;
    }
    
    .dropdown-menu a:active {
        background-color: rgba(0, 0, 0, 0.08);
    }
    
    /* Submenu - Material Design */
    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 0;
        display: none;
        width: 100%;
        background: #f0f0f0;
        padding: 0;
    }
    
    .submenu-item.active .submenu {
        display: block;
    }
    
    .submenu a {
        padding-left: 56px;
    }
    
    .dropdown-menu .submenu-item > a::after {
        content: '▾';
        margin-left: auto;
        font-size: 16px;
    }
    
    /* Active state - Material Design */
    .nav-links li.active > a::after,
    .nav-links li.active > button::after {
        display: none;
    }
    
    .nav-links li.active > a,
    .nav-links li.active > button {
        background-color: rgba(0, 102, 204, 0.08);
        color: var(--primary-blue);
        font-weight: 500;
        border-left: 3px solid var(--primary-blue);
        padding-left: 13px;
    }
    
    /* Language switcher mobile - Material Design */
    .nav-language-switcher {
        width: 100%;
        margin: 8px 0 0 0;
        padding: 0 16px 16px 16px;
        border-top: 1px solid #e5e5e5;
        margin-top: 8px;
    }
    
    .language-dropdown {
        width: 100%;
    }
    
    .language-toggle {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        background: var(--primary-blue);
        color: #ffffff;
        padding: 14px 16px;
        font-size: 16px;
        font-weight: 500;
        border-radius: 4px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .language-toggle:hover {
        background: #0052a3;
    }
    
    .language-toggle:active {
        background: #004c99;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    .language-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid var(--primary-blue);
        margin-left: 0;
        margin-top: 8px;
        display: none;
        width: 100%;
        min-width: auto;
        padding: 0;
        background: #f8f9fa;
        border-radius: 4px;
    }
    
    .language-dropdown.active .language-menu {
        display: block;
    }
    
    .language-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Language menu items - 48px minimum tap target */
    .language-menu a {
        width: 100%;
        min-height: 48px;
        padding: 16px 16px;
        display: flex;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        color: #2c2c2c;
        text-decoration: none;
        background: transparent;
        border-bottom: 1px solid #e5e5e5;
        transition: background-color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .language-menu a:hover,
    .language-menu a:focus {
        background-color: rgba(0, 0, 0, 0.04);
        outline: none;
    }
    
    .language-menu a:active {
        background-color: rgba(0, 0, 0, 0.08);
    }
    
    .language-menu a.active {
        background-color: rgba(0, 102, 204, 0.08);
        color: var(--primary-blue);
        font-weight: 500;
    }
    
    /* Login button mobile - Material Design */
    .nav-login-button {
        width: 100%;
        margin: 8px 0 0 0;
        padding: 0 16px 16px 16px;
    }
    
    .btn-login {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        font-size: 14px;
        font-weight: 500;
        padding: 14px 16px;
        border-radius: 4px;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn-login:active {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    /* Typography */
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    /* Container */
    .container {
        padding: 0 16px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Footer */
    .footer-intro h2 {
        font-size: 38px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-services {
        grid-column: span 1;
    }
    
    .footer-services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    footer {
        padding: 60px 0 0;
    }
    
    .footer-intro {
        margin-bottom: 40px;
    }
    
    .footer-intro h2 {
        font-size: 32px;
    }
}

/* ========================================
   Appointments / Book page (Material Design aligned)
   ======================================== */

.appointments-page {
    min-height: 100vh;
    background: #fafafa;
}

.appointments-hero {
    padding: 64px 0 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 50%, var(--primary-orange) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.appointments-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.appointments-hero .container {
    position: relative;
    z-index: 1;
}

.appointments-hero h1 {
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.appointments-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search/filter surface (Material surface, elevation 1) */
.appointments-search {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.appointments-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .appointments-search-grid {
        grid-template-columns: 1fr;
    }
}

.appointments-search .form-group {
    margin: 0;
}

.appointments-search label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.appointments-search .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointments-search .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

/* Category tabs (like pricing page) */
.appointments-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 32px;
    border-bottom: 2px solid #e0e0e0;
}

.appointments-tab {
    padding: 14px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.appointments-tab:hover {
    color: var(--primary-blue);
}

.appointments-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.appointments-tab:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .appointments-tabs {
        gap: 8px 12px;
    }
    .appointments-tab {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }
}

/* Cards grid */
.appointments-main {
    padding: 48px 0 64px;
}

.appointments-specialist-services-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 1.5rem;
}

.appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Service card (Material card, elevation 1, hover elevation 2) – equal height, button at bottom, left accent like other pages */
.appointments-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-orange);
}

.appointments-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.appointments-card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: #fff;
    padding: 20px;
}

.appointments-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
    line-height: 1.3;
}

.appointments-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    opacity: 0.95;
}

.appointments-card-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.appointments-card-languages {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.appointments-card-flag {
    font-size: 1.125rem;
    line-height: 1;
}

.appointments-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.appointments-card-description {
    color: #5f6368;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.appointments-card-features {
    margin-bottom: 16px;
}

.appointments-card-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #5f6368;
    margin-bottom: 6px;
}

.appointments-card-feature-icon {
    color: #1e8e3e;
    font-weight: 700;
}

.appointments-card-specialists {
    margin-bottom: 20px;
}

/* Push Book Now to bottom of card (same position on every card) */
.appointments-card-body .btn-book {
    margin-top: auto;
}

.appointments-card-specialists-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 8px;
}

.appointments-card-specialists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appointments-card-specialist-tag {
    background: #e8f0fe;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
}

.appointments-card-specialist-link {
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.appointments-card-specialist-link:hover,
.appointments-card-specialist-link:focus {
    background: #d2e3fc;
    color: var(--primary-blue);
    text-decoration: none;
}

/* Primary CTA (Material filled button) */
.btn-book {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-orange);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
}

.btn-book:hover {
    background: var(--dark-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.btn-book:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.35);
}

/* Help section */
.appointments-help {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-top: 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.appointments-help h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: #2c2c2c;
}

.appointments-help p {
    font-size: 1rem;
    color: #5f6368;
    margin-bottom: 24px;
    line-height: 1.5;
}

.appointments-help-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.btn-appointments-outlined {
    padding: 12px 24px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-appointments-outlined:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-appointments-filled {
    padding: 12px 24px;
    background: var(--primary-orange);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-appointments-filled:hover {
    background: var(--dark-orange);
}

@media (max-width: 768px) {
    .appointments-hero {
        padding: 48px 0 56px;
    }
    .appointments-hero h1 {
        font-size: 2rem;
    }
    .appointments-hero p {
        font-size: 1rem;
    }
    .appointments-main {
        padding: 32px 0 48px;
    }
    .appointments-grid {
        grid-template-columns: 1fr;
    }
    .appointments-help {
        padding: 32px 24px;
        margin-top: 32px;
    }
    .appointments-help h2 {
        font-size: 1.5rem;
    }
    .appointments-help-buttons {
        flex-direction: column;
    }
}

/* ========================================
   Appointments Book (exact meeting) page – Material Design
   ======================================== */

.appointments-book-page {
    min-height: 100vh;
    background: #fafafa;
}

.appointments-book-hero {
    padding: 64px 0 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 50%, var(--primary-orange) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.appointments-book-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 204, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.appointments-book-hero .container {
    position: relative;
    z-index: 1;
}

.appointments-book-hero .appointments-book-title {
    font-size: 2.75rem;
    font-weight: 400;
    margin-bottom: 16px;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.appointments-book-hero .appointments-book-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.appointments-book-main {
    padding: 48px 0 64px;
}

.appointments-book-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.appointments-book-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-orange);
}

.appointments-book-card .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.appointments-book-card .section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.appointments-book-back {
    padding: 10px 20px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.appointments-book-back:hover {
    background: var(--primary-blue);
    color: #fff;
}

.appointments-book-card .form-group {
    margin-bottom: 20px;
}

.appointments-book-card .form-group:last-of-type {
    margin-bottom: 0;
}

.appointments-book-card label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.appointments-book-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appointments-book-card .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.appointments-book-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.appointments-book-check {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 24px;
}

.appointments-book-check:hover {
    background: var(--dark-blue);
}

.appointments-book-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.appointments-book-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointments-book-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
}

.appointments-book-info-box {
    background: #e8f0fe;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--dark-blue);
}

.appointments-book-loading {
    text-align: center;
    padding: 48px 20px;
}

.appointments-book-loading h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.appointments-book-loading p {
    font-size: 0.9375rem;
    color: #5f6368;
}

.appointments-book-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0, 102, 204, 0.2);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: appointments-book-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes appointments-book-spin {
    to { transform: rotate(360deg); }
}

.appointments-book-slots {
    margin-top: 24px;
}

.appointments-book-date-group {
    margin-bottom: 24px;
}

.appointments-book-date-header {
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #2c2c2c;
    margin-bottom: 12px;
}

.appointments-book-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.appointments-book-slot-btn {
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    font-size: 0.875rem;
}

.appointments-book-slot-btn:hover:not(:disabled) {
    border-color: var(--primary-blue);
    background: #e8f0fe;
}

.appointments-book-slot-btn.selected {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.appointments-book-slot-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f5f5f5;
}

.appointments-book-quick-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 24px;
}

.appointments-book-quick-btn {
    padding: 10px 18px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.appointments-book-quick-btn:hover {
    background: var(--primary-blue);
    color: #fff;
}

.appointments-book-form-empty {
    text-align: center;
    padding: 48px 20px;
    color: #5f6368;
}

.appointments-book-form-empty h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.appointments-book-form-empty p {
    font-size: 0.9375rem;
}

.appointments-book-selected-slot {
    background: linear-gradient(135deg, #e8f0fe 0%, #bbdefb 100%);
    border: 1px solid rgba(0, 102, 204, 0.25);
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.appointments-book-selected-slot-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.appointments-book-selected-slot-details {
    font-size: 0.875rem;
    color: var(--dark-blue);
}

.appointments-book-selected-slot-details p {
    margin: 0 0 4px 0;
}

.appointments-book-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(255, 107, 53, 0.3);
}

.appointments-book-submit:hover:not(:disabled) {
    background: var(--dark-orange);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}

.appointments-book-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appointments-book-no-slots {
    text-align: center;
    padding: 48px 20px;
}

.appointments-book-no-slots h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 8px;
}

.appointments-book-no-slots p {
    font-size: 0.9375rem;
    color: #5f6368;
}

.appointments-book-no-slots-icon {
    width: 64px;
    height: 64px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #9e9e9e;
}

@media (max-width: 992px) {
    .appointments-book-grid {
        grid-template-columns: 1fr;
    }
    .appointments-book-card.form-section {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .appointments-book-hero {
        padding: 48px 0 56px;
    }
    .appointments-book-hero .appointments-book-title {
        font-size: 2rem;
    }
    .appointments-book-hero .appointments-book-description {
        font-size: 1rem;
    }
    .appointments-book-main {
        padding: 32px 0 48px;
    }
    .appointments-book-date-grid {
        grid-template-columns: 1fr;
    }
    .appointments-book-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .appointments-book-card .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .appointments-book-card {
        padding: 20px;
    }
}
