/* ============================================
   TravelRefund Flow — Modern UI 2026
   Inspired by Stripe / AirHelp
   ============================================ */

:root {
    --trp-primary: var(--pico-primary, #007a50);
    --trp-primary-light: #cbfce1;
    --trp-primary-50: #e6f7ee;
    --trp-primary-100: #cbfce1;
    --trp-primary-glow: rgba(0, 122, 80, 0.12);
    --trp-primary-glow-strong: rgba(0, 122, 80, 0.25);
    --trp-surface: #ffffff;
    --trp-surface-raised: #fafbfc;
    --trp-surface-hover: #f6f8fa;
    --trp-border: #e5e7eb;
    --trp-border-light: #f0f1f3;
    --trp-text: #1a1d26;
    --trp-text-secondary: #6b7280;
    --trp-text-muted: #9ca3af;
    --trp-radius-sm: 8px;
    --trp-radius: 12px;
    --trp-radius-lg: 16px;
    --trp-radius-xl: 20px;
    --trp-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --trp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --trp-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.04);
    --trp-shadow-md: 0 8px 24px -4px rgba(0,0,0,0.08), 0 2px 8px -2px rgba(0,0,0,0.04);
    --trp-shadow-lg: 0 20px 40px -8px rgba(0,0,0,0.1), 0 4px 12px -4px rgba(0,0,0,0.05);
    --trp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trp-transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body .trp-form-container {
    min-height: calc(100vh - 75px);
}

/* ── Step Progress Indicator ─────────────── */
.trp-step-progress {
    display: block;
    width: 100%;
    margin: 0 0 2.5rem 0;
    padding: 0;
}

.trp-steps {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

.trp-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 0 10px;
    margin: 0;
}

/* Connector line between circles */
.trp-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--trp-border, #e5e7eb);
    z-index: 0;
}

