﻿body {
    font-family: "DM Sans", sans-serif;
    background: #0f1e35;
}

.headline {
    font-family: "Playfair Display", serif;
}

.nav-scrolled {
    background: rgba(15, 30, 53, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 35px rgba(4, 9, 19, .28);
}

.flight-card {
    background: linear-gradient(135deg, rgba(0, 214, 143, .16), rgba(15, 30, 53, .18));
    border: 1px solid rgba(0, 214, 143, .24);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.flight-route {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.flight-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    margin-top: 6px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.flight-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.flight-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flight-verdict {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, .96);
    margin-top: 6px;
    line-height: 1.35;
}

.flight-support {
    font-size: 11px;
    color: rgba(255, 255, 255, .48);
    margin-top: 2px;
    line-height: 1.45;
}

.flight-kicker {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, .78);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.3;
}

.flight-date-line {
    font-size: 12px;
    color: rgba(255, 255, 255, .52);
    margin-top: 2px;
    line-height: 1.4;
}

.flight-times-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.flight-time-cell {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    padding: 6px 8px;
}

.flight-time-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .42);
}

.flight-time-value {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .92);
}

.flight-time-empty {
    color: rgba(255, 255, 255, .38);
    font-weight: 500;
}

.flight-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.flight-status-neutral {
    background: rgba(154, 165, 180, .16);
    border-color: rgba(154, 165, 180, .24);
    color: rgba(255, 255, 255, .82);
}

.flight-status-verified {
    background: rgba(0, 214, 143, .14);
    border-color: rgba(0, 214, 143, .3);
    color: #7af0c0;
}

.flight-status-delayed {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .3);
    color: #fbbf24;
}

.flight-status-cancelled {
    background: rgba(239, 68, 68, .16);
    border-color: rgba(239, 68, 68, .28);
    color: #fda4af;
}

.route-correction-banner {
    background: rgba(0, 214, 143, .1);
    border: 1px solid rgba(0, 214, 143, .3);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #00d68f;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dismiss-btn {
    background: none;
    border: none;
    color: rgba(0, 214, 143, .6);
    cursor: pointer;
    margin-left: auto;
    font-size: 14px;
    padding: 0;
}

.wizard-note {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .82);
}

.wizard-note strong {
    font-weight: 700;
    color: #fff;
}

.wizard-note-info {
    background: rgba(96, 165, 250, .08);
    border-color: rgba(96, 165, 250, .2);
    color: rgba(219, 234, 254, .9);
}

.wizard-note-warning {
    background: rgba(245, 158, 11, .08);
    border-color: rgba(245, 158, 11, .22);
    color: rgba(254, 243, 199, .92);
}

.wizard-note-success {
    background: rgba(16, 185, 129, .08);
    border-color: rgba(16, 185, 129, .2);
    color: rgba(209, 250, 229, .9);
}

.wizard-note-danger {
    background: rgba(244, 63, 94, .1);
    border-color: rgba(244, 63, 94, .24);
    color: rgba(255, 228, 230, .92);
}

.option-card.preselected {
    border-color: #00d68f;
    background: #f0fdf9;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: white;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.modal-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.modal-message {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-sub {
    font-size: 13px;
    color: #9aa5b4;
    margin-bottom: 24px;
}

.modal-confirm {
    width: 100%;
    background: #0f1e35;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
}

.modal-cancel {
    width: 100%;
    background: transparent;
    color: #6b7a8d;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 12px;
    font-size: 14px;
    cursor: pointer;
}

.recap-warning {
    font-size: 12px;
    color: #d97706;
    background: rgba(245, 158, 11, .08);
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 4px;
}

.stepper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.stepper-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.stepper-fill {
    height: 100%;
    background: #00d68f;
    border-radius: 2px;
    transition: width .3s ease;
}

.stepper-label {
    font-size: 12px;
    color: #9aa5b4;
    white-space: nowrap;
}

.option-card {
    width: 100%;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .15s ease;
    text-align: left;
    margin-bottom: 10px;
    min-height: 56px;
}

.option-card:hover,
.option-card.selected {
    border-color: #00d68f;
    background: #f0fdf9;
    transform: translateX(4px);
}

.option-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.option-icon {
    font-size: 24px;
    min-width: 32px;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f1e35;
    margin-bottom: 2px;
}

.option-subtitle {
    font-size: 12px;
    color: #6b7a8d;
}

.option-arrow {
    color: #9aa5b4;
    font-size: 18px;
    transition: transform .15s;
}

