/* ==========================================================================
   Canada eTA Services - Modern, Clean & User-Friendly Custom Stylesheet
   ========================================================================== */

:root {
    --brand-primary: #1a365d;       /* Deep Trustworthy Navy */
    --brand-primary-dark: #0f233a;  /* Darker Navy for hero / footers */
    --brand-primary-light: #2563eb; /* Vibrant Blue for links and highlights */
    --brand-accent: #dc2626;        /* Official Canada Red accent */
    --brand-green: #16a34a;         /* Friendly CTA Green */
    --brand-green-hover: #15803d;
    --surface-bg: #f8fafc;          /* Soft Slate Background */
    --surface-card: #ffffff;        /* Pure White Card */
    --border-color: #e2e8f0;        /* Crisp Slate Border */
    --border-input: #cbd5e1;        /* Form Border */
    --text-heading: #0f172a;        /* High Contrast Slate 900 */
    --text-body: #334155;           /* Readable Slate 700 */
    --text-muted: #64748b;          /* Subtle Slate 500 */
}

/* Global Reset & Base Enhancements */
body {
    background-color: var(--surface-bg) !important;
    color: var(--text-body) !important;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
}

/* Force light text inside dark sections & headers */
.hero-gradient-navy h1,
.hero-gradient-navy h2,
.hero-gradient-navy h3,
.hero-gradient-navy h4,
.hero-gradient-navy h5,
.hero-gradient-navy h6,
.hero-banner-section h1,
.hero-banner-section h2,
.hero-banner-section h3,
.hero-banner-section h4,
.hero-banner-section h5,
.hero-banner-section h6,
.form-section-header h1,
.form-section-header h2,
.form-section-header h3,
.form-section-header h4,
.form-section-header span,
.text-white {
    color: #ffffff !important;
}

/* Modern Card */
.clean-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.clean-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