.trp-step.completed:not(:last-child)::after {
    background: var(--trp-primary, #007a50);
}

.trp-step-number {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.72rem;
    background: #fff;
    color: var(--trp-text-muted, #9ca3af);
    border: 2px solid var(--trp-border, #e5e7eb);
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.trp-step.active .trp-step-number {
    background: var(--trp-primary, #007a50);
    color: #fff;
    border-color: var(--trp-primary, #007a50);
    box-shadow: 0 0 0 4px rgba(0,122,80,0.12);
    transform: scale(1.1);
}

.trp-step.completed .trp-step-number {
    background: var(--trp-primary, #007a50);
    color: #fff;
    border-color: var(--trp-primary, #007a50);
}

.trp-step.completed .trp-step-number i {
    font-size: 0.7rem;
}

.trp-step-label {
    font-size: 0.72rem;
    color: var(--trp-text-muted, #9ca3af);
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
}

.trp-step.active .trp-step-label {
    color: var(--trp-primary, #007a50);
    font-weight: 700;
}

.trp-step.completed .trp-step-label {
    color: var(--trp-text-secondary, #6b7280);
}

/* Clickable completed & visited steps */
.trp-step.completed,
.trp-step.visited {
    cursor: pointer;
}
.trp-step.completed:hover .trp-step-number,
.trp-step.visited:hover .trp-step-number {
    box-shadow: 0 0 0 4px rgba(0,122,80,0.12);
    transform: scale(1.1);
}
.trp-step.completed:hover .trp-step-label,
.trp-step.visited:hover .trp-step-label {
    color: var(--trp-primary, #007a50);
}

/* Visited but not completed — subtle border */
.trp-step.visited .trp-step-number {
    border-color: var(--trp-primary, #007a50);
    color: var(--trp-primary, #007a50);
}
.trp-step.visited .trp-step-label {
    color: var(--trp-text-secondary, #6b7280);
}

/* Wizard step containers */
.trp-wizard-step {
    transition: opacity 0.15s ease;
}
.trp-wizard-step.hidden {
    display: none;
}

@media (max-width: 575px) {
    .trp-step-label { display: none; }

    .trp-step-number {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.65rem;
    }

    .trp-step:not(:last-child)::after {
        top: 12px;
    }

    .trp-step {
        padding: 0 4px;
    }

    .trp-step-progress { margin-bottom: 1.5rem; }
}

/* ── Calculator Sidebar ──────────────────── */
.trp-calculator .trp-calculator-content {
    border-radius: var(--trp-radius-lg);
    box-shadow: var(--trp-shadow-md);
    overflow: hidden;
    border: 1px solid var(--trp-border-light);
    transition: box-shadow var(--trp-transition);
}

.trp-calculator .trp-calculator-content:hover {
    box-shadow: var(--trp-shadow-lg);
}

.trp-calculator .trp-calculator-headline {
    background: var(--trp-text) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    border-radius: var(--trp-radius-lg) var(--trp-radius-lg) 0 0;
    padding: 1rem 1.25rem !important;
}

.trp-calculator .trp-calculator-headline .trp-spinner,
.trp-calculator .trp-calculator-headline i {
    font-size: 0.9rem;
    vertical-align: middle;
}

.trp-calculator .trp-calculator-description {
    font-size: 0.82rem !important;
    color: var(--trp-text-secondary) !important;
    line-height: 1.5;
    margin-bottom: 0.5rem !important;
}

.trp-calculator .trp-compensation-total {
    margin: 1rem 0 1.25rem !important;
}

.trp-calculator .trp-compensation-total span.trp-compensation-amount-value {
    font-size: 3rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em;
    color: var(--trp-primary) !important;
    display: block;
    -webkit-text-fill-color: var(--trp-primary) !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    line-height: 1.1;
}

.trp-calculator .trp-compensation-per-passenger {
    background: var(--trp-surface-raised);
    margin: 0 calc(var(--pico-block-spacing-horizontal) * -1) !important;
    padding: 0.7rem var(--pico-block-spacing-horizontal) !important;
    font-size: 0.85rem;
    border-top: 1px solid var(--trp-border-light);
    border-bottom: 1px solid var(--trp-border-light);
}

.trp-calculator .trp-compensation-details {
    background: var(--trp-surface-raised);
    margin: 0 calc(var(--pico-block-spacing-horizontal) * -1) calc(var(--pico-block-spacing-vertical) * -1) !important;
    padding: 0.7rem var(--pico-block-spacing-horizontal) !important;
    border-top: 1px solid var(--trp-border-light);
    font-size: 0.82rem;
    color: var(--trp-text-secondary);
}

/* ── Sidebar ────────────────────────────── */
.trp-sidebar {
    background: #f8f9fb;
    border-left: 1px solid var(--trp-border-light);
    min-height: calc(100vh - 75px);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.trp-sidebar-inner {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: sticky;
    top: 75px;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
}

/* Calculator inside sidebar — card with border */
.trp-sidebar .trp-calculator {
    width: 100%;
    text-align: center;
}

.trp-sidebar .trp-calculator-content {
    position: static !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    border: 1px solid var(--trp-border-light) !important;
    background: #ffffff !important;
    padding: 1.25rem !important;
}

.trp-sidebar .trp-calculator-content:hover {
    box-shadow: var(--trp-shadow-sm) !important;
}

.trp-sidebar .trp-calculator-headline {
    background: transparent !important;
    color: var(--trp-text) !important;
    padding: 0 0 0.5rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.trp-eligible-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--trp-primary);
    color: #fff;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.trp-sidebar .trp-calculator-description {
    font-size: 0.78rem !important;
    margin-bottom: 0.25rem !important;
}

.trp-sidebar .trp-compensation-total {
    margin: 0.5rem 0 0.5rem !important;
}

.trp-sidebar .trp-compensation-total span.trp-compensation-amount-value {
    font-size: 2.4rem !important;
}

.trp-sidebar .trp-compensation-total .trp-compensation-total-label {
    display: block;
    font-size: 0.78rem;
    color: var(--trp-text-secondary);
    font-weight: 400;
    margin-top: 0.15rem;
}

.trp-sidebar .trp-compensation-per-passenger {
    background: transparent !important;
    margin: 0 !important;
    padding: 0.5rem 0 0 !important;
    border-top: 1px solid var(--trp-border-light);
    border-bottom: none;
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trp-sidebar .trp-compensation-per-passenger .trp-compensation-amount-value {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    display: inline !important;
}

/* ── Case Summary ───────────────────────── */
.trp-summary {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.trp-summary-section {
    padding: 0.65rem 0;
    border-bottom: none;
}

.trp-summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--trp-text-muted);
    margin-bottom: 0.3rem;
}

.trp-summary-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--trp-text);
}

.trp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Route display */
.trp-summary-route-display {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.4rem 0;
}

.trp-summary-airport {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    min-width: 0;
    max-width: 50%;
}

.trp-summary-airport strong {
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: var(--trp-text);
}

.trp-summary-airport-name {
    font-size: 0.7rem;
    color: var(--trp-text);
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.trp-summary-airport-country {
    display: block;
    font-size: 0.62rem;
    color: var(--trp-text-muted);
    line-height: 1.1;
    text-align: center;
    margin-top: 0.1rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.trp-summary-airport .fi {
    font-size: 1.1rem;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.trp-summary-arrow {
    color: var(--trp-primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    width: 60px;
    height: 1.2rem;
}

.trp-summary-arrow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(
        90deg,
        var(--trp-border) 0px,
        var(--trp-border) 4px,
        transparent 4px,
        transparent 8px
    );
    pointer-events: none;
}

.trp-summary-arrow .trp-plane-animated {
    --plane-distance: 18px;
    display: inline-block;
    position: relative;
    z-index: 1;
    background: #f8f9fb;
    padding: 0 0.25rem;
    transform: translateX(-18px) rotate(90deg);
    animation: trp-plane-fly 3s ease-in-out infinite;
}

/* Layovers */
.trp-summary-layovers {
    font-size: 0.75rem;
    color: var(--trp-text-secondary);
    text-align: center;
    margin-top: 0.25rem;
}

.trp-summary-layover-label {
    font-weight: 600;
}

.trp-summary-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.trp-summary-segment-label {
    color: var(--trp-text-muted);
    font-size: 0.68rem;
}

.trp-summary-segment-value {
    font-weight: 600;
    color: var(--trp-primary);
}

/* Disruption section */
.trp-summary-disruption-type {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--trp-text);
}

.trp-summary-disruption-centered {
    text-align: center;
}

.trp-summary-detail {
    font-size: 0.78rem;
    color: var(--trp-text-secondary);
    margin-top: 0.15rem;
}
.trp-summary-missed-connection {
    color: var(--trp-warning, #e6a817);
    font-weight: 500;
}

.trp-summary-cause {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--trp-surface);
    border-radius: 999px;
    border: 1px solid var(--trp-border-light);
    font-size: 0.78rem;
    color: var(--trp-text-secondary);
}

.trp-summary-cause-centered {
    display: flex;
    margin: 0.4rem auto 0;
    max-width: max-content;
    justify-content: center;
}

.trp-summary-cause strong {
    font-weight: 700;
    color: var(--trp-text);
}

/* Flight identity block: flight number badge above airline logo */
.trp-summary-flight-id {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0;
}

/* Centered airline logo */
.trp-summary-airline-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-summary-airline-centered img {
    height: 36px;
    max-width: 80%;
    object-fit: contain;
}

/* Centered flight number badge */
.trp-summary-flight-badge-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.trp-summary-flight-badge-wrap .flight-number-tag {
    font-size: 0.95rem;
    padding: 0.35rem 0.85rem;
}

/* FlightAware data card */
.trp-summary-flight-info {
    background: var(--trp-surface);
    border: 1px solid var(--trp-border-light);
    border-radius: var(--trp-radius);
    padding: 0.7rem 0.9rem;
    display: grid;
    gap: 0.3rem;
}

.trp-summary-flight-info-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.trp-summary-flight-info-label {
    color: var(--trp-text-muted);
    font-weight: 500;
}

.trp-summary-flight-info-value {
    color: var(--trp-text);
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Compact data table (Date / Passengers / Regulation) */
.trp-summary-data-table {
    background: var(--trp-surface);
    border: 1px solid var(--trp-border-light);
    border-radius: var(--trp-radius);
    padding: 0.25rem 0.9rem;
}

.trp-summary-data-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--trp-border-light);
}

.trp-summary-data-row:last-child {
    border-bottom: none;
}

.trp-summary-data-label {
    color: var(--trp-text-muted);
    font-weight: 500;
}

.trp-summary-data-value {
    color: var(--trp-text);
    font-weight: 600;
    text-align: right;
}

.trp-cause-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Cause icon variants with CSS animations */
.trp-icon-weather {
    background: #e0f2fe;
    color: #0369a1;
    animation: trp-weather-pulse 3s ease-in-out infinite;
}
.trp-icon-weather::before { content: "\26C8"; }

.trp-icon-technical {
    background: #fef3c7;
    color: #b45309;
    animation: trp-spin-slow 4s linear infinite;
}
.trp-icon-technical::before { content: "\2699"; }

.trp-icon-strike {
    background: #fce7f3;
    color: #be185d;
    animation: trp-shake 2s ease-in-out infinite;
}
.trp-icon-strike::before { content: "\270A"; }

.trp-icon-covid {
    background: #ecfdf5;
    color: #059669;
    animation: trp-pulse 2s ease-in-out infinite;
}
.trp-icon-covid::before { content: "\1F9EA"; }

.trp-icon-war {
    background: #fef2f2;
    color: #dc2626;
    animation: trp-shake 2.5s ease-in-out infinite;
}
.trp-icon-war::before { content: "\26A0"; }

.trp-icon-airport {
    background: #f0f9ff;
    color: #0284c7;
    animation: trp-pulse 2.5s ease-in-out infinite;
}
.trp-icon-airport::before { content: "\1F3E2"; }

.trp-icon-previous {
    background: #fefce8;
    color: #a16207;
    animation: trp-weather-pulse 3s ease-in-out infinite;
}
.trp-icon-previous::before { content: "\23F0"; }

.trp-icon-unknown, .trp-icon-other, .trp-icon-question {
    background: #f3f4f6;
    color: #6b7280;
    animation: trp-pulse 3s ease-in-out infinite;
}
.trp-icon-unknown::before, .trp-icon-other::before, .trp-icon-question::before { content: "?"; font-weight: 700; }

@keyframes trp-weather-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes trp-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes trp-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50% { transform: translateX(-1.5px); }
    20%, 40%, 60% { transform: translateX(1.5px); }
    70% { transform: translateX(0); }
}

@keyframes trp-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Airline logo in sidebar */
.trp-summary-airline img {
    height: 30px !important;
    width: auto;
    margin: -5px 4px -5px 0;
    vertical-align: middle;
}

/* Contact section */
.trp-summary-contact .trp-summary-detail {
    font-size: 0.8rem;
}

/* ── Trust Footer (inside form content) ──── */
.trp-trust-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    padding: 1.25rem 0 0.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--trp-border-light);
}

.trp-trust-footer .trp-trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--trp-text-secondary);
    white-space: nowrap;
}

.trp-trust-footer .trp-trust-item i {
    color: var(--trp-primary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.trp-trust-footer .trp-trust-item span {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--trp-text-secondary);
}

/* ── Sidebar Help Section ───────────────── */
.trp-sidebar-help {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--trp-border-light);
    text-align: center;
}

.trp-sidebar-help p {
    font-size: 0.78rem;
    color: var(--trp-text-muted);
    margin-bottom: 0.4rem;
}

.trp-sidebar-help a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--trp-primary);
    text-decoration: none;
    margin: 0 0.4rem;
    transition: opacity var(--trp-transition);
}

.trp-sidebar-help a:hover {
    opacity: 0.8;
}

.trp-sidebar-help a i {
    font-size: 0.85rem;
}

/* ── Sidebar Responsive ─────────────────── */
@media (max-width: 1023px) {
    .trp-sidebar {
        min-height: auto;
        border-left: none;
        border-top: 1px solid var(--trp-border-light);
    }

    .trp-sidebar-inner {
        position: static;
        max-height: none;
        overflow: visible;
    }

}

/* ── Form Content ────────────────────────── */
.trp-form-content {
    padding: 2rem 3rem;
}

.trp-form-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--trp-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.trp-form-content > p:first-of-type,
.trp-form-content .compensation-form > p:first-of-type {
    color: var(--trp-text-secondary);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.trp-form-content label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--trp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Form Inputs ─────────────────────────── */
.trp-form-content input[type="text"],
.trp-form-content input[type="email"],
.trp-form-content input[type="tel"],
.trp-form-content input[type="number"],
.trp-form-content input[type="date"],
.trp-form-content select,
.trp-form-content textarea {
    border-radius: var(--trp-radius-sm);
    border: 1.5px solid var(--trp-border);
    transition: border-color var(--trp-transition), box-shadow var(--trp-transition), background-color var(--trp-transition);
    font-size: 0.92rem;
    background: var(--trp-surface);
    box-shadow: var(--trp-shadow-xs);
    box-shadow: none !important;
    border: 1px solid var(--trp-border);
    border-width: 1px !important;
}

.trp-form-content input:focus,
.trp-form-content select:focus,
.trp-form-content textarea:focus {
    border-color: var(--trp-primary);
    box-shadow: 0 0 0 3px var(--trp-primary-glow);
    outline: none;
    background-color: #fff;
}

@media (max-width: 1023px) {
    .trp-form-content {
        padding: 1.5rem 1rem;
    }
}

/* ── vanillajs-datepicker ─────────────────── */
.trp-datepicker-input {
    cursor: pointer !important;
    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='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px !important;
    padding-right: 2.25rem !important;
}

.trp-datepicker-input:hover {
    border-color: var(--trp-primary) !important;
}

/* Popup container */
.datepicker-dropdown {
    z-index: 99999 !important;
    padding-top: 6px !important;
    font-family: inherit !important;
}

.datepicker-picker {
    border-radius: var(--trp-radius-md, 8px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid var(--trp-border, #e2e8f0) !important;
    background: var(--trp-surface, #ffffff) !important;
    padding: 6px 8px 8px !important;
    width: 17.5rem !important;
}

/* Header bar */
.datepicker-header {
    padding: 0 !important;
}

.datepicker-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 4px 0 6px !important;
}

.datepicker-controls .button {
    background: transparent !important;
    border: none !important;
    color: var(--trp-text, #1f2937) !important;
    border-radius: 6px !important;
    height: 32px !important;
    padding: 0 8px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    box-shadow: none !important;
}

.datepicker-controls .button:hover,
.datepicker-controls .button:focus {
    background: var(--trp-primary-glow, rgba(0, 122, 80, 0.12)) !important;
    color: var(--trp-primary, #007a50) !important;
    outline: none !important;
}

.datepicker-controls .button.view-switch {
    flex: 1 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
}

.datepicker-controls .prev-button,
.datepicker-controls .next-button {
    width: 32px !important;
    padding: 0 !important;
    color: var(--trp-text-secondary, #555) !important;
}

.datepicker-controls .prev-button svg,
.datepicker-controls .next-button svg {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Disable the View All / today / clear footer-style buttons inside header if any */
.datepicker-controls .button:disabled,
.datepicker-controls .button.disabled {
    opacity: 0.4 !important;
    cursor: default !important;
    background: transparent !important;
    color: var(--trp-text-secondary, #999) !important;
}

/* Weekday row */
.datepicker-grid,
.datepicker .days .days-of-week {
    width: 100% !important;
}

.datepicker .days-of-week .dow {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    color: var(--trp-text-secondary, #666) !important;
    text-transform: uppercase !important;
    height: 28px !important;
    line-height: 28px !important;
}

/* Day / month / year cells */
.datepicker-cell {
    border-radius: 6px !important;
    font-size: 0.88rem !important;
    height: 36px !important;
    line-height: 36px !important;
    color: var(--trp-text, #1f2937) !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
    cursor: pointer !important;
}

.datepicker-cell:not(.disabled):hover {
    background: var(--trp-primary-glow, rgba(0, 122, 80, 0.12)) !important;
    color: var(--trp-primary, #007a50) !important;
}

.datepicker-cell.focused:not(.selected) {
    background: var(--trp-primary-glow, rgba(0, 122, 80, 0.12)) !important;
}

.datepicker-cell.today:not(.selected) {
    box-shadow: inset 0 0 0 1px var(--trp-primary, #007a50) !important;
    color: var(--trp-primary, #007a50) !important;
    font-weight: 600 !important;
}

.datepicker-cell.selected,
.datepicker-cell.selected:hover {
    background: var(--trp-primary, #007a50) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.datepicker-cell.disabled,
.datepicker-cell.disabled:hover {
    color: #ccc !important;
    background: transparent !important;
    cursor: not-allowed !important;
}

.datepicker-cell.prev:not(.selected),
.datepicker-cell.next:not(.selected) {
    color: #bbb !important;
}

/* Months & years grids — taller cells, two columns */
.datepicker-view .months,
.datepicker-view .years,
.datepicker-view .decades {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2px !important;
}

.datepicker-view .months .month,
.datepicker-view .years .year,
.datepicker-view .decades .decade {
    height: 44px !important;
    line-height: 44px !important;
    font-size: 0.88rem !important;
}

/* Mobile: full-width calendar */
@media (max-width: 480px) {
    .datepicker-picker {
        width: calc(100vw - 2rem) !important;
        max-width: 320px !important;
    }

    .datepicker-cell {
        height: 40px !important;
        line-height: 40px !important;
    }
}

/* ── Segmented Tabs (Flight Type / Disruption) ── */
.tabs.flight-type {
    display: inline-flex !important;
    background: var(--trp-surface-raised) !important;
    border: 1.5px solid var(--trp-border) !important;
    border-radius: var(--trp-radius) !important;
    padding: 4px !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    margin-bottom: 1.5rem !important;
}

.tabs.flight-type label {
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--trp-radius-sm) !important;
    cursor: pointer;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--trp-text-secondary) !important;
    transition: all var(--trp-transition) !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: nowrap;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.tabs.flight-type input:checked + label {
    background: var(--trp-surface) !important;
    color: var(--trp-text) !important;
    font-weight: 600 !important;
    box-shadow: var(--trp-shadow-sm) !important;
    border: none !important;
}

.tabs.flight-type input:not(:checked) + label:hover {
    color: var(--trp-text) !important;
    background: rgba(0,0,0,0.03) !important;
    border: none !important;
}

@media (max-width: 575px) {
    .tabs.flight-type label {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}

/* ── Choice / Radio Cards ────────────────── */
input.choice + label {
    border-radius: var(--trp-radius) !important;
    border: 1px solid var(--trp-border) !important;
    border-left: 1px solid var(--trp-border) !important;
    background: var(--trp-surface) !important;
    padding: 1.65rem 1.3rem !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    color: var(--trp-text) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all var(--trp-transition) !important;
    position: relative;
    gap: 0.5rem;
}

input.choice + label:not(:first-of-type) {
    margin-top: 0.5rem !important;
}

input.choice + label:hover {
    border-color: var(--trp-primary) !important;
    background: var(--trp-primary-50) !important;
    transform: none !important;
}

input.choice:checked + label {
    border-color: var(--trp-primary) !important;
    background: var(--trp-primary-50) !important;
    color: var(--trp-text) !important;
    border-width: 1px !important;
    box-shadow: 0 !important;
}

/* Radio indicator */
input.choice + label::before {
    content: "";
    display: inline-flex;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--trp-border);
    margin-right: 0.65rem;
    transition: all var(--trp-transition);
    flex-shrink: 0;
    background: var(--trp-surface);
    box-sizing: border-box;
}

input.choice:checked + label::before {
    border-color: var(--trp-primary);
    background: var(--trp-primary);
    box-shadow: inset 0 0 0 3px #fff;
}

input.choice + label:hover::before {
    border-color: var(--trp-primary);
}

/* ── Radio Cards Row (universal flex layout for radio choices) ── */
.radio-cards-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.radio-cards-row input.choice + label {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0 !important;
    overflow: hidden;
}

@media (max-width: 575px) {
    .radio-cards-row {
        flex-direction: column;
        flex-wrap: wrap;
    }
    .radio-cards-row input.choice + label {
        white-space: normal;
    }
}

/* ── Flow Action Buttons ─────────────────── */
.flow-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--trp-border-light);
    gap: 0.75rem !important;
}

.flow-actions button[type="submit"],
.flow-actions input[type="submit"] {
    padding: 0.7rem 2rem !important;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--trp-radius-sm) !important;
    letter-spacing: 0;
    transition: all var(--trp-transition);
    box-shadow: var(--trp-shadow-sm);
    line-height: 1.4;
}

.flow-actions button[type="submit"]:hover,
.flow-actions input[type="submit"]:hover {
    box-shadow: var(--trp-shadow);
    transform: translateY(-1px);
}

.flow-actions button[type="submit"]:active,
.flow-actions input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--trp-shadow-xs);
}

.flow-actions .go-back {
    border-radius: var(--trp-radius-sm) !important;
    font-weight: 500;
    font-size: 0.92rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem !important;
    line-height: 1.4;
    transition: all var(--trp-transition);
}

.flow-actions .go-back:hover {
    background: var(--trp-surface-hover);
}
.flow-actions .trp-btn-continue-disabled {
    padding: 0.7rem 2rem !important;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--trp-radius-sm) !important;
    line-height: 1.4;
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ── Route Summary ───────────────────────── */
.trp-route-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 2rem;
    background: var(--trp-surface);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-radius-lg);
    margin-bottom: 1.5rem;
    position: relative;
    flex-wrap: wrap;
    /*box-shadow: var(--trp-shadow-xs);*/
}

.trp-route-airport {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 100px;
}

.trp-route-flag {
    font-size: 1.5rem;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.trp-route-iata {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trp-text);
    letter-spacing: 0.04em;
}

.trp-route-name {
    font-size: 0.72rem;
    /*color: var(--trp-text-secondary);*/
    text-align: center;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trp-route-country {
    font-size: 0.68rem;
    /*color: var(--trp-text-muted);*/
}

.trp-route-plane {
    display: flex;
    align-items: center;
    position: relative;
    width: 100px;
    justify-content: center;
}

.trp-route-line {
    position: absolute;
    width: 100%;
    height: 1.5px;
    background: repeating-linear-gradient(
        90deg,
        var(--trp-border) 0px,
        var(--trp-border) 5px,
        transparent 5px,
        transparent 10px
    );
}

.trp-route-plane-icon {
    --plane-distance: 32px;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: var(--trp-primary);
    background: var(--trp-surface);
    padding: 0 0.4rem;
    display: inline-block;
    transform: translateX(-32px) rotate(90deg);
    animation: trp-plane-fly 3s ease-in-out infinite;
}

@keyframes trp-plane-fly {
    0%   { transform: translateX(calc(var(--plane-distance, 24px) * -1)) rotate(90deg); opacity: 0; }
    15%  { transform: translateX(calc(var(--plane-distance, 24px) * -1)) rotate(90deg); opacity: 1; }
    75%  { transform: translateX(var(--plane-distance, 24px)) rotate(90deg); opacity: 1; }
    100% { transform: translateX(var(--plane-distance, 24px)) rotate(90deg); opacity: 0; }
}

.trp-route-date {
    position: absolute;
    bottom: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--trp-text-secondary);
    background: var(--trp-surface);
    padding: 0.15rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--trp-border);
}

/* End-to-end flight distance pill — top-center, mirroring the date pill */
.trp-route-distance {
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--trp-primary);
    background: var(--trp-surface);
    padding: 0.15rem 0.75rem;
    border-radius: 20px;
    border: 1.5px solid var(--trp-primary);
    white-space: nowrap;
    z-index: 2;
}

.trp-route-distance[hidden] {
    display: none !important;
}

.trp-route-distance-icon {
    font-size: 0.78rem;
    transform: rotate(90deg);
    display: inline-block;
    line-height: 1;
}

.trp-route-distance-label {
    color: var(--trp-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.66rem;
}

.trp-route-distance-value {
    color: var(--trp-primary);
    font-weight: 700;
}

/* Sidebar Distance row — subtle highlight to distinguish from other facts */
.trp-summary-data-row.trp-summary-data-distance .trp-summary-data-value {
    color: var(--trp-primary);
    font-variant-numeric: tabular-nums;
}

.trp-summary-data-row.trp-summary-data-distance[hidden] {
    display: none !important;
}

/* ── Flight List Table ───────────────────── */
.table-container {
    border-radius: var(--trp-radius);
    overflow-x: auto;
    overflow-y: visible;
    border: 1.5px solid var(--trp-border);
    margin-bottom: 1.5rem;
}

.table-container .flight-list {
    margin-bottom: 0;
}

.flight-list {
    border-collapse: separate;
    border-spacing: 0;
}

.flight-list th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--trp-text-muted);
    background: var(--trp-surface-raised);
    padding: 0.6rem 0.85rem;
    text-align: left;
}

.flight-list th,
.flight-list td {
    text-align: left;
}

.flight-list tr[data-flight-number] {
    cursor: pointer;
    transition: background var(--trp-transition);
}

.flight-list tr[data-flight-number]:hover {
    background: var(--trp-primary-50) !important;
}

.flight-list tr[data-flight-number]:active {
    background: var(--trp-primary-100) !important;
}

.flight-list td {
    padding: 0.55rem 0.85rem;
    border-top: 1px solid var(--trp-border-light);
    font-size: 0.88rem;
}

.flight-list .td-time {
    white-space: nowrap;
    color: var(--trp-text-secondary);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.flight-list .td-time i {
    color: var(--trp-text-muted);
    margin-right: 0.3rem;
    font-size: 0.8em;
}

.flight-list .td-time-date {
    display: inline-block;
    font-weight: 600;
    color: var(--trp-text-primary);
    margin-right: 0.4rem;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}

.flight-list-tz-note {
    margin: 0.5rem 0 0;
    padding: 0.55rem 0.75rem;
    background: var(--trp-bg-muted, #f5f7fa);
    border-left: 3px solid var(--trp-border, #d8dde6);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--trp-text-muted, #666);
    line-height: 1.4;
}

.flight-list-tz-note i {
    margin-right: 0.35rem;
    color: var(--trp-text-muted, #888);
}

/* No-results fallback inside the "Can't remember your flight number" modal.
 * The first paragraph is the headline; the second tells users to close the
 * dialog and enter the flight number manually instead. */
.flight-list-empty {
    padding: 1.25rem 1.1rem;
    background: var(--trp-bg-muted, #f5f7fa);
    border: 1px solid var(--trp-border, #d8dde6);
    border-radius: 8px;
    text-align: center;
}

.flight-list-empty p {
    margin: 0;
    line-height: 1.5;
}

.flight-list-empty p + p {
    margin-top: 0.6rem;
    color: var(--trp-text-muted, #666);
    font-size: 0.9rem;
}

/* ── Flight list loader (shown while we wait on FlightAware) ────────── */
.trp-flight-loader {
    padding: 1.1rem 1.1rem 0.9rem;
    background: var(--trp-surface-raised, #f7faf9);
    border: 1px solid var(--trp-border-light, #e3e8e6);
    border-radius: var(--trp-radius-sm, 8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.trp-flight-loader-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.trp-flight-loader-plane {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--trp-primary-50, #e6f7ee);
    color: var(--trp-primary, #007a50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: trpFlightLoaderPulse 1.6s ease-in-out infinite;
}

.trp-flight-loader-plane i {
    animation: trpFlightLoaderFly 1.6s ease-in-out infinite;
}

@keyframes trpFlightLoaderPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--trp-primary-glow, rgba(0, 122, 80, 0.18)); }
    50%      { box-shadow: 0 0 0 8px transparent; }
}

@keyframes trpFlightLoaderFly {
    0%   { transform: translateX(-3px) rotate(-8deg); }
    50%  { transform: translateX(3px)  rotate(8deg); }
    100% { transform: translateX(-3px) rotate(-8deg); }
}

.trp-flight-loader-text {
    flex: 1 1 auto;
    min-width: 0;
}

.trp-flight-loader-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--trp-text, #1f2a26);
    line-height: 1.25;
}

.trp-flight-loader-step {
    font-size: 0.78rem;
    color: var(--trp-text-muted, #6b7570);
    margin-top: 0.15rem;
    min-height: 1em;
}

.trp-flight-loader-progress {
    height: 4px;
    background: var(--trp-border-light, #e3e8e6);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.95rem;
}

.trp-flight-loader-progress-bar {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg,
        var(--trp-primary, #007a50) 0%,
        var(--trp-primary-100, #cbfce1) 50%,
        var(--trp-primary, #007a50) 100%);
    background-size: 200% 100%;
    border-radius: 999px;
    animation: trpFlightLoaderSlide 1.4s ease-in-out infinite;
}

@keyframes trpFlightLoaderSlide {
    0%   { transform: translateX(-100%); width: 35%; }
    50%  { transform: translateX(60%);   width: 55%; }
    100% { transform: translateX(220%);  width: 35%; }
}

.trp-flight-loader-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.trp-flight-loader-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 0.8fr 0.9fr;
    gap: 0.7rem;
    align-items: center;
    padding: 0.55rem 0.2rem;
    border-top: 1px solid var(--trp-border-light, #ecefee);
}

.trp-flight-loader-row:first-child {
    border-top: none;
}

.trp-skel {
    height: 0.85rem;
    border-radius: 4px;
    background: linear-gradient(90deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.10) 50%,
        rgba(0, 0, 0, 0.05) 100%);
    background-size: 200% 100%;
    animation: trpSkelShimmer 1.4s ease-in-out infinite;
}

.trp-skel-time    { width: 70%; }
.trp-skel-airline { width: 90%; }
.trp-skel-num     { width: 55%; }
.trp-skel-status  { width: 75%; height: 1.1rem; border-radius: 999px; }

@keyframes trpSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.trp-flight-loader-tip {
    margin-top: 0.95rem;
    padding: 0.6rem 0.75rem;
    background: var(--trp-primary-50, #e6f7ee);
    border-left: 3px solid var(--trp-primary, #007a50);
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--trp-text, #1f2a26);
}

.trp-flight-loader-tip i {
    color: var(--trp-primary, #007a50);
    margin-right: 0.35rem;
}

@media (max-width: 540px) {
    .trp-flight-loader { padding: 0.95rem 0.8rem 0.8rem; }
    .trp-flight-loader-row { grid-template-columns: 1.1fr 1.6fr 1fr; }
    .trp-skel-status { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .trp-flight-loader-plane,
    .trp-flight-loader-plane i,
    .trp-flight-loader-progress-bar,
    .trp-skel { animation: none; }
}

/* Discrete note shown above disruption choice on step 4 when our system
   merged a cancelled+operated pair into a single rescheduled flight. */
.trp-rescheduled-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--trp-bg-muted, #f5f7fa);
    border-left: 3px solid var(--trp-info, #4a90b8);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--trp-text-secondary, #555);
    line-height: 1.4;
}

.trp-rescheduled-note.hidden {
    display: none;
}

.trp-rescheduled-note i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--trp-info, #4a90b8);
}

/* Missed connection note — shown when connecting flight has a short
   delay on a non-last segment (passenger likely missed connection). */
.trp-missed-connection-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--trp-text-secondary, #555);
    line-height: 1.4;
}
.trp-missed-connection-info i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--trp-primary, #007a50);
}

.airline-logo {
    height: 14px;
    width: auto;
    max-width: 60px;
    vertical-align: middle;
    object-fit: contain;
    cursor: pointer;
}

.td-airline {
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--trp-text-secondary);
    text-align: center;
}

/* Hide airline name text in the table — visible only via Tippy tooltip */
.flight-list .airline-name-text {
    display: none;
}

.flight-number-tag {
    display: inline-block;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--trp-primary-50);
    color: var(--trp-primary);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
    border: 1px solid var(--trp-primary-100);
}

/* ── Codeshare column ────────────────────── */
.td-codeshare {
    white-space: nowrap;
    font-size: 0.8rem;
}

.codeshare-tag {
    display: inline-block;
    font-weight: 600;
    font-size: 0.7rem;
    background: var(--trp-bg-muted, #f5f7fa);
    color: var(--trp-text-secondary, #5a6a7a);
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.03em;
    border: 1px solid var(--trp-border-light, #e3e8e6);
}

.codeshare-tag + .codeshare-tag {
    margin-left: 0.2rem;
}

.codeshare-none {
    color: var(--trp-text-muted, #999);
    font-size: 0.8rem;
}

/* ── Tippy tooltip light-border theme override ── */
.tippy-box[data-theme~='light-border'] {
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* ── Codeshare "View more" toggle ────────── */
button.codeshare-more-btn,
button.codeshare-more-btn[type="button"] {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--trp-text-secondary, #5a6a7a);
    background: none;
    background-color: transparent;
    border: 1px dashed var(--trp-border-light, #e3e8e6);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
    box-shadow: none;
    min-height: auto;
    margin-left: 0.2rem;
}

button.codeshare-more-btn:hover,
button.codeshare-more-btn[type="button"]:hover {
    color: var(--trp-primary, #2a7d6e);
    border-color: var(--trp-primary, #2a7d6e);
    background: none;
    background-color: transparent;
}

.codeshare-overflow {
    display: none;
}

/* ── Airline Detection Box ───────────────── */
#airline-detection {
    margin-top: 0.5rem;
}

.airline-detection-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--trp-radius-sm);
    border: 1.5px solid;
    transition: all var(--trp-transition);
}

.airline-detection-eligible {
    background: var(--trp-primary-50);
    border-color: var(--trp-primary-100);
}

.airline-detection-not-eligible {
    background: #fef7f6;
    border-color: #fde2de;
}

.airline-detection-logo {
    height: 60px;
    width: auto;
    padding: 6px;
    background: white;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.airline-detection-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.airline-detection-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--trp-text);
}

.airline-detection-status {
    font-size: 0.75rem;
    line-height: 1.35;
}

.airline-detection-eligible .airline-detection-status {
    color: var(--trp-primary);
}

.airline-detection-not-eligible .airline-detection-status {
    color: #c53030;
}

.airline-detection-reason {
    display: block;
    font-size: 0.7rem;
    line-height: 1.3;
    color: #666;
    margin-top: 0.1rem;
}

.airline-detection-eligible .airline-detection-reason {
    color: var(--trp-primary-700, #2d6a4f);
}

/* Sidebar regulation */
.trp-summary-regulation {
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* ── Not Eligible Modal ──────────────────── */
#not-eligible-modal {
    max-width: 480px;
    width: 90vw;
    padding: 0;
    border: none;
    border-radius: var(--trp-radius-xl);
    box-shadow: var(--trp-shadow-lg);
}

#not-eligible-modal article {
    margin: 0;
}

#not-eligible-modal header {
    background: #fef7f6;
    border-bottom: 1px solid #fde2de;
    padding: 1.25rem 1.5rem;
}

#not-eligible-modal header h3 {
    color: #c53030;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

#not-eligible-modal p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--trp-text-secondary);
}

#not-eligible-modal::backdrop {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.not-eligible-contact {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    flex-wrap: wrap;
}

.not-eligible-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--trp-radius-sm);
    background: var(--trp-surface-raised);
    color: var(--trp-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--trp-transition);
    border: 1.5px solid var(--trp-border);
}

.not-eligible-contact-btn:hover {
    background: var(--trp-surface-hover);
    border-color: var(--trp-primary);
    box-shadow: var(--trp-shadow-sm);
}

.not-eligible-contact-btn i {
    font-size: 0.92rem;
    color: var(--trp-primary);
}

/* ── Terms Modal ─────────────────────────── */
#terms-modal {
    max-width: 800px;
    width: 90vw;
    padding: 0;
    border: none;
    border-radius: var(--trp-radius-xl);
    box-shadow: var(--trp-shadow-lg);
}

#terms-modal article { margin: 0; }

#terms-modal::backdrop {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

/* ── Tom Select Base ─────────────────────── */
.ts-wrapper { font-family: inherit; }

.ts-wrapper.single .ts-control {
    position: relative;
    background: var(--trp-surface) !important;
    border: 1px solid var(--trp-border) !important;
    border-radius: var(--trp-radius-sm) !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: var(--trp-input-height, 42px) !important;
    font-size: 0.92rem;
    color: var(--trp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    overflow: visible;
    transition: border-color var(--trp-transition), box-shadow var(--trp-transition);
}

.ts-wrapper.single.focus .ts-control,
.ts-wrapper.single.dropdown-active .ts-control {
    border-color: var(--trp-primary) !important;
    box-shadow: 0 0 0 3px var(--trp-primary-glow) !important;
    cursor: text;
}

/* Chevron arrow */
.ts-wrapper.single .ts-control::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border: 5px solid transparent;
    border-top-color: var(--trp-text-muted);
    margin-top: 3px;
    transition: transform .2s, border-color .2s;
    pointer-events: none;
}
.ts-wrapper.single.dropdown-active .ts-control::after {
    transform: translateY(-50%) rotate(180deg);
    margin-top: -3px;
    border-top-color: var(--trp-primary);
}

/* Selected item fills control */
.ts-wrapper.single .ts-control > .item {
    padding: 0 40px 0 var(--trp-input-padding-x, 0.85rem);
    flex: 1;
    min-width: 0;
}

.trp-phone-group .ts-wrapper.single .ts-control > .item {
    padding: 0;
}

/* INPUT OVERLAY — sits on top of selected item, hidden until dropdown opens */
.ts-wrapper.single .ts-control input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 40px 0 var(--trp-input-padding-x, 0.85rem) !important;
    margin: 0 !important;
    border: none !important;
    background: var(--trp-surface) !important;
    border-radius: calc(var(--trp-radius-sm) - 2px) !important;
    font-size: 0.92rem !important;
    font-family: inherit !important;
    color: var(--trp-text) !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    outline: none !important;
    box-shadow: none !important;
    z-index: 2;
}

/* Show input when empty (no selection) so placeholder is visible */
.ts-wrapper.single:not(.has-items) .ts-control input {
    opacity: 1;
    pointer-events: auto;
}

/* Show input, hide item when dropdown active */
.ts-wrapper.single.dropdown-active .ts-control input {
    opacity: 1;
    pointer-events: auto;
}
.ts-wrapper.single.dropdown-active .ts-control > .item {
    opacity: 0;
}

.ts-wrapper.single .ts-control input::placeholder {
    color: var(--trp-text-muted) !important;
    opacity: 0.6;
    font-size: 0.92rem;
}

/* ── Tom Select Dropdown ─────────────────── */
.ts-dropdown {
    border: 1.5px solid var(--trp-border) !important;
    border-radius: var(--trp-radius-sm) !important;
    box-shadow: var(--trp-shadow-md) !important;
    overflow: hidden;
    margin-top: 4px !important;
}
.ts-dropdown .ts-dropdown-content {
    padding: 4px;
    max-height: 350px;
}
.ts-dropdown .option {
    border-radius: 6px;
    padding: 0 !important;
    cursor: pointer;
    transition: background .1s;
}
.ts-dropdown .option.active {
    background-color: var(--trp-primary-50) !important;
    color: var(--trp-text) !important;
}
.ts-dropdown .option.active .airport-option-sub {
    color: var(--trp-text-secondary) !important;
}
.ts-dropdown .no-results {
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    color: var(--trp-text-muted);
}

/* ── Frontpage Hero Section ──────────────── */

/* Hide the plane background image */
.hero.wp-block-cover > img,
.hero.wp-block-cover > .wp-block-cover__image-background {
    display: none !important;
}

/* Gradient card instead of full-width cover */
body.home .hero.wp-block-cover {
    background: linear-gradient(135deg, #033823 0%, #015234 30%, #007a50 65%, #00895a 100%) !important;
    border-radius: var(--trp-radius-xl) !important;
    width: 100%;
    max-width: 510px;
    margin-left: auto !important;
    margin-right: auto !important;
    min-height: auto !important;
    padding: 4rem 2rem !important;
    overflow: visible;
}

@media (min-width: 576px) {
    body.home .hero.wp-block-cover { max-width: 700px; }
}
@media (min-width: 768px) {
    body.home .hero.wp-block-cover { max-width: 950px; }
}
@media (min-width: 1024px) {
    body.home .hero.wp-block-cover { max-width: 1200px; }
}
@media (min-width: 1280px) {
    body.home .hero.wp-block-cover { max-width: 1450px; }
}

body.home .hero .wp-block-cover__background,
body.home .hero .wp-block-cover__gradient-background {
    display: none !important;
}

body.home .hero .wp-block-cover__inner-container {
    width: 100% !important;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Hero text styling */
body.home .hero .wp-block-cover__inner-container h1,
body.home .hero .wp-block-cover__inner-container h2,
body.home .hero .wp-block-cover__inner-container p {
    color: #fff !important;
    text-shadow: none !important;
}

body.home .hero .wp-block-cover__inner-container h1::after {
    display: none !important;
}

body.home .hero .wp-block-cover__inner-container h1 strong {
    color: #fff !important;
}

/* ── Frontpage Hero Form ────────────────── */
#compensation-quick-start-form {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    padding-right: 145px !important;
    border-radius: var(--trp-radius) !important;
    background: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08) !important;
    max-width: 100%;
    margin: 2.5rem auto 3.5rem !important;
    width: auto !important;
    text-align: left !important;
}

/* Both field divs — equal 50/50 split */
#compensation-quick-start-form > div {
    flex: 1 1 50% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 1rem 1rem !important;
    position: relative;
    min-width: 0 !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    gap: 0.6rem;
    width: 50% !important;
}

/* SVG departure icon */
#compensation-quick-start-form > div:first-child::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    background: var(--trp-text-muted);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2.5 19h19v2h-19v-2zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2.5 19h19v2h-19v-2zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-.43 5.31-1.42 4.35-1.16L21 11.49c.81-.23 1.28-1.05 1.07-1.85z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* SVG arrival (landing) icon */
#compensation-quick-start-form > div:nth-child(2)::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    background: var(--trp-text-muted);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2.5 19h19v2h-19v-2zm7.18-5.73l4.35 1.16 5.31 1.42 1.6.43.77-1.33 1.82-3.16-1.45-.39-1.97 1.54-4.97-1.33 4.14-7.17-1.93-.51-6.9 6.43L5.31 9.43c-.8-.22-1.63.26-1.84 1.06-.21.8.26 1.62 1.07 1.85l4.35 1.16.79.21z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M2.5 19h19v2h-19v-2zm7.18-5.73l4.35 1.16 5.31 1.42 1.6.43.77-1.33 1.82-3.16-1.45-.39-1.97 1.54-4.97-1.33 4.14-7.17-1.93-.51-6.9 6.43L5.31 9.43c-.8-.22-1.63.26-1.84 1.06-.21.8.26 1.62 1.07 1.85l4.35 1.16.79.21z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Vertical divider between fields */
#compensation-quick-start-form > div:first-child::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: #e0e0e0;
}

/* Hide labels */
#compensation-quick-start-form > div label {
    display: none !important;
}

/* ── Tom Select in Hero Form (transparent, borderless) ── */
#compensation-quick-start-form .ts-wrapper {
    width: 100% !important;
    flex: 1 !important;
}
#compensation-quick-start-form .ts-wrapper.single .ts-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 1.6em !important; /* prevent zero-height collapse — input is absolute */
    padding: 0 !important;
}
#compensation-quick-start-form .ts-wrapper.single.focus .ts-control,
#compensation-quick-start-form .ts-wrapper.single.dropdown-active .ts-control {
    box-shadow: none !important;
    border: none !important;
}
#compensation-quick-start-form .ts-wrapper.single .ts-control::after {
    display: none; /* no chevron in hero form */
}
#compensation-quick-start-form .ts-wrapper.single .ts-control > .item {
    padding-left: 0;
    padding-right: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#compensation-quick-start-form .ts-wrapper.single .ts-control input {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 0.92rem !important;
    color: var(--trp-text) !important;
}
#compensation-quick-start-form .ts-control input::placeholder {
    color: var(--trp-text) !important;
    opacity: 0.5 !important;
}

/* Pico overrides for hero form — exclude Tom Select internals */
#compensation-quick-start-form > div > select {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* Hero form: allow airport name to truncate so IATA badge always shows */
#compensation-quick-start-form .airport-item-name {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
#compensation-quick-start-form .airport-item-sub {
    display: none;
}
#compensation-quick-start-form .airport-item-iata {
    flex-shrink: 0;
    padding-right: 0.25rem;
}

/* CTA button — absolute, overlays right side */
#compensation-quick-start-form button[type="submit"] {
    position: absolute !important;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: auto !important;
    padding: 0.55rem 1.25rem !important;
    border-radius: var(--trp-radius-sm) !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    letter-spacing: 0 !important;
    text-transform: none !important;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 122, 80, 0.25);
    transition: all var(--trp-transition);
    z-index: 2;
}

#compensation-quick-start-form button[type="submit"]:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 80, 0.35);
}

/* Override theme 1023px breakpoint that forces column layout — row only above 768px */
@media (min-width: 769px) and (max-width: 1023px) {
    #compensation-quick-start-form {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    #compensation-quick-start-form > div {
        flex: 1 1 50% !important;
        width: 50% !important;
    }

    #compensation-quick-start-form > div,
    #compensation-quick-start-form button[type="submit"] {
        flex-basis: auto !important;
    }
}

/* Responsive: stack on tablet & mobile */
@media (max-width: 768px) {
    body.home .hero.wp-block-cover {
        border-radius: var(--trp-radius-lg) !important;
        padding: 2.5rem 0.75rem !important;
        max-width: calc(100% - 1.5rem) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #compensation-quick-start-form {
        flex-direction: column !important;
        flex-wrap: wrap !important;
        border-radius: var(--trp-radius) !important;
        padding: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 2rem !important;
    }

    #compensation-quick-start-form > div {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 0.85rem 1.15rem !important;
    }

    #compensation-quick-start-form > div:first-child::after {
        display: none;
    }

    #compensation-quick-start-form > div:first-child {
        border-bottom: 1px solid #f0f0f0;
    }

    #compensation-quick-start-form button[type="submit"] {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        width: calc(100% - 1.5rem) !important;
        margin: 0.6rem auto 0.75rem !important;
        padding: 0.7rem 1.25rem !important;
        display: block !important;
        border-radius: var(--trp-radius-sm) !important;
        font-size: 0.95rem !important;
    }
}

