/* SAFIIR Design - Unified Blue Color Scheme */
:root {
    /* Primary Blue Colors */
    --primary-blue: #2563eb;      /* Main blue - #2563eb */
    --primary-blue-light: #3b82f6; /* Light blue */
    --primary-blue-dark: #1d4ed8; /* Dark blue */
    --primary-blue-darker: #1e40af; /* Darker blue */
    
    /* Accent Blue Colors */
    --accent-blue: #60a5fa;       /* Accent light blue */
    --accent-blue-dark: #1e3a8a;  /* Accent dark blue */
    
    /* Legacy compatibility (mapped to blue) */
    --safiir-green: #2563eb;      /* Mapped to blue */
    --safiir-yellow: #3b82f6;     /* Mapped to light blue */
    --safiir-blue: #2563eb;       /* Main blue */
    --primary-green: #2563eb;     /* Mapped to blue */
    --primary-yellow: #3b82f6;    /* Mapped to light blue */
    --dark-green: #1d4ed8;        /* Mapped to dark blue */
    --dark-yellow: #1e40af;       /* Mapped to darker blue */
    --dark-blue: #1d4ed8;         /* Dark blue */
    
    /* Blue Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    --gradient-blue-light: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-blue-dark: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    
    /* Neutral Colors */
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f1f5f9;
    --white: #FFFFFF;
    --border-color: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-bottom: 100px; /* Space for fixed button at bottom */
}

/* Prevent horizontal scroll on mobile */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    min-height: 44px; /* Better touch target */
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.btn-link:hover {
    color: var(--text-dark);
}

.btn-finish-app {
    background: var(--text-dark);
    color: white !important;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-finish-app:hover {
    background: #333;
    color: white !important;
}

@media (max-width: 768px) {
    .btn-finish-app {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .btn-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(96, 165, 250, 0.05) 100%);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.02) 50%, rgba(96, 165, 250, 0.02) 100%);
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem 1rem;
    }
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero h1 .highlight {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

/* Visa Checker Form */
.visa-checker {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.checker-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .checker-form {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

.checker-form .form-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .checker-form .form-group {
        min-width: 100%;
        width: 100%;
    }
}

.checker-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.2;
}

.checker-form .form-group > div {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--white);
    color: var(--text-dark);
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
        height: 44px;
        min-height: 44px;
    }
}

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

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

select.form-control:focus,
select.form-control:active {
    z-index: 10001;
}

