/* ==========================================================================
   CSS CORE VARIABLES & RESET CONFIGURATION (Clean White Theme UI)
   ========================================================================== */
:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --brand-color: #ef4444; /* Premium Crimson Red matching user screenshot */
    --brand-hover: #dc2626;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --header-height: 70px;
    --mobile-nav-height: 65px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-stack);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Base structural container grid */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   SECTION: DESKTOP HEADER & GLOBAL NAVIGATION TOP BAR
   ========================================================================== */
.main-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}










/* ==========================================================================
   UPDATED: LOGO IMAGE & TEXT ENGINE
   ========================================================================== */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px; /* Smooth spacing gap between image and text if paired together */
    text-decoration: none !important;
}

.logo-image {
    height: 42px;    /* Constrains height safely inside your header layout */
    width: auto;     /* Prevents squishing by auto-calculating correct width proportions */
    object-fit: contain;
    display: inline-block;
    transition: transform 0.2s ease;
}

.logo a:hover .logo-image {
    transform: scale(1.02); /* Clean, modern micro-interaction feedback on hover */
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: inline-block;
}

.logo-text .highlight {
    color: var(--brand-color);
}

/* ==========================================================================
   RESPONSIVE LOGO ADJUSTMENT OVERRIDES
   ========================================================================== */
@media (max-width: 991px) {
    .logo-image {
        height: 34px; /* Scaled down slightly to look proportional inside mobile headers */
    }
    .logo-text {
        font-size: 1.15rem; /* Matches the scaled down image framework elegantly */
    }
}











/* Nav Menu styles */
.desktop-navbar .nav-links {
    display: flex;
    gap: 32px;
}

.desktop-navbar .nav-links > li {
    position: relative;
    padding: 24px 0;
}

.desktop-navbar .nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.desktop-navbar .nav-links a:hover,
.desktop-navbar .nav-links a.active {
    color: var(--brand-color);
}

.desktop-navbar .arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

/* Dropdown Menu styling architectural architecture */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 8px 0;
    z-index: 1100;
}

.scrollable-menu {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-menu li a {
    padding: 10px 16px;
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-secondary);
    color: var(--brand-color);
}