/* Tighter spacing for small phones */
@media (max-width: 400px) {
    body.home .hero.wp-block-cover {
        padding: 1.75rem 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
}

/* ── Airport Dropdown Options ────────────── */
.airport-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.2rem 0;
}

.airport-option-flag {
    font-size: 1.5rem;
    flex-shrink: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.airport-option-details {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.airport-option-main {
    font-size: 0.88rem;
    color: var(--trp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.airport-option-iata {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--trp-primary);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    margin-left: auto;
    background: var(--trp-primary-50, #e8f5ef);
    padding: 0.15em 0.5em;
    border-radius: 4px;
    line-height: 1.4;
}

.airport-option-name {
    color: var(--trp-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.airport-option-sub {
    font-size: 0.7rem;
    color: var(--trp-text-muted);
    letter-spacing: 0.02em;
}

/* ── Airport Selected Item (inside ts-control) ── */
.airport-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}
.airport-item-flag {
    font-size: 1.25rem;
    flex-shrink: 0;
    border-radius: 2px;
}
.airport-item-text {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}
.airport-item-name {
    font-size: 0.92rem;
    color: var(--trp-text);
    white-space: nowrap;
    flex-shrink: 0;
}
.airport-item-sub {
    font-size: 0.78rem;
    color: var(--trp-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.airport-item-iata {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--trp-primary);
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* ── Number of Passengers ────────────────── */
.numberOfPassengersField {
    display: inline-flex !important;
    align-items: center !important;
    border: 1px solid var(--trp-border) !important;
    border-radius: var(--trp-radius-sm) !important;
    overflow: hidden !important;
    background: var(--trp-surface) !important;
    gap: 0 !important;
    height: auto !important;
}

.numberOfPassengersField .numberOfPassengersMinus,
.numberOfPassengersField .numberOfPassengersPlus {
    width: 42px !important;
    height: 42px !important;
    border: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    color: var(--trp-text-secondary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    transition: all var(--trp-transition) !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
}

.numberOfPassengersField .numberOfPassengersMinus:hover,
.numberOfPassengersField .numberOfPassengersPlus:hover {
    background: var(--trp-surface-raised) !important;
    color: var(--trp-primary) !important;
    transform: none !important;
    box-shadow: none !important;
}

.numberOfPassengersField #numberOfPassengers {
    width: 48px !important;
    max-width: 48px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid var(--trp-border-light) !important;
    border-right: 1px solid var(--trp-border-light) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 42px !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
}

.numberOfPassengersField #numberOfPassengers::-webkit-outer-spin-button,
.numberOfPassengersField #numberOfPassengers::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Co-passenger Section ────────────────── */
.copassenger-information {
    border-radius: var(--trp-radius) !important;
    border-color: var(--trp-border) !important;
    overflow: hidden;
}

.copassenger-information h3 {
    font-size: 1rem;
    font-weight: 700;
}

/* ── POA Page Layout ────────────────────── */
.trp-poa {
    max-width: 600px;
    margin: 0 auto;
}

/* POA Header */
.trp-poa-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem 0;
}
.trp-poa-icon {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.trp-poa-icon svg {
    display: inline-block;
}
.trp-poa-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--trp-text);
}
.trp-poa-header p {
    font-size: 0.9rem;
    color: var(--trp-text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* POA Flight Details Card */
.trp-poa-flight {
    padding: 1.25rem 1.5rem !important;
    margin-bottom: 1rem;
}
.trp-poa-flight-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--trp-border-light);
}
.trp-poa-flight-airport {
    text-align: center;
}
.trp-poa-flight-iata {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trp-text);
    letter-spacing: 0.04em;
}
.trp-poa-flight-arrow {
    color: var(--trp-primary);
    flex-shrink: 0;
    line-height: 1;
}
.trp-poa-flight-arrow svg {
    display: block;
}
.trp-poa-flight-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    padding-top: 0.85rem;
}
.trp-poa-flight-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.trp-poa-flight-meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--trp-text-muted);
    font-weight: 600;
}
.trp-poa-flight-meta-value {
    display: block;
    font-size: 0.9rem;
    color: var(--trp-text);
    font-weight: 600;
}

/* POA Terms Card */
.trp-poa-terms {
    margin-bottom: 1rem;
}
.trp-poa-terms h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--trp-border-light);
    color: var(--trp-text);
}
.trp-poa-terms-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.trp-poa-term {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.trp-poa-term-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 50%;
    background: var(--trp-surface-raised);
    border: 1px solid var(--trp-border-light);
    color: var(--trp-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.1rem;
}
.trp-poa-term-text {
    font-size: 0.82rem;
    color: var(--trp-text-secondary);
    line-height: 1.55;
}

/* POA Signature Card */
.trp-poa-signature {
    margin-bottom: 0;
}
.trp-poa-signature h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--trp-text);
}
.trp-poa-signature-hint {
    font-size: 0.82rem;
    color: var(--trp-text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

/* Signature Pad */
.signature-pad-wrapper {
    border-radius: var(--trp-radius-sm);
    overflow: hidden;
    border: 2px dashed var(--trp-border) !important;
    transition: border-color var(--trp-transition);
    background: #fafbfc;
}
.signature-pad-wrapper:hover {
    border-color: var(--trp-primary) !important;
}

/* Responsive POA */
@media (max-width: 480px) {
    .trp-poa-flight-meta {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem 1rem;
    }
    .trp-poa-flight-iata {
        font-size: 1.2rem;
    }
    .trp-poa-flight {
        padding: 1rem !important;
    }
}

/* ── Focus Loader (Preloader) ────────────── */
.focus-loader {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.92) !important;
}

.focus-loader .focus-spinner {
    border-color: var(--trp-primary) transparent !important;
}

.focus-loader .focus-spinner::before {
    border-color: var(--trp-primary) transparent !important;
}

.focus-loader .focus-loader-content {
    color: var(--trp-text) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* ── Case Submission Loader ────────────── */
.trp-submission-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem;
    max-width: 360px;
}

/* Animated circular spinner */
.trp-submission-spinner {
    width: 56px;
    height: 56px;
}
.trp-submission-spinner svg {
    width: 100%;
    height: 100%;
    animation: trp-spin 1.4s linear infinite;
}
.trp-submission-spinner circle {
    stroke: var(--trp-primary, #007a50);
    stroke-linecap: round;
    stroke-dasharray: 90 150;
    stroke-dashoffset: 0;
    animation: trp-dash 1.4s ease-in-out infinite;
}

@keyframes trp-spin {
    100% { transform: rotate(360deg); }
}
@keyframes trp-dash {
    0% {
        stroke-dasharray: 1 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90 150;
        stroke-dashoffset: -125;
    }
}

/* Message text with fade animation */
.trp-submission-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--trp-text, #1a1d26);
    transition: opacity 0.3s ease;
    min-height: 1.5em;
}
.trp-submission-message--fade {
    opacity: 0;
}

/* Progress bar */
.trp-submission-progress {
    width: 100%;
    height: 4px;
    background: var(--trp-border-light, #f0f1f3);
    border-radius: 2px;
    overflow: hidden;
}
.trp-submission-progress-bar {
    height: 100%;
    background: var(--trp-primary, #007a50);
    border-radius: 2px;
    width: 0%;
}

/* Hint text */
.trp-submission-hint {
    font-size: 0.82rem;
    color: var(--trp-text-muted, #9ca3af);
    line-height: 1.4;
}

/* ── Error Box ───────────────────────────── */
.trp-form-content .mb1 > p[style*="border"] {
    border-radius: var(--trp-radius-sm) !important;
    background: #fef7f6 !important;
}

/* ── Grid ────────────────────────────────── */
.grid.grid-2 {
    gap: 1.25rem;
}

/* ── Description text under inputs ───────── */
input + .description {
    font-size: 0.78rem;
    color: var(--trp-text-muted);
}

/* ── Checkboxes (Marketing / Terms) ──────── */
.check.marketing label,
.check.terms label {
    font-size: 0.85rem;
    color: var(--trp-text-secondary);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.check.terms a {
    font-weight: 600;
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 480px) {
    .trp-route-summary {
        gap: 0.5rem;
        padding: 1rem;
        border-radius: var(--trp-radius);
    }

    .trp-route-plane { width: 50px; }
    .trp-route-airport { min-width: 75px; }
    .trp-route-iata { font-size: 1.2rem; }
    .trp-route-name { max-width: 90px; }

    .trp-route-distance {
        font-size: 0.66rem;
        padding: 0.1rem 0.6rem;
        gap: 0.25rem;
    }
    .trp-route-distance-label { font-size: 0.6rem; }

    .airline-detection-box { flex-wrap: wrap; }
}

@media (max-width: 767px) {
    .trp-form-content h2 {
        font-size: 1.25rem;
    }

    .flow-actions {
        flex-direction: column-reverse;
        gap: 0.5rem !important;
    }

    .flow-actions button[type="submit"],
    .flow-actions input[type="submit"],
    .flow-actions .go-back {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── Tom Select for Country Select ── */
#country + .ts-wrapper.single .ts-control {
    padding: 0 !important;
}

/* Country dropdown option */
.country-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
}
.country-option .fi {
    font-size: 1.15em;
    border-radius: 2px;
    flex-shrink: 0;
}
.country-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.country-option-dial {
    color: var(--trp-text-muted);
    font-size: 0.85em;
    flex-shrink: 0;
}
/* Country selected display */
.country-selection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.country-selection .fi {
    font-size: 1.1em;
    border-radius: 2px;
}

/* ── Integrated Phone Field Group ── */
.trp-phone-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--trp-border);
    border-radius: var(--trp-radius-sm);
    background: var(--trp-surface);
    box-shadow: var(--trp-shadow-xs);
    /* overflow: visible so the Tom Select dropdown can escape the group */
    overflow: visible;
    position: relative;
    transition: border-color var(--trp-transition), box-shadow var(--trp-transition);
}
.trp-phone-group:focus-within {
    border-color: var(--trp-primary);
    box-shadow: 0 0 0 3px var(--trp-primary-glow);
}
/* ── Tom Select Phone Prefix (compact, borderless inside phone group) ── */
.trp-phone-group .ts-wrapper {
    flex-shrink: 0;
    width: auto !important;
    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}
.trp-phone-group .ts-wrapper.single .ts-control {
    border: none !important;
    box-shadow: none !important;
    background: var(--trp-surface-raised, #fafbfc) !important;
    border-right: 1px solid var(--trp-border-light, var(--trp-border)) !important;
    border-top-left-radius: calc(var(--trp-radius-sm) - 2px) !important;
    border-bottom-left-radius: calc(var(--trp-radius-sm) - 2px) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    min-height: 0 !important;
    /* Match the .trp-phone-group input vertical padding so heights align */
    padding: 0.55rem 18px 0.55rem 8px !important;
    min-width: 78px;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    line-height: 1.5;
    font-size: 0.92rem;
}
.trp-phone-group .ts-wrapper.single .ts-control::after {
    right: 6px;
    border-width: 4px;
}
.trp-phone-group .ts-wrapper.single.focus .ts-control,
.trp-phone-group .ts-wrapper.single.dropdown-active .ts-control {
    box-shadow: none !important;
    border-right: 1px solid var(--trp-border-light, var(--trp-border)) !important;
}
/* Phone prefix search input — visible but compact, only shows when dropdown is open */
.trp-phone-group .ts-wrapper.single .ts-control > input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    font-size: 0.85rem;
    color: var(--trp-text);
}
.trp-phone-group .ts-wrapper.single.dropdown-active .ts-control > input {
    width: 60px !important;
    margin-left: 4px !important;
}
/* Hide the selected item visually while typing in the search input */
.trp-phone-group .ts-wrapper.single.dropdown-active .ts-control .item {
    opacity: 0.4;
}

/* Make the Tom Select dropdown panel escape the narrow phone-prefix control */
.trp-phone-group .ts-dropdown {
    width: auto !important;
    min-width: 280px !important;
    left: 0 !important;
    right: auto !important;
}

/* Phone code dropdown option */
.phone-code-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
}
.phone-code-option .fi {
    font-size: 1.15em;
    border-radius: 2px;
    flex-shrink: 0;
}
.phone-code-country {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phone-code-dial {
    color: var(--trp-text-muted);
    font-size: 0.85em;
    flex-shrink: 0;
    margin-left: auto;
}

/* Phone code selected display */
.phone-code-selected {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.phone-code-selected .fi {
    font-size: 1.1em;
    border-radius: 2px;
}
.trp-phone-group input[type="tel"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 0.55rem 0.85rem !important;
    margin: 0 !important;
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--trp-text);
    border-radius: 0 !important;
    height: auto !important;
    letter-spacing: 0.02em;
}
.trp-phone-group input[type="tel"]:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.trp-phone-group input[type="tel"]::placeholder {
    color: var(--trp-text-muted);
    opacity: 0.6;
}
.trp-phone-error {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: #dc3545 !important;
}

/* ── Email typo hint ─────── */
.trp-email-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--trp-text-secondary);
}
.trp-email-hint a.trp-email-fix {
    color: var(--trp-primary);
    text-decoration: underline;
    cursor: pointer;
}
.trp-email-hint a.trp-email-fix:hover {
    color: #006844;
}

/* ── Custom Checkboxes ─────────────────── */
.trp-form-content input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--trp-border);
    border-radius: 5px;
    background: var(--trp-surface);
    cursor: pointer;
    transition: all var(--trp-transition);
    position: relative;
    margin: 0;
    flex-shrink: 0;
}

