/* ============================================
   GoDELF Mobile Onboarding Styles
   Mobile-first responsive design
   ============================================ */

/* ============================================
   GoDELF Color System - Central Variables
   Change colors here to update the entire site
   ============================================ */
:root {
    /* Primary Colors */
    --primary-blue: #318ce7;
    --primary-blue-hover: #ffd700;
    --primary-blue-light: rgba(49, 140, 231, 0.1);
    
    /* Text Colors */
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-gray: #F5F5F5;
    --bg-progress: #E3E3E3;
    
    /* Border Colors */
    --border-color: #E5E7EB;
    --border-light: #E7E7E7;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-card: 1px 1px 11px 0 rgba(154, 154, 154, 0.25);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    /* Logo Color */
    --logo-blue: #318ce7;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.mobile-onboarding {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Keep footer just below the fold on mobile (avoid 100vh issues on tall screens / mobile browser UI) */
:root {
    --mobile-header-height: 56px;
}

/* ============================================
   Header
   ============================================ */
.mobile-header {
    background: #318ce7;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 100%;
    background-color: #318ce7;
}

.mobile-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 4px;
}

.mobile-logo:hover {
    text-decoration: none;
}

.mobile-logo .logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 27px;
    background: #FFFFFF;
    color: #318ce7;
    border-radius: 4px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* Header right section */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    display: inline-flex;
}

.profile-dropdown-btn {
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    box-shadow: 1px 1px 11px 0 rgba(69, 69, 69, 0.25);
    cursor: pointer;
}

.profile-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.profile-arrow {
    width: 12px;
    height: 12px;
    color: #6B7280;
    transition: transform 0.15s ease;
}

.profile-dropdown.open .profile-arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: none;
    z-index: 200;
}

.profile-dropdown.open .profile-dropdown-menu {
    display: block;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}

.profile-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

/* Language Dropdown (flag) */
.lang-dropdown {
    position: relative;
    display: inline-flex;
}

.lang-dropdown-btn {
    height: 42px;
    min-width: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    box-shadow: 1px 1px 11px 0 rgba(69, 69, 69, 0.15);
    cursor: pointer;
}

.lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lang-arrow {
    width: 12px;
    height: 12px;
    color: #6B7280;
    transition: transform 0.15s ease;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 120px;
    background: #FFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: none;
    z-index: 200;
}

.lang-dropdown.open .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
}

.lang-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-dark);
}

.mobile-user-btn {
    width: 42px;
    height: 42px;
    border-radius: 100px;
    background: #FFF;
    box-shadow: 1px 1px 11px 0 rgba(69, 69, 69, 0.25);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-user-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

/* ============================================
   Mobile Menu Overlay
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-white);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    position: absolute;
    right: 12px;
    top: 12px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.mobile-nav a {
    padding: 12px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
}

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

.mobile-nav hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0;
}

.mobile-lang-selector {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
}

.lang-option.active {
    border-color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

/* ============================================
   Mobile Content
   ============================================ */
.mobile-content {
    padding: 0 16px;
    overflow-x: hidden;
}

/* Push footer below viewport - require scroll to see footer */
.mobile-content.push-footer {
    min-height: calc(100vh - var(--mobile-header-height));
}

@supports (height: 100dvh) {
    .mobile-content.push-footer {
        min-height: calc(100dvh - var(--mobile-header-height));
    }
}

/* ============================================
   Search Section (Homepage)
   ============================================ */
.search-section {
    padding: 64px 0 0 0;
}

.search-section.has-results {
    padding-top: 16px;
}

.search-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    margin-bottom: 64px;
    padding-bottom: 0;
    line-height: 1.3;
}

.search-card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.search-card-header {
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-white);
    border-bottom: 1px solid #E7E7E7;
    position: relative;
}

.search-card-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 124px;
    height: 2px;
    background: #000;
}

.search-card-body {
    padding: 0;
}

.search-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 56px;
    padding: 0 16px;
    border-bottom: 1px solid #E7E7E7;
    cursor: pointer;
}

.search-field:last-child {
    border-bottom: none;
    height: 56px;
}

.search-field-label {
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 400;
}

.search-field-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    font-size: 15px;
}

.search-field select,
.search-field-select {
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 24px;
}

.search-field select:focus,
.search-field-select:focus {
    outline: none;
}

/* Display mode for selected values */
.search-field-display {
    justify-content: space-between;
}