/* CSS Hover Engine for Dropdown menus */
.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-trigger:hover .arrow {
    transform: rotate(180deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-desktop {
    background-color: var(--brand-color);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-primary-desktop:hover {
    background-color: var(--brand-hover);
}

/* ==========================================================================
   SECTION: HERO HEROIC MAIN GRID & FORM LAYOUT
   ========================================================================== */
.main-wrapper {
    margin-top: var(--header-height);
    flex: 1;
}

.hero-section {
    padding: 60px 0;
    background-color: var(--bg-main);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    background-color: #fef2f2;
    color: var(--brand-color);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.feature-item i {
    color: #10b981;
}

/* Premium Form UI styling */
.form-container-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.form-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-align: center;
}

.form-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
}

.guidance-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #ffffff;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--brand-color);
}

.consent-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.consent-checkbox input {
    width: auto;
    margin-top: 3px;
}

.consent-checkbox label {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-submit-whatsapp {
    background-color: var(--brand-color);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    width: 100%;
    border-radius: 50px; /* Pillow oval design matches snapshot exactly */
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-submit-whatsapp:hover {
    background-color: var(--brand-hover);
}

/* ==========================================================================
   FORM ACCESSIBILITY & LIVE VALIDATION FEEDBACK STYLES
   ========================================================================== */
.form-group input.input-error,
.form-group select.input-error {
    border-color: var(--brand-color) !important;
    background-color: #fff5f5; /* Light red tint indicates error state */
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Submit button state when inputs are missing/incorrect */
.btn-submit-whatsapp[disabled] {
    background-color: #cbd5e1 !important; /* Soft disabled slate-gray */
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}



/* ==========================================================================
   SECTION: FIXED PREMIUM FOOTER LAYOUT CONTROLLERS
   ========================================================================== */
.main-footer-section {
    background-color: #f8f9fa; /* Uniform high-end subtle white-gray background */
    border-top: 1px solid #e2e8f0;
    padding: 70px 0 30px;
    margin-top: auto;
}

/* Master Grid Config */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 40px;
}

.footer-brand-column h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.footer-brand-column p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Typography Headers */
.footer-links-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

/* Lists and Internal Groups Spacing */
.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-column .sub-link-group {
    margin-bottom: 24px; /* Creates clean padding between stacked menus in same column */
}

.footer-links-column ul a {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-column ul a:hover {
    color: #ef4444;
    transform: translateX(3px);
}

.two-column-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Social Media Circles */
.social-icon-wrapper {
    display: flex;
    gap: 10px;
}

.social-icon-wrapper a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.social-icon-wrapper a:hover {
    color: #ffffff;
    background-color: #ef4444;
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* ==========================================================================
   FIXED: SINGLE-LINE ACCREDITATION TRUST STRIP
   ========================================================================== */
.accreditation-trust-bar {
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
    margin-top: 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns horizontally along the row axis */
    gap: 32px;
}

.trust-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: #94a3b8;
    white-space: nowrap;
}

.trust-badges-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    flex-wrap: nowrap; /* Enforces a single row on desktop resolutions */
    width: 100%;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* Prevents containers from shrinking and forcing content downwards */
}

/* Institutional Logo Images Controller */
.trust-logo-img {
    height: 32px; /* Restricts heights perfectly so text lines up clean */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(80%);
    transition: filter 0.2s ease;
}

.badge-item:hover .trust-logo-img {
    filter: grayscale(0%) opacity(100%);
}

.pearson-logo {
    height: 24px; /* Slight scale down so it reads proportionately */
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap; /* Prevents titles from breaking into weird double lines */
}

.badge-text span {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
}

/* ==========================================================================
   FOOTER UTILITY BOTTOM BAR
   ========================================================================== */
.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    transition: color 0.15s;
}

.legal-links a:hover {
    color: #ef4444;
}

.copyright-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
   BREAKPOINTS: COMPLETELY BALANCED APP SIMULATION RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1100px) {
    /* Safe fallback threshold if desktop viewport sizes get narrow */
    .accreditation-trust-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .trust-badges-wrapper {
        flex-wrap: wrap; /* Allows safe item wrapping on tablet resolutions */
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .main-footer-section {
        padding: 50px 0 calc(var(--mobile-nav-height) + 20px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-links-column h4 {
        border-left: 3px solid #ef4444;
        padding-left: 8px;
        margin-bottom: 12px;
    }

    .footer-links-column ul {
        padding-left: 12px;
        gap: 12px;
    }

    .two-column-list ul {
        padding-left: 0;
        grid-template-columns: 1fr 1fr;
    }

    .trust-badges-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .badge-item {
        width: 100%;
    }
    
    .badge-text strong,
    .badge-text span {
        white-space: normal; /* Permits standard layout flow on small mobile screens */
    }

    .legal-links {
        gap: 12px 16px;
    }
}

/* ==========================================================================
   SECTION: RESPONSIVE CONTROL & APP INTERFACE INJECTIONS (The Magic)
   ========================================================================== */
/* Hide mobile specific bar on standard devices by default */
.mobile-bottom-navigation {
    display: none;
}
.mobile-sheet-overlay {
    display: none;
}

/* Tablet & Mobile Media Breakpoint */
@media (max-width: 991px) {
    /* Adjust main body buffer zone so contents clear bottom app bar boundary */
    body {
        padding-bottom: calc(var(--mobile-nav-height) + 15px);
    }
    
    /* Hide top nav items and booking buttons from header bar */
    .desktop-navbar, 
    .header-cta-desktop {
        display: none;
    }
    
    .main-header {
        height: 60px;
    }
    .header-container {
        justify-content: center; /* Centers company logotype on compact viewport */
    }
    
    /* Transform Hero Grid into a sequential single column stream stack */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .guidance-form {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Activate Bottom-Anchor Application Navigation Frame */
    .mobile-bottom-navigation {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background-color: #ffffff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding: 4px 8px;
    }

    .mobile-nav-item {
        background: none;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        color: var(--text-muted);
        font-family: var(--font-stack);
        cursor: pointer;
        gap: 4px;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-item .icon-box {
        font-size: 1.2rem;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.15s;
    }

    .mobile-nav-item span {
        font-size: 0.7rem;
        font-weight: 600;
    }

    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: var(--brand-color);
    }

    /* Style primary floating action tab on app layout */
    .mobile-nav-item.action-cta {
        color: var(--brand-color);
    }
    
    /* ==========================================================================
       MODAL BOTTOM SHEET SLIDERS (For Mobile Navigation Experience)
       ========================================================================== */
    .mobile-sheet-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2500;
        pointer-events: none; /* Allows click-through when closed */
    }

    .sheet-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.4);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .sheet-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        max-height: 75vh;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Active visibility triggers applied by JS structural engine */
    .mobile-sheet-overlay.open {
        pointer-events: auto;
    }
    .mobile-sheet-overlay.open .sheet-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .mobile-sheet-overlay.open .sheet-content {
        transform: translateY(0);
    }

    .sheet-header {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sheet-header h3 {
        font-size: 1.1rem;
        font-weight: 700;
    }

    .sheet-close-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-muted);
        cursor: pointer;
    }

    .sheet-body {
        padding: 12px 0;
        overflow-y: auto;
    }
    
    .scrollable-sheet-body {
        max-height: 50vh;
    }

    .sheet-link-item {
        display: block;
        padding: 14px 20px;
        font-size: 0.95rem;
        font-weight: 500;
        border-bottom: 1px solid #f1f5f9;
        color: var(--text-primary);
    }

    .sheet-link-item:active {
        background-color: var(--bg-secondary);
        color: var(--brand-color);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}