.trp-form-content input[type="checkbox"]:hover {
    border-color: var(--trp-primary);
}

.trp-form-content input[type="checkbox"]:checked {
    background: var(--trp-primary);
    border-color: var(--trp-primary);
}

.trp-form-content input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.trp-form-content input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px var(--trp-primary-glow);
    outline: none;
}

/* Checkbox + label alignment */
.trp-form-content .check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.trp-form-content .check input[type="checkbox"] {
    margin-top: 2px;
}

.trp-form-content .check label {
    flex: 1;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--trp-text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

/* Terms — single flowing text, NOT 3 columns */
.trp-form-content .check.terms label {
    display: inline;
}

.trp-form-content .check.terms label a {
    font-weight: 600;
    color: var(--trp-primary);
    text-decoration: none;
}

.trp-form-content .check.terms label a:hover {
    text-decoration: underline;
}

/* Co-passenger underage checkbox */
.trp-form-content .coPassengerUnderage {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.trp-form-content .coPassengerUnderage label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--trp-text-secondary);
    line-height: 1.4;
    cursor: pointer;
}

/* ── Delay Radios as Cards Row ─────────── */
.delay-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.delay-cards-row input.choice + label {
    text-align: center;
    justify-content: center;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.85rem !important;
    margin-top: 0 !important;
}