.selected-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 24px;
    padding: 0 8px;
    background: var(--primary-blue-light);
    border-radius: 4px;
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
}

.search-field-display {
    position: relative;
    cursor: pointer;
    justify-content: flex-start;
}

.search-field-display .search-field-label {
    flex: 1;
}

.search-field-display .selected-value {
    margin-right: 8px;
}

.search-field-display::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.search-field-select-hidden {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    cursor: pointer;
    z-index: 2;
}

/* Loading spinner in button */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: var(--primary-blue);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.search-btn-wrapper {
    padding: 0 16px 16px 16px;
}

.search-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: var(--primary-blue-hover);
}

/* Location indicator */
.location-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--primary-blue);
    font-size: 14px;
}

/* ============================================
   Exam Types Section
   ============================================ */
.exam-types-section {
    margin-top: 64px;
    padding-top: 0;
    padding-bottom: 48px;
    width: 100%;
}

.exam-types-title {
    color: #000;
    text-align: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0 0 8px 0;
}

.exam-types-subtitle {
    color: #000;
    text-align: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 24px 0;
}

.exam-types-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.exam-type-box {
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: calc((100% - 24px) / 3);
    padding: 12px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.exam-type-box img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* ============================================
   Partner Logos Section
   ============================================ */
.partners-section {
    padding: 24px 0;
    text-align: center;
    width: 100%;
}

.partners-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.partner-logo {
    width: 80px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Stats badge */
.stats-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-dark);
}

.stats-badge strong {
    font-size: 24px;
    font-weight: 700;
}

/* ============================================
   Results Section
   ============================================ */
.results-section {
    padding: 0;
    padding-top: 24px;
    width: 100%;
}

.results-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.filter-pill .filter-value {
    color: var(--text-dark);
    font-weight: 500;
}

/* Session Card */
.session-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.session-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 8px;
}

.session-date {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.session-type {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.session-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.session-details {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: var(--radius-sm);
}

.session-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.session-btn:hover {
    background: var(--primary-blue-hover);
    color: white;
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.back-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.back-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-dark);
}

.progress-bar-wrapper {
    flex: 1;
    height: 9px;
    background: var(--bg-progress);
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-blue);
    border-radius: 8px;
    transition: width 0.3s ease;
}

/* ============================================
   Form Wizard
   ============================================ */

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-label .optional {
    color: var(--text-light);
    font-weight: 400;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

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

/* File Upload */
.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.file-upload:hover {
    border-color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.02);
}

.file-upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-gray);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload.has-file {
    border-color: var(--primary-blue);
    background-color: rgba(37, 99, 235, 0.05);
}

.file-upload.has-file .file-upload-text {
    color: var(--primary-blue);
    font-weight: 500;
}

/* Checkbox & Radio */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.checkbox-group input[type="checkbox"],
.checkbox-group input[type="radio"] {
    display: none;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-input,
.checkbox-group input[type="radio"]:checked + .checkbox-input {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-input::after,
.checkbox-group input[type="radio"]:checked + .checkbox-input::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-dark);
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* Primary Button */
.btn-primary {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
}

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

/* Fixed Bottom Button Container */
.fixed-bottom-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--bg-white);
    z-index: 99;
}

.fixed-bottom-btn .btn-primary {
    margin: 0;
}

/* Add padding to wizard container to account for fixed button */
.wizard-container {
    padding: 0 0 100px;
    width: 100%;
}

/* Error states */
.form-input.error,
.form-select.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 13px;
    margin-top: 6px;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

/* ============================================
   Responsive Adjustments (Tablet+)
   ============================================ */