.btn-get-started {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-get-started:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

@media (max-width: 768px) {
    .btn-get-started {
        width: 100%;
        margin-top: 0.5rem;
    }
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-get-started:hover::before {
    left: 100%;
}

.btn-get-started:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Trustpilot */
.trustpilot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .trustpilot {
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

.trustpilot-stars {
    color: var(--primary-blue);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Application Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    padding-bottom: 120px; /* Space for fixed button */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-height: calc(100vh - 200px);
    overflow: visible;
    position: relative;
}

.app-main {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    order: 1; /* First: Form data / Visa type selection */
}

.app-sidebar {
    position: relative;
    order: 2; /* Second: Summary */
    width: 100%;
    max-width: 100%;
}

.order-summary {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.order-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.15rem;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.summary-label {
    color: var(--text-gray);
}

.summary-value {
    color: var(--text-dark);
    font-weight: 600;
}

.btn-continue {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Better touch target */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation; /* Prevent double-tap zoom */
}

/* Fixed button container at bottom - Always visible */
.btn-continue-container {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    background: var(--white) !important;
    padding: 1.5rem 2rem !important;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
    z-index: 99999 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.btn-continue-container .btn-continue {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    width: 100%;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-continue:hover::before {
    left: 100%;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
    transform: translateX(-50%);
}

.step:last-child::after {
    display: none;
}

.step.active::after,
.step.completed::after {
    background: var(--gradient-primary);
    height: 3px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.step.active .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--text-dark);
}

/* Form Styles */
.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.form-section p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.traveler-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: var(--white);
}

.traveler-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.traveler-title {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.btn-add-traveler {
    background: var(--white);
    border: 2px dashed var(--border-color);
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-add-traveler:hover {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(96, 165, 250, 0.05) 100%);
    color: var(--primary-blue);
}

.btn-add-traveler span {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-remove-traveler {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-remove-traveler:hover {
    background: #ef5350;
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.form-row.full {
    grid-template-columns: 1fr;
}

.form-row .form-group {
    margin-bottom: 0;
}

.date-inputs-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.date-inputs-row .form-control {
    width: 100%;
}

/* Processing Options */
.processing-options {
    display: grid;
    gap: 1rem;
}

.processing-option {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 60px; /* Better touch target */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.processing-option:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.processing-option.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(96, 165, 250, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.option-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.option-name {
    font-weight: 600;
    color: var(--text-dark);
}

.option-days {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Alert Banner */
.alert-banner {
    background: var(--dark-teal);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-text {
    flex: 1;
}

.btn-go-to-app {
    background: white;
    color: var(--dark-teal);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 1rem;
}

/* Review Page */
.review-section {
    margin-bottom: 2rem;
}

.review-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.review-card h4 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.2rem;
}

.traveler-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Advanced Country Selector */
.country-selector-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
    isolation: isolate;
}

.country-selector-wrapper.open {
    z-index: 99999 !important;
    position: relative;
    isolation: isolate;
}

.country-selector-display {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
}

.country-selector-display:hover {
    border-color: var(--primary-blue);
}

.country-selector-display:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.country-display-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.country-placeholder {
    color: var(--text-gray);
}

.country-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.country-name {
    font-weight: 500;
    color: var(--text-dark);
}

.country-arrow {
    color: var(--text-gray);
    font-size: 0.75rem;
    transition: transform 0.3s;
}

.country-selector-display.open .country-arrow {
    transform: rotate(180deg);
}

.country-selector-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 99999 !important;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.country-search-box {
    position: relative;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.country-search-input {
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.country-search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.country-search-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    pointer-events: none;
}

.country-options-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.country-option:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(96, 165, 250, 0.05) 100%);
}

.country-option.selected {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(96, 165, 250, 0.1) 100%);
    font-weight: 600;
}

.country-check {
    margin-left: auto;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.country-no-results {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-gray);
    font-style: italic;
}

/* Scrollbar styling for country options */
.country-options-list::-webkit-scrollbar {
    width: 6px;
}

.country-options-list::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.country-options-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.country-options-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-gray);
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 1.2rem;
        gap: 0.4rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .header-actions {
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
        width: 100%;
        justify-content: flex-end;
    }
    
    .btn-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Visa Checker Form Mobile */
    .visa-checker {
        max-width: 100%;
        padding: 0;
    }
    
    .checker-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .checker-form .form-group {
        min-width: 100%;
        width: 100%;
    }
    
    .checker-form .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .btn-get-started {
        width: 100%;
        padding: 0 1.5rem;
        margin-top: 0.5rem;
        height: 48px;
    }
    
    /* App Container Mobile */
    .app-container {
        display: flex;
        flex-direction: column;
        padding: 1rem;
        padding-bottom: 120px !important;
        gap: 1.5rem;
        overflow: visible !important;
        position: relative !important;
    }
    
    .app-main {
        padding: 1.5rem 1rem;
        order: 1; /* First: Form data / Visa type selection */
    }
    
    .app-sidebar {
        position: static;
        order: 2; /* Second: Summary */
        width: 100%;
        max-width: 100%;
    }
    
    .order-summary {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .order-summary h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Progress Steps Mobile */
    .progress-steps {
        margin-bottom: 2rem;
        padding: 0;
        max-width: 100%;
    }
    
    .progress-steps::before {
        top: 18px;
        height: 2px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .step-label {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .step.active::after,
    .step.completed::after {
        height: 2px;
        top: 18px;
    }
    
    /* Form Section Mobile */
    .form-section {
        margin-bottom: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .form-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Traveler Card Mobile */
    .traveler-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.25rem;
    }
    
    .traveler-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .traveler-title {
        font-size: 1rem;
    }
    
    /* Form Controls Mobile */
    .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
        height: 44px;
    }
    
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.form-group:has(.country-selector-wrapper.open) {
    z-index: 99999 !important;
    position: relative;
    isolation: isolate;
}
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .date-inputs-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* Buttons Mobile */
    .btn-continue {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    
    .btn-continue-container {
        padding: 1rem !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--white) !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        transform: none !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .btn-continue-container .btn-continue {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Add padding to app-container to prevent content from being hidden behind fixed button */
    .app-container {
        padding-bottom: 120px !important;
    }
    
    body {
        padding-bottom: 100px !important;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    /* Processing Options Mobile */
    .processing-options {
        gap: 0.75rem;
    }
    
    .processing-option {
        padding: 1.25rem 1rem;
    }
    
    .option-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .option-price {
        font-size: 1.1rem;
        align-self: flex-end;
    }
    
    /* Country Selector Mobile */
    .country-selector-dropdown {
        max-height: 300px;
        left: 0;
        right: 0;
    }
    
    .country-selector-display {
        height: 44px;
        min-height: 44px;
        padding: 0.75rem 0.875rem;
    }
    
    /* Review Card Mobile */
    .review-card {
        padding: 1.5rem 1rem;
    }
    
    .review-card h4 {
        font-size: 1.1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Trustpilot Mobile */
    .trustpilot {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .trustpilot-stars {
        font-size: 1rem;
    }
    
    /* Why Choose Us Mobile */
    section {
        padding: 2rem 1rem !important;
    }
    
    section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    section > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* File Upload Mobile */
    .document-upload {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .document-preview {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 1.5rem 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    /* Button container for small mobile */
    .btn-continue-container {
        padding: 0.875rem !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--white) !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .btn-continue {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
    }
    
    .app-container {
        display: flex;
        flex-direction: column;
        padding: 0.75rem;
        padding-bottom: 100px !important;
        gap: 1rem;
        overflow: visible !important;
        position: relative !important;
    }
    
    body {
        padding-bottom: 90px !important;
    }
    
    .app-main {
        padding: 1rem 0.75rem;
        order: 1; /* First: Form data / Visa type selection */
    }
    
    .app-sidebar {
        order: 2; /* Second: Summary */
    }
    
    .form-section h2 {
        font-size: 1.3rem;
    }
    
    .traveler-card {
        padding: 1.25rem 0.75rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .btn-continue {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Button container for small mobile - ensure visibility */
    .btn-continue-container {
        padding: 0.875rem !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: var(--white) !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15) !important;
        transform: none !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    .btn-continue-container .btn-continue {
        width: 100% !important;
        padding: 0.875rem 1rem !important;
        font-size: 0.95rem !important;
        margin: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .checker-form {
        gap: 0.75rem;
    }
    
    .processing-option {
        padding: 1rem 0.75rem;
    }
    
    .review-card {
        padding: 1.25rem 0.75rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr 320px;
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .checker-form {
        flex-wrap: wrap;
    }
    
    .checker-form .form-group {
        min-width: calc(50% - 0.5rem);
    }
    
    .btn-get-started {
        width: 100%;
        margin-top: 0.75rem;
    }
}

/* Auth Card Styles */
.auth-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #42a5f5;
}

.btn-social {
    transition: all 0.2s;
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