/* Modern Hero Navy Gradient */
.hero-gradient-navy {
    background: linear-gradient(135deg, #091526 0%, #17355e 50%, #1d4ed8 100%) !important;
    color: #ffffff !important;
}

/* Clean Button Styles */
.btn-primary-cta {
    background-color: var(--brand-green) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary-cta:hover {
    background-color: var(--brand-green-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(22, 163, 74, 0.25);
}

.btn-navy {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-navy:hover {
    background-color: var(--brand-primary-dark) !important;
    transform: translateY(-1px);
}

/* Clean Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="time"],
select.clean-select,
select {
    height: 46px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-input) !important;
    padding: 8px 14px !important;
    font-size: 0.9375rem !important;
    color: var(--text-heading) !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
    border-color: var(--brand-primary-light) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* Section Header Bar on Form */
.form-section-header {
    background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 14px 20px;
}

.form-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Clean Navigation Link Pills */
.nav-link-pill {
    padding: 8px 16px;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link-pill:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.nav-link-pill.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-weight: 600;
}

/* Country Grid Modern Styling */
.country-pill-item {
    transition: background-color 0.15s ease, color 0.15s ease;
    padding: 8px 12px;
    font-size: 0.875rem;
    text-align: center;
}

.country-pill-item:hover {
    background-color: #eff6ff !important;
}

.country-pill-item a {
    color: var(--brand-primary) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.country-pill-item:hover a {
    color: var(--brand-primary-light) !important;
    text-decoration: underline !important;
}

/* User-friendly Alert & Notice Boxes */
.notice-box-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 16px;
}

.notice-box-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
}

.notice-box-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 16px;
}

/* Form Progress Stepper */
.step-progress-wrapper {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.step-progress-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
}

.step-progress-item.active {
    background: #ffffff;
    color: var(--brand-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.step-progress-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #cbd5e1;
    color: #ffffff;
}

.step-progress-item.active .step-progress-badge {
    background: var(--brand-primary);
    color: #ffffff;
}

/* Radio Option Cards (Processing Speeds) */
.option-select-card {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-select-card:hover {
    border-color: #94a3b8;
    background-color: #f8fafc;
}

.option-select-card.selected,
.option-select-card:has(input:checked) {
    border-color: var(--brand-green);
    background-color: #f0fdf4;
}

/* Radio & Checkbox Enhancements */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--brand-green);
}

/* Smooth Transitions */
a, button {
    transition: all 0.15s ease-in-out;
}

/* Responsive Grid Utilities (Essential for pre-compiled builds) */
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .md\:col-span-3 { grid-column: span 3 / span 3 !important; }
    .md\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .md\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .md\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .md\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .md\:col-span-12 { grid-column: span 12 / span 12 !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
}

/* Emerald Color Utilities */
.bg-emerald-50 { background-color: #ecfdf5 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-500 { background-color: #10b981 !important; }
.bg-emerald-600 { background-color: #16a34a !important; }
.bg-emerald-700 { background-color: #15803d !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-500 { color: #10b981 !important; }
.text-emerald-600 { color: #16a34a !important; }
.text-emerald-700 { color: #15803d !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }
.border-emerald-500 { border-color: #10b981 !important; }

/* Spacing & Padding System (Vital for pre-compiled builds) */
.py-8  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-10 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
.py-12 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.py-14 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
.py-16 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-20 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.pt-6  { padding-top: 1.5rem !important; }
.pt-8  { padding-top: 2rem !important; }
.pt-10 { padding-top: 2.5rem !important; }
.pt-12 { padding-top: 3rem !important; }
.pt-14 { padding-top: 3.5rem !important; }
.pt-16 { padding-top: 4rem !important; }
.pt-20 { padding-top: 5rem !important; }
.pb-6  { padding-bottom: 1.5rem !important; }
.pb-8  { padding-bottom: 2rem !important; }
.pb-10 { padding-bottom: 2.5rem !important; }
.pb-12 { padding-bottom: 3rem !important; }
.pb-14 { padding-bottom: 3.5rem !important; }
.pb-16 { padding-bottom: 4rem !important; }
.mt-6  { margin-top: 1.5rem !important; }
.mt-8  { margin-top: 2rem !important; }
.mt-10 { margin-top: 2.5rem !important; }
.mt-12 { margin-top: 3rem !important; }
.mb-6  { margin-bottom: 1.5rem !important; }
.mb-8  { margin-bottom: 2rem !important; }
.mb-10 { margin-bottom: 2.5rem !important; }
.mb-12 { margin-bottom: 3rem !important; }
.gap-8 { gap: 2rem !important; }
.gap-10 { gap: 2.5rem !important; }
.gap-12 { gap: 3rem !important; }

/* Site Footer Base */
.site-footer {
    background-color: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 3.5rem !important;
    padding-bottom: 2.5rem !important;
}

/* Payment Page Specific Clean Styles */
.card-header-navy {
    background-color: #1a365d !important;
    color: #ffffff !important;
    padding: 14px 20px !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-header-navy h2,
.card-header-navy h3 {
    color: #ffffff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.card-header-gray {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    padding: 14px 20px !important;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header-gray h2,
.card-header-gray h3 {
    color: #0f172a !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.summary-data-table {
    width: 100%;
}
.summary-data-table td {
    padding: 10px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}
.summary-data-table tr:last-child td {
    border-bottom: none;
}
.summary-data-table td:first-child {
    color: #475569;
    width: 45%;
}
.summary-data-table td:last-child {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

/* ==========================================================================
   Header & Navbar (Non-Sticky)
   ========================================================================== */
.site-header-sticky,
.site-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 100 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04) !important;
    transition: box-shadow 0.2s ease-in-out;
}

/* Nav Link Pill Styling */
.nav-link-pill {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.15s ease-in-out;
}

.nav-link-pill:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.14);
}

.nav-link-pill.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   Spacious Hero Badge Pill & Feature Tags
   ========================================================================== */
.hero-badge-pill {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 10px 30px !important;
    border-radius: 9999px !important;
    background: rgba(15, 23, 42, 0.55) !important;
    color: #ffffff !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    transition: all 0.2s ease-in-out;
}

.hero-badge-pill:hover {
    background: rgba(15, 23, 42, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

@media (max-width: 640px) {
    .hero-badge-pill {
        padding: 8px 20px !important;
        font-size: 0.775rem !important;
        white-space: normal !important;
        text-align: center !important;
        gap: 8px !important;
    }
}

.hero-feature-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 20px !important;
    border-radius: 9999px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    white-space: nowrap !important;
}

.hero-badge-pill,
.hero-badge-pill *,
.hero-badge-pill span {
    color: #ffffff !important;
}

.hero-feature-badge,
.hero-feature-badge *,
.hero-feature-badge span {
    color: #ffffff !important;
}

/* Country Combobox & Blocked Warning Styling */
.country-combobox-wrapper {
    position: relative;
    width: 100%;
}

#issuing-country-box {
    min-height: 44px;
    height: 44px;
    border: 1.5px solid #0f172a !important;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    padding: 6px 12px;
}

#issuing-country-input {
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 15px !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

#issuing-country-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

#issuing-country-search {
    height: 36px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
}


#issuing-country-clear {
    color: #64748b;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#issuing-country-clear:hover {
    color: #0f172a;
}

#passport-ineligible-msg {
    color: #dc2626 !important;
    font-size: 0.925rem;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 6px;
}

/* Enhanced Input Validation Error Styles */
.input-error,
input.input-error,
select.input-error,
textarea.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.input-error:focus,
input.input-error:focus,
select.input-error:focus,
textarea.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25) !important;
    outline: none !important;
}

#issuing-country-box.has-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* Other Citizenship Multi-select Box & Tags */
#other-citizenship-box {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#other-citizenship-box.has-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.country-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.country-tag-remove {
    cursor: pointer;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    font-weight: bold;
}

.country-tag-remove:hover {
    color: #ef4444;
}

/* UCI Instructions Box Styling (1:1 with user image) */
.uci-instructions-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    background-color: #ffffff;
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
}

.uci-instructions-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.uci-instructions-box h5 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 14px;
    margin-bottom: 8px;
}

.uci-instructions-box p {
    margin-bottom: 12px;
}

.uci-instructions-box ul {
    margin-left: 20px;
    margin-bottom: 12px;
    list-style-type: disc;
}

.uci-instructions-box li {
    margin-bottom: 4px;
}