@media (min-width: 768px) {
    /* Header - full width, content centered */
    .header-content {
        max-width: 500px;
        margin: 0 auto;
        padding: 16px 32px;
    }
    
    /* Main content - centered with max width */
    .mobile-content {
        max-width: 500px;
        margin: 0 auto;
        padding: 0 32px;
    }
    
    /* Footer - full width on desktop (default) */
    .mobile-footer .footer-content {
        max-width: 500px;
        margin: 0 auto;
        padding: 32px 32px;
    }
    
    .search-title {
        font-size: 32px;
    }
    
    .session-card {
        padding: 24px;
    }
    
    /* Fixed bottom button - match content width */
    .fixed-bottom-btn {
        left: 0;
        right: 0;
        padding: 16px 0;
        background: var(--bg-gray);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .fixed-bottom-btn .btn-primary {
        max-width: calc(500px - 64px);
        margin: 0 auto;
    }
    
    /* Progress bar - no max-width, inherits from parent */
    .progress-container {
        padding: 16px 0;
    }
    
    /* Wizard container adjustments */
    .wizard-container {
        padding: 24px 0 90px;
    }
    
    /* Form layout improvements */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Exam types grid on desktop */
    .exam-types-grid {
        gap: 16px;
    }
}

/* Large desktop */
@media (min-width: 1024px) {
    .header-content {
        max-width: 700px;
        padding: 16px 48px;
    }
    
    .mobile-content {
        max-width: 700px;
        padding: 0 48px;
    }
    
    .mobile-footer .footer-content {
        max-width: 700px;
        padding: 40px 48px;
    }
    
    .fixed-bottom-btn .btn-primary {
        max-width: calc(700px - 96px);
    }
    
    .wizard-container {
        padding: 24px 0 100px;
    }
    
    .search-title {
        font-size: 36px;
    }
}

/* XL desktop */
@media (min-width: 1280px) {
    .header-content,
    .mobile-content,
    .mobile-footer .footer-content {
        max-width: 840px;
    }
    
    .fixed-bottom-btn .btn-primary {
        max-width: calc(840px - 96px);
    }
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 14px;
    width: 100%;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-danger {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-info {
    background: #EFF6FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

/* School Alert */
.school-alert {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    font-size: 14px;
    width: 100%;
}

/* ============================================
   Exam Info Card
   ============================================ */
.exam-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 0 0 16px 0;
    box-shadow: var(--shadow-card);
    width: 100%;
}

.exam-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.exam-info-row:last-child {
    border-bottom: none;
}

.exam-info-label {
    color: var(--text-gray);
    font-size: 14px;
}

.exam-info-value {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   Modal Adjustments
   ============================================ */
.modal-content {
    border-radius: var(--radius-md);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
}

.modal-body {
    padding: 16px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    gap: 12px;
}

/* ============================================
   Mobile Footer
   ============================================ */
.mobile-footer {
    background: #318ce7;
    color: #FFFFFF;
    padding: 40px 16px;
    margin-top: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.footer-logo .logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 24px;
    background: #FFFFFF;
    color: #318ce7;
    border-radius: 3px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: #FFFFFF;
}

.footer-login-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-login-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    background: #FFFFFF;
    color: #111111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.footer-login-links a:hover {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
}

.footer-copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* ============================================
   Static Pages (About / Contact / Terms)
   ============================================ */
.static-page {
    padding-top: 48px;
    padding-bottom: 48px;
}

.static-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    line-height: 1.2;
    text-align: center;
}

.static-page-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.static-page-card + .static-page-card {
    margin-top: 16px;
}

.static-page-card .textarea-contents,
.static-page-card .textarea-contents p,
.static-page-card p {
    color: var(--text-dark);
}

.static-page-map iframe {
    width: 100%;
    border: 0;
    border-radius: var(--radius-md);
    display: block;
}

/* ============================================
   Login Page
   ============================================ */
.login-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

.login-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin: 0 0 24px 0;
}

.login-resend {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-top: 16px;
}

.login-resend a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.login-resend a:hover {
    text-decoration: underline;
}

/* ============================================
   Recap Step
   ============================================ */
.recap-section {
    margin-bottom: 24px;
}

.recap-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.recap-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-card);
}


.recap-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.recap-row:last-child {
    border-bottom: none;
}

.recap-row-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
}

.recap-label {
    font-size: 14px;
    color: var(--text-gray);
    flex-shrink: 0;
}

.recap-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
    margin-left: 16px;
}

.recap-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ============================================
   Payment Page
   ============================================ */
.payment-container {
    padding-top: 16px;
    padding-bottom: 100px;
}

/* Preferences */
.preferences-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preference-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s;
}

.preference-option.selected {
    border-color: var(--primary-blue);
    background: var(--primary-blue-light);
}

.preference-option input {
    display: none;
}

.preference-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.preference-option.selected .preference-check {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.preference-option.selected .preference-check::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.preference-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preference-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.preference-price {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Payment Card */
.payment-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

#card-element {
    padding: 12px 0;
}

.payment-error {
    color: #EF4444;
    font-size: 13px;
    margin-top: 8px;
}

/* Payment Total */
.payment-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.payment-total-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-total-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