.option-card:hover .option-arrow {
    transform: translateX(4px);
    color: #00d68f;
}

.text-input {
    width: 100%;
    border: 1px solid rgba(15, 30, 53, .12);
    border-radius: 14px;
    background: #fff;
    color: #0f1e35;
    padding: 14px 16px;
    outline: none;
}

.text-input:focus {
    border-color: #00d68f;
    box-shadow: 0 0 0 4px rgba(0, 214, 143, .18);
}

.calculator-shell {
    margin: -4px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
        rgba(255, 255, 255, .04);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
    padding: 24px;
}

.calculator-title-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.calculator-trust-pill {
    align-self: flex-start;
    border: 1px solid rgba(0, 214, 143, .3);
    border-radius: 999px;
    background: rgba(0, 214, 143, .1);
    color: rgba(221, 255, 242, .94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 8px 12px;
}

.calculator-title {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.05;
}

.calculator-intro {
    max-width: 560px;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.75;
}

.calculator-route-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calculator-section {
    margin-top: 24px;
}

.calculator-section-tight {
    margin-top: 0;
}

.calculator-section-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .04em;
}

.calculator-input {
    min-height: 52px;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}

.calculator-choice-grid {
    display: grid;
    gap: 12px;
}

.calculator-choice {
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .065);
    color: rgba(255, 255, 255, .88);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 15px;
    text-align: left;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.calculator-choice:hover {
    border-color: rgba(0, 214, 143, .58);
    background: rgba(255, 255, 255, .1);
    transform: translateY(-1px);
}

.calculator-choice-selected {
    border-color: rgba(0, 214, 143, .95);
    background: linear-gradient(180deg, rgba(0, 214, 143, .98), rgba(0, 190, 128, .94));
    color: #0f1e35;
    box-shadow: 0 16px 42px rgba(0, 214, 143, .26), inset 0 1px 0 rgba(255, 255, 255, .38);
    transform: translateY(-1px) scale(1.01);
}

.calculator-submit-wrap {
    margin-top: 32px;
    padding-top: 8px;
}

