/* ── Flight Search Container ── */
.hero-card .flight-search-container {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 60, 90, 0.12),
        0 1px 3px rgba(0, 0, 0, 0.06);
}

.hero-card .flight-search-container *,
.hero-card .flight-search-container *::before,
.hero-card .flight-search-container *::after {
    box-sizing: border-box;
}

/* ── Header ── */
.hero-card .fsc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0091d5, #00aeef);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-card .fsc-header svg { flex-shrink: 0; }

/* ── Body ── */
.hero-card .fsc-body {
    padding: 14px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Trip Type ── */
.hero-card .trip-type {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.hero-card .trip-radio {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid #e2e8f0;
    flex: 1;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
    transition: all 0.2s;
    user-select: none;
}

.hero-card .trip-radio:has(input:checked) {
    background: rgba(0, 174, 239, 0.08);
    border-color: #00aeef;
    color: #0077bb;
}

.hero-card .trip-radio input[type="radio"] { display: none; }

.hero-card .radio-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
}

.hero-card .trip-radio:has(input:checked) .radio-dot {
    border-color: #00aeef;
}

.hero-card .trip-radio:has(input:checked) .radio-dot::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #00aeef;
}

/* ── Route Row (From ↔ Swap ↔ To) ── */
.hero-card .route-row {
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.hero-card .route-row .ig-from,
.hero-card .route-row .ig-to {
    flex: 1;
    min-width: 0;
}

/* ── Swap Button ── */
.hero-card .btn-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    background: #ffffff;
    color: #00aeef;
    cursor: pointer;
    margin: 0 6px 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.hero-card .btn-swap:hover {
    background: #00aeef;
    color: #ffffff;
    border-color: #00aeef;
    transform: rotate(180deg);
}

/* ── Date Row ── */
.hero-card .date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Passenger Row ── */
.hero-card .pax-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 0 4px;
    border-top: 1px solid #f1f5f9;
}

.hero-card .pax-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hero-card .pax-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
}

.hero-card .pax-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.hero-card .pax-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
}

.hero-card .pax-btn {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #00aeef;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.hero-card .pax-btn:hover {
    background: rgba(0, 174, 239, 0.1);
}

.hero-card .pax-ctrl input[type="number"] {
    width: 32px;
    height: 32px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
    -moz-appearance: textfield;
}

.hero-card .pax-ctrl input[type="number"]::-webkit-inner-spin-button,
.hero-card .pax-ctrl input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Class + Direct Row ── */
.hero-card .class-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.hero-card .ig-class {
    flex: 1;
    min-width: 0;
}

.hero-card .ig-class select {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 32px 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.hero-card .ig-class select:hover {
    border-color: #94a3b8;
}

.hero-card .ig-class select:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

/* ── Direct Flights Checkbox ── */
.hero-card .direct-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    user-select: none;
    padding-bottom: 4px;
    -webkit-tap-highlight-color: transparent;
}

.hero-card .direct-check input {
    display: none;
}

.hero-card .check-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.hero-card .direct-check:has(input:checked) .check-box {
    background: #00aeef;
    border-color: #00aeef;
}

.hero-card .direct-check:has(input:checked) .check-box::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

/* ── Input Groups ── */
.hero-card .input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-card .input-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-card .input-group label svg {
    color: #00aeef;
    flex-shrink: 0;
}

.hero-card .input-group input[type="text"],
.hero-card .input-group input[type="date"] {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    transition: all 0.2s;
}

.hero-card .input-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.hero-card .input-group input:hover {
    border-color: #94a3b8;
}

.hero-card .input-group input:focus {
    outline: none;
    border-color: #00aeef;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

/* ── Search Button ── */
.hero-card .btn-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #00aeef 0%, #0086be 100%);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0, 134, 190, 0.3);
    letter-spacing: 0.01em;
    -webkit-tap-highlight-color: transparent;
}

.hero-card .btn-search:hover {
    background: linear-gradient(135deg, #0098d4 0%, #0074a5 100%);
    box-shadow: 0 6px 20px rgba(0, 134, 190, 0.4);
    transform: translateY(-1px);
}

.hero-card .btn-search:active {
    transform: translateY(0);
}

.hero-card .btn-search svg {
    flex-shrink: 0;
}

/* ── Responsive: Tablet (641-980px) ── */
@media (min-width: 641px) and (max-width: 980px) {
    .hero-card .flight-search-container {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ── Responsive: Mobile (≤640px) ── */
@media (max-width: 640px) {
    .hero-card .fsc-body {
        padding: 12px 12px 16px;
    }
    .hero-card .trip-type {
        gap: 4px;
    }
    .hero-card .trip-radio {
        font-size: 0.75rem;
        padding: 5px 8px;
        gap: 5px;
    }
    .hero-card .radio-dot {
        width: 12px;
        height: 12px;
    }
    .hero-card .route-row {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-card .btn-swap {
        align-self: center;
        margin: 2px 0;
        transform: rotate(90deg);
    }
    .hero-card .btn-swap:hover {
        transform: rotate(270deg);
    }
    .hero-card .date-row {
        grid-template-columns: 1fr;
    }
    .hero-card .pax-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .hero-card .pax-counter {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }
    .hero-card .pax-label {
        min-width: 55px;
    }
    .hero-card .pax-sub {
        margin-bottom: 0;
        margin-right: auto;
    }
    .hero-card .pax-ctrl {
        flex-shrink: 0;
    }
    .hero-card .class-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .hero-card .direct-check {
        padding-bottom: 0;
    }
    .hero-card .btn-search {
        height: 44px;
        font-size: 0.9rem;
        margin-top: 2px;
    }
}

/* ── Responsive: Very small (≤360px) ── */
@media (max-width: 360px) {
    .hero-card .fsc-body {
        padding: 10px 10px 14px;
    }
    .hero-card .trip-radio {
        font-size: 0.7rem;
        padding: 4px 6px;
        gap: 4px;
    }
    .hero-card .radio-dot {
        width: 10px;
        height: 10px;
    }
    .hero-card .input-group input[type="text"],
    .hero-card .input-group input[type="date"] {
        height: 36px;
        font-size: 0.84rem;
    }
    .hero-card .ig-class select {
        height: 36px;
        font-size: 0.84rem;
    }
    .hero-card .pax-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .hero-card .pax-ctrl input[type="number"] {
        width: 28px;
        height: 28px;
        font-size: 0.84rem;
    }
}
