:root {
    --bg: #f4f7fb;
    --top-bg: #eaf1fb;
    --card: #ffffff;
    --ink: #101828;
    --muted: #667085;
    --line: #d8e0ea;
    --primary: #155eef;
    --primary-dark: #0f43b9;
    --success: #067647;
    --warning: #b54708;
    --danger: #b42318;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.14);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    min-height: 100%;
    background-color: var(--top-bg);
    background-image:
        radial-gradient(circle at 16% 12%, rgba(21, 94, 239, 0.16), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(6, 118, 71, 0.10), transparent 24rem),
        linear-gradient(180deg, var(--top-bg) 0%, var(--bg) 100%);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: transparent;
    background-image:
        radial-gradient(circle at 16% 12%, rgba(21, 94, 239, 0.16), transparent 30rem),
        radial-gradient(circle at 88% 8%, rgba(6, 118, 71, 0.10), transparent 24rem),
        linear-gradient(180deg, var(--top-bg) 0%, var(--bg) 100%);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 20px;
}

.shell {
    width: min(720px, 100%);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #ffffff;
    background: var(--ink);
    border-radius: 10px;
    font-size: 13px;
}

.hero {
    margin: 56px 0 28px;
    text-align: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    color: var(--ink);
    font-size: clamp(44px, 9vw, 82px);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.hero p:not(.eyebrow) {
    max-width: 520px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.checker {
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(216, 224, 234, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.fields {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

input {
    min-height: 56px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    color: var(--ink);
    background: #ffffff;
    font-size: 17px;
    font-weight: 700;
    outline: none;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12);
}

.button {
    display: inline-flex;
    min-height: 58px;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(21, 94, 239, 0.24);
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.status {
    min-height: 22px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.result {
    margin-top: 18px;
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 54px rgba(16, 24, 40, 0.10);
    text-align: center;
}

.result.eligible {
    border-color: rgba(6, 118, 71, 0.28);
}

.result.possible {
    border-color: rgba(181, 71, 8, 0.28);
}

.result.unlikely {
    border-color: rgba(180, 35, 24, 0.24);
}

.result h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.result p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.flight-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 14px;
    color: var(--ink) !important;
    background: #f4f7fb;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px !important;
    font-weight: 800;
}

.amount {
    display: grid;
    gap: 6px;
    max-width: 340px;
    margin: 24px auto 0;
    padding: 20px;
    color: #ffffff;
    background: var(--ink);
    border-radius: 20px;
}

.amount span {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
}

.amount strong {
    font-size: 38px;
    letter-spacing: -0.04em;
}

.note {
    max-width: 560px;
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.faq {
    margin-top: 48px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 16px 48px rgba(16, 24, 40, 0.08);
}

.faq h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.faq details {
    border-top: 1px solid var(--line);
}

.faq details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    padding: 18px 0;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.faq details p {
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 680px) {
    .page {
        min-height: 100svh;
        padding: calc(24px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom));
        place-items: start center;
    }

    .hero {
        margin-top: 44px;
    }

    .checker,
    .result,
    .faq {
        padding: 20px;
        border-radius: 22px;
    }

    .fields {
        grid-template-columns: 1fr;
    }

    input {
        min-height: 52px;
        padding: 0 14px;
        font-size: 16px;
    }

    input[type="date"] {
        min-width: 0;
        -webkit-appearance: none;
        appearance: none;
        line-height: 52px;
        text-align: left;
    }

    input[type="date"]::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 18px;
        height: 18px;
        margin-left: 4px;
    }
}