.calculator-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #00d68f;
    color: #0f1e35;
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    min-height: 60px;
    padding: 18px 24px;
    box-shadow: 0 18px 55px rgba(0, 214, 143, .24);
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.calculator-submit:hover {
    background: #fff;
    box-shadow: 0 20px 65px rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.calculator-submit:disabled {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
}

.calculator-submit-note {
    margin-top: 12px;
    color: rgba(255, 255, 255, .58);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.calculator-result-card {
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 26px;
    background: #fff;
    color: #0f1e35;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.calculator-result-top {
    background:
        linear-gradient(135deg, rgba(0, 214, 143, 1), rgba(131, 255, 213, .92));
    padding: 28px 24px 30px;
    text-align: center;
}

.calculator-result-label {
    color: rgba(15, 30, 53, .62);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.calculator-result-amount {
    margin-top: 12px;
    color: #0f1e35;
    font-size: 64px;
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.02em;
}

.calculator-result-no-amount {
    margin-top: 16px;
    color: #0f1e35;
    font-size: 38px;
    font-weight: 900;
    line-height: 1.05;
}

.calculator-result-support {
    margin-top: 16px;
    color: rgba(15, 30, 53, .68);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
}

.calculator-result-body {
    padding: 26px 24px 24px;
}

.calculator-distance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(15, 30, 53, .1);
    border-radius: 16px;
    background: #f7f3ed;
    color: rgba(15, 30, 53, .72);
    font-size: 14px;
    font-weight: 800;
    padding: 14px 16px;
}

.calculator-distance strong {
    color: #0f1e35;
}

.calculator-disclaimer {
    margin-top: 20px;
    border-left: 3px solid #00d68f;
    color: rgba(15, 30, 53, .68);
    font-size: 14px;
    line-height: 1.75;
    padding-left: 14px;
}

.calculator-cta-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    margin-top: 28px;
    align-items: start;
}

.calculator-primary-cta,
.calculator-secondary-cta {
    min-height: 58px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    padding: 16px 18px;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

.calculator-primary-cta {
    background: #0f1e35;
    color: #fff;
    box-shadow: 0 14px 40px rgba(15, 30, 53, .24);
}

.calculator-primary-cta:hover {
    background: #00d68f;
    color: #0f1e35;
    transform: translateY(-1px);
}

.calculator-secondary-cta {
    border: 1px solid rgba(15, 30, 53, .15);
    background: transparent;
    color: #0f1e35;
    cursor: pointer;
}

.calculator-secondary-cta:hover {
    border-color: rgba(15, 30, 53, .28);
    background: #f7f3ed;
    transform: translateY(-1px);
}

.calculator-cta-note {
    margin-top: 10px;
    color: rgba(15, 30, 53, .55);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.calculator-result-reassurance {
    margin-top: 24px;
    border-top: 1px solid rgba(15, 30, 53, .08);
    color: rgba(15, 30, 53, .58);
    font-size: 13px;
    font-weight: 800;
    padding-top: 18px;
    text-align: center;
}

.free-letter-panel {
    margin-top: 24px;
    border: 1px solid rgba(15, 30, 53, .1);
    border-radius: 24px;
    background: #f7f3ed;
    color: #0f1e35;
    padding: 22px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .16);
}

.free-letter-textarea {
    margin-top: 16px;
    min-height: 220px;
    width: 100%;
    resize: vertical;
    border: 1px solid rgba(15, 30, 53, .1);
    border-radius: 16px;
    background: #fff;
    color: #0f1e35;
    font-size: 14px;
    line-height: 1.75;
    outline: none;
    padding: 16px;
}

.free-letter-copy {
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: #0f1e35;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 20px;
    transition: background .16s ease, color .16s ease;
}

.free-letter-copy:hover {
    background: #00d68f;
    color: #0f1e35;
}

@media (max-width: 640px) {
    .calculator-shell {
        border-radius: 22px;
        margin: -2px;
        padding: 18px;
    }

    .calculator-title {
        font-size: 34px;
    }

    .calculator-route-grid,
    .calculator-cta-grid {
        grid-template-columns: 1fr;
    }

    .calculator-result-amount {
        font-size: 54px;
    }

    .calculator-result-no-amount {
        font-size: 32px;
    }

    .calculator-result-body {
        padding: 20px;
    }

    .calculator-result-top {
        padding: 24px 20px 26px;
    }

    .calculator-primary-cta,
    .calculator-secondary-cta {
        min-height: 56px;
    }
}

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

.spinner {
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    border: 4px solid rgba(255, 255, 255, .14);
    border-top-color: #00d68f;
    animation: spin .85s linear infinite;
}

.autocomplete-wrapper {
    position: relative;
}

.airport-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #1a2f4a;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.airport-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background .15s;
}

.airport-option:hover {
    background: rgba(255, 255, 255, .05);
}

.airport-iata {
    font-weight: 700;
    color: #00d68f;
    min-width: 36px;
    font-size: 14px;
}

.airport-info {
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
}

.airport-country {
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    margin-left: 6px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
    transition: color .15s;
}

.back-btn:hover {
    color: white;
}

.missing-warning {
    background: #fff8e6;
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
}

.missing-field-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.missing-field-inline:last-child {
    border-bottom: none;
}

.missing-field-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.missing-field-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inconsistency-block {
    border: 1px solid #f59e0b;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    margin-top: 16px;
}

.inconsistency-header {
    background: #f59e0b;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    letter-spacing: .5px;
}

.inconsistency-body {
    background: #fffbeb;
    padding: 16px;
}

.inconsistency-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inconsistency-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.api-says {
    background: rgba(59, 130, 246, .06);
    border: 1px solid rgba(59, 130, 246, .15);
    border-radius: 8px;
    padding: 10px 12px;
}

.user-says {
    background: rgba(239, 68, 68, .06);
    border: 1px solid rgba(239, 68, 68, .15);
    border-radius: 8px;
    padding: 10px 12px;
}

.inconsistency-icon {
    font-size: 16px;
    min-width: 20px;
    margin-top: 2px;
    color: transparent;
}

.api-says .inconsistency-icon::before {
    content: 'ðŸ“¡';
    color: initial;
}

.user-says .inconsistency-icon::before {
    content: 'ðŸ‘¤';
    color: initial;
}

.inconsistency-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #9aa5b4;
    margin-bottom: 2px;
}

.api-says .inconsistency-label {
    color: #3b82f6;
}

.user-says .inconsistency-label {
    color: #ef4444;
}

.inconsistency-value {
    display: block;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.inconsistency-divider {
    display: none;
}

.inconsistency-footer {
    background: #fef3c7;
    padding: 10px 16px;
    font-size: 12px;
    color: #92400e;
    border-top: 1px solid #fde68a;
}

.missing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    font-size: 14px;
    color: #374151;
}

.missing-item:last-child {
    border-bottom: none;
}

.missing-fix-btn {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.missing-fix-btn:hover {
    background: #d97706;
}

.shake {
    animation: shake .3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

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