/* Hide radio indicator for delay card layout */
.delay-cards-row input.choice + label::before {
    display: none;
}

@media (max-width: 575px) {
    .delay-cards-row {
        grid-template-columns: 1fr;
    }
}

/* ── Sidebar absolute position adjustments ── */
.trp-sidebar {
    border-left: 1px solid var(--trp-border-light);
}

/* ============================================
   AJAX Wizard — Animations & Cards
   ============================================ */

/* ── Step Indicator Animations ─────────── */

/* Connector line animation: "draw" effect */
.trp-step:not(:last-child)::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.trp-step.completed:not(:last-child)::after {
    transform: scaleX(1);
}

/* Blob animation when step becomes active */
@keyframes stepBlob {
    0% { transform: scale(1); }
    35% { transform: scale(1.3); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1.1); }
}

.trp-step.animating .trp-step-number {
    animation: stepBlob 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── Card Component ────────────────────── */
.trp-card {
    background: #f8f9fb;
    border: 1px solid var(--trp-border-light);
    border-radius: var(--trp-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

/* Staggered entrance animation for cards */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.trp-step-content .trp-card {
    animation: cardEntrance 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.trp-step-content .trp-card:nth-child(1) { animation-delay: 0s; }
.trp-step-content .trp-card:nth-child(2) { animation-delay: 0.06s; }
.trp-step-content .trp-card:nth-child(3) { animation-delay: 0.12s; }
.trp-step-content .trp-card:nth-child(4) { animation-delay: 0.18s; }

/* ── Step Content Transitions ──────────── */
.trp-step-content {
    transition: opacity 0.15s ease, transform 0.15s ease;
    will-change: opacity, transform;
}

.trp-step-content.exiting-left {
    opacity: 0;
    transform: translateX(-30px);
}

.trp-step-content.exiting-right {
    opacity: 0;
    transform: translateX(30px);
}

.trp-step-content.entering-right {
    opacity: 0;
    transform: translateX(30px);
    transition: none;
}

.trp-step-content.entering-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: none;
}

/* ── Button spinner — kill Pico ::before duplicate, center ::after ─── */
.trp-flow-page button[aria-busy=true]::before,
.trp-flow-page [type=submit][aria-busy=true]::before {
    display: none !important;
}

.trp-flow-page button[aria-busy=true]::after,
.trp-flow-page [type=submit][aria-busy=true]::after {
    left: 50%;
    top: 50%;
    margin-left: -0.55em;
    margin-top: -0.55em;
}

/* ── Error Message Styling ─────────────── */
.trp-error-message {
    animation: cardEntrance 0.3s ease forwards;
}

.trp-error-message p {
    border: 1px solid #dc2626;
    border-radius: var(--trp-radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #dc2626;
    background: #fef2f2;
    margin: 0;
}

/* Field-level error highlighting */
.trp-field-error input.choice + label {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
.trp-field-error input.choice + label::before {
    border-color: #dc2626;
}
.trp-field-error .ts-wrapper.single .ts-control {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
.trp-field-error input[type="text"],
.trp-field-error input[type="email"],
.trp-field-error input[type="tel"],
.trp-field-error select,
.trp-field-error textarea {
    border-color: #dc2626 !important;
    background: #fef2f2 !important;
}
.trp-field-error.trp-card {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}
@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-3px); }
    40%, 80% { transform: translateX(3px); }
}
.trp-field-error {
    animation: fieldShake 0.35s ease;
}

/* ── Connecting / Layover Fields ─────── */
.connecting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.connecting-title {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--trp-text);
}

.connecting-header .add-connecting-airport {
    background: none;
    border: none;
    color: var(--trp-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: var(--trp-radius-sm);
    transition: background var(--trp-transition), color var(--trp-transition);
    white-space: nowrap;
    margin: 0;
    width: auto;
}

.connecting-header .add-connecting-airport:hover {
    background: var(--trp-primary-50);
}

.connecting-fields .layover-field {
    margin-bottom: 0.75rem;
}

.connecting-fields .layover-field:last-child {
    margin-bottom: 0;
}

.layover-field-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.layover-field-row select,
.layover-field-row .ts-wrapper {
    flex: 1;
    min-width: 0;
}

.layover-field-row .remove-connecting-airport {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    background: none;
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-radius-sm);
    color: var(--trp-text-muted);
    cursor: pointer;
    transition: color var(--trp-transition), border-color var(--trp-transition), background var(--trp-transition);
    padding: 0;
    margin: 0;
}

.layover-field-row .remove-connecting-airport:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* ── Card inner spacing adjustments ────── */
.trp-card .tabs.flight-type {
    margin-bottom: 0.75rem;
}

.trp-card .grid.airports-row {
    margin-bottom: 0;
}

.trp-card .grid.grid-2:last-child {
    margin-bottom: 0;
}

.trp-card .mb1:last-child {
    margin-bottom: 0;
}

/* ── Route summary card (step 3) ─────── */
.trp-route-summary {
    margin-bottom: 1rem;
}

.trp-route-extra {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--trp-border);
    font-size: 0.78rem;
    gap: 0.3rem;
}

.trp-route-layovers,
.trp-route-segment {
    color: var(--trp-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trp-route-layovers-label,
.trp-route-segment-label {
    font-weight: 600;
    color: var(--trp-text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.trp-route-segment-value {
    font-weight: 700;
    color: var(--trp-primary);
}

/* ── Responsive card adjustments ─────── */
@media (max-width: 767px) {
    .trp-card {
        padding: 1rem;
        border-radius: var(--trp-radius-sm);
    }
}

/* ── Flight not found / no flights notices ─────── */
.trp-flight-not-found-notice,
.trp-no-flights-notice {
    background: var(--trp-warning-bg, #fff8e6);
    border: 1px solid var(--trp-warning-border, #f0d78c);
    border-radius: var(--trp-radius-sm, 8px);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--trp-text-secondary, #5a6a7a);
}
.trp-flight-not-found-notice p,
.trp-no-flights-notice p {
    margin: 0;
}
.trp-no-flights-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.5rem !important;
    font-size: 0.82rem;
    color: var(--trp-text-secondary, #555);
}
.trp-no-flights-hint i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--trp-primary, #007a50);
}

/* ── Layover suggestion modal (glassmorphism) ─────── */
.trp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trp-modal-overlay--visible {
    opacity: 1;
}
.trp-modal-glass {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--trp-radius-lg, 16px);
    box-shadow: var(--trp-shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.trp-modal-overlay--visible .trp-modal-glass {
    transform: translateY(0) scale(1);
}
.trp-modal-icon {
    margin: 0 auto 1rem;
    width: 48px;
    height: 48px;
}
.trp-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--trp-text);
    margin: 0 0 0.75rem;
}

/* Route visualization: IATA ··· Layover ··· IATA */
.trp-modal-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.75rem;
    background: var(--trp-primary-50, #e6f7ee);
    border-radius: var(--trp-radius-sm, 8px);
}
.trp-modal-route-iata {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--trp-text);
    letter-spacing: 0.03em;
}
.trp-modal-route-layover {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--trp-primary, #007a50);
    padding: 0.15rem 0.5rem;
    background: rgba(0, 122, 80, 0.1);
    border-radius: 4px;
}
.trp-modal-route-arrow {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--trp-primary, #007a50);
    opacity: 0.6;
    line-height: 1;
}
.trp-modal-route-iata--highlight {
    color: var(--trp-primary, #007a50);
    font-weight: 700;
}

.trp-modal-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--trp-text-secondary);
    margin: 0 0 1.25rem;
}
.trp-modal-desc strong {
    color: var(--trp-text);
    font-weight: 600;
}
.trp-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.trp-modal-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--trp-radius-sm, 8px);
    border: none;
    cursor: pointer;
    transition: all var(--trp-transition);
    text-align: center;
    line-height: 1.4;
}
.trp-modal-btn--primary {
    background: var(--trp-primary, #007a50);
    color: #fff;
    box-shadow: var(--trp-shadow-sm);
}
.trp-modal-btn--primary:hover {
    background: #006844;
    box-shadow: var(--trp-shadow), 0 0 0 3px var(--trp-primary-glow);
    transform: translateY(-1px);
}
.trp-modal-btn--primary:active {
    transform: translateY(0);
}
.trp-modal-btn.trp-modal-btn--secondary {
    background: transparent;
    color: var(--trp-text-secondary);
    border: 1px solid var(--trp-border);
    box-shadow: none;
    --pico-background-color: transparent;
    --pico-border-color: var(--trp-border);
    --pico-color: var(--trp-text-secondary);
}
.trp-modal-btn.trp-modal-btn--secondary:hover {
    background: var(--trp-surface-hover);
    color: var(--trp-text);
    border-color: var(--trp-text-muted);
    --pico-background-color: var(--trp-surface-hover);
    --pico-color: var(--trp-text);
}
@media (max-width: 480px) {
    .trp-modal-glass {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    .trp-modal-route {
        gap: 0.35rem;
        font-size: 0.85rem;
    }
}

/* ── Flight data card (step 4 — FlightAware data) ─────── */
.trp-flight-data-card {
    background: var(--trp-card-bg, #f8f9fa);
    border: 1px solid var(--trp-border);
    border-radius: var(--trp-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.trp-flight-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}
.trp-flight-data-row + .trp-flight-data-row {
    border-top: 1px solid var(--trp-border);
}
.trp-flight-data-label {
    font-size: 0.85rem;
    color: var(--trp-muted);
    font-weight: 500;
}
.trp-flight-data-value {
    font-weight: 600;
    font-size: 0.9rem;
}
.trp-flight-data-multileg {
    grid-column: 1 / -1;
    background: var(--trp-info-bg, #e8f4fd);
    border: 1px solid var(--trp-info-border, #b3d7f0);
    border-radius: var(--trp-radius-sm, 6px);
    padding: 0.5rem 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--trp-text-secondary, #555);
}

/* ── "Can't remember?" divider ─────── */
.trp-flight-remember-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 0.5rem;
}
.trp-divider-line {
    flex: 1;
    height: 1px;
    background: var(--trp-border);
}
.trp-flight-remember-divider a {
    font-size: 0.85rem;
    color: var(--trp-muted);
    text-decoration: none;
    white-space: nowrap;
}
.trp-flight-remember-divider a:hover {
    color: var(--trp-primary);
}

/* ── Flight number field description ─────── */
.trp-field-description {
    font-size: 0.85rem;
    color: var(--trp-muted);
    margin: -0.25rem 0 0.5rem;
}

/* ── Incident log editor (Quill.js) ─────── */
#incidentLogEditor {
    min-height: 200px;
    background: #fff;
    border-radius: 0 0 var(--trp-radius-sm) var(--trp-radius-sm);
}
#incidentLogEditor .ql-editor {
    min-height: 180px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.ql-toolbar.ql-snow {
    border-radius: var(--trp-radius-sm) var(--trp-radius-sm) 0 0;
    border-color: var(--trp-border) !important;
}
.ql-container.ql-snow {
    border-color: var(--trp-border) !important;
}

/* ── Flight cancelled badge ─────── */
.flight-status-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.4rem;
    vertical-align: middle;
}
.flight-status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}
.flight-status-badge.delayed {
    background: #fef3c7;
    color: #d97706;
}
.flight-status-badge.on-time {
    background: #d1fae5;
    color: #059669;
}
.flight-status-badge.rescheduled {
    background: #ede9fe;
    color: #7c3aed;
}
.flight-merge-note {
    display: block;
    font-size: 0.65rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.15rem;
}
tr.flight-cancelled {
    opacity: 0.7;
}
.flight-list .td-status {
    white-space: nowrap;
}

/* ── Confirmation / Receipt Page ────────── */
.trp-confirmation {
    max-width: 540px;
    margin: 0 auto;
    padding: 0 0 2rem;
}

/* Header */
.trp-confirmation-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem 0;
}
.trp-confirmation-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
    color: var(--trp-text);
}
.trp-confirmation-header p {
    color: var(--trp-text-secondary);
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.trp-confirmation-icon {
    display: block;
    text-align: center;
    line-height: 1;
}
.trp-confirmation-icon svg {
    display: inline-block;
}
.trp-confirmation-header--warning .trp-confirmation-icon {
    font-size: 2.5rem;
}
.trp-confirmation-header--error h2 {
    color: #dc2626;
}

/* Case reference badge */
.trp-confirmation-ref {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.trp-confirmation-ref-label {
    font-size: 0.8rem;
    color: var(--trp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.trp-confirmation-ref-id {
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--trp-primary-50);
    color: var(--trp-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--trp-primary-100);
}

/* Flight details card */
.trp-confirmation-flight {
    padding: 1.25rem 1.5rem !important;
}

/* Airline row: logo + name */
.trp-confirmation-airline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.trp-confirmation-airline-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}
.trp-confirmation-airline-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--trp-text);
}

/* Badges row: flight number + status */
.trp-confirmation-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Route display */
.trp-confirmation-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--trp-border-light);
    border-bottom: 1px solid var(--trp-border-light);
}
.trp-confirmation-airport {
    text-align: center;
    flex: 1;
    min-width: 0;
}
.trp-confirmation-iata {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--trp-text);
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.trp-confirmation-airport-name {
    display: block;
    font-size: 0.75rem;
    color: var(--trp-text-muted);
    margin-top: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trp-confirmation-route-arrow {
    flex-shrink: 0;
    color: var(--trp-primary);
    line-height: 1;
}
.trp-confirmation-route-arrow svg {
    display: block;
}

/* Meta row (date, distance) — each item block-level */
.trp-confirmation-meta {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0 0;
}
.trp-confirmation-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.trp-confirmation-meta-item:last-child {
    text-align: right;
}
.trp-confirmation-meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--trp-text-muted);
    font-weight: 600;
}
.trp-confirmation-meta-value {
    display: block;
    font-size: 0.85rem;
    color: var(--trp-text);
    font-weight: 500;
}

/* Compensation display */
.trp-confirmation-compensation {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--trp-border-light);
}
.trp-confirmation-comp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--trp-text-secondary);
}
.trp-confirmation-comp-total {
    font-weight: 700;
    font-size: 1rem;
    color: var(--trp-text);
    padding-top: 0.4rem;
}
.trp-confirmation-comp-label {
    display: block;
}
.trp-confirmation-comp-amount {
    display: block;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-weight: 700;
    color: var(--trp-primary);
}
.trp-confirmation-comp-total .trp-confirmation-comp-amount {
    font-size: 1.2rem;
}

/* Passenger info card */
.trp-confirmation-passenger {
    text-align: left;
}
.trp-confirmation-passenger h3,
.trp-confirmation-next h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--trp-border-light);
    color: var(--trp-text);
}
.trp-confirmation-detail {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f5f5f7;
}
.trp-confirmation-detail:last-child {
    border-bottom: none;
}
.trp-confirmation-detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--trp-text-muted);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 1rem;
}
.trp-confirmation-detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--trp-text);
    font-weight: 500;
    text-align: right;
    word-break: break-word;
}

/* What happens next — numbered steps */
.trp-confirmation-next {
    text-align: left;
}
.trp-confirmation-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}
.trp-confirmation-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.trp-confirmation-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: var(--trp-primary-50);
    color: var(--trp-primary);
    font-size: 0.75rem;
    font-weight: 700;
}
.trp-confirmation-step-text {
    font-size: 0.85rem;
    color: var(--trp-text-secondary);
    line-height: 1.5;
    padding-top: 0.2rem;
    text-align: left;
}

.trp-confirmation-reassurance {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    background: var(--trp-primary-50);
    border-radius: var(--trp-radius-sm);
    font-size: 0.85rem;
    color: var(--trp-primary);
    font-weight: 500;
    line-height: 1.5;
}

/* Error note */
.trp-confirmation-note {
    font-weight: 500;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--trp-text-secondary);
    text-align: center;
    margin: 0.5rem 0;
}

/* Error detail card */
.trp-confirmation-error-detail {
    text-align: center;
}
.trp-confirmation-error-detail p {
    font-size: 0.95rem;
    color: var(--trp-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Actions */
.trp-confirmation-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.trp-confirmation-actions .go-back {
    display: inline-block;
    min-width: 180px;
    text-align: center;
}
.trp-confirmation-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--trp-text-muted);
    text-decoration: underline;
    cursor: pointer;
}
.trp-confirmation-link:hover {
    color: var(--trp-text);
}

/* Responsive */
@media (max-width: 480px) {
    .trp-confirmation {
        padding: 0 0 1.5rem;
    }
    .trp-confirmation-iata {
        font-size: 1.2rem;
    }
    .trp-confirmation-route {
        gap: 0.5rem;
    }
    .trp-confirmation-flight {
        padding: 1rem !important;
    }
}

