:root {
    --navy: #101d35;
    --blue: #1769e0;
    --cyan: #43c6e8;
    --light: #f4f7fc;
    --text: #26344a;
    --muted: #718096;
    --white: #fff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--text);
}

a { color: inherit; text-decoration: none; }

.navbar {
    height: 76px;
    padding: 0 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.brand {
    font-size: 25px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
}

.brand-icon { color: var(--blue); }

.navbar nav { display: flex; gap: 32px; }
.navbar nav a, .navbar > a:last-child { font-size: 14px; font-weight: 600; }

.hero {
    background: linear-gradient(120deg, #101d35, #183e70);
    padding: 65px 7% 100px;
    position: relative;
}

.hero-content { color: white; max-width: 650px; }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 2px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.04; margin: 18px 0; letter-spacing: -3px; }
.hero-content p { color: #d0dced; font-size: 17px; line-height: 1.7; }

.search-panel {
    max-width: 1050px;
    margin: 48px auto -155px;
    position: relative;
    background: white;
    padding: 34px;
    border-radius: 15px;
    box-shadow: 0 18px 55px #07152b25;
}

.search-panel h2 { margin: 0 0 8px; color: var(--navy); }
.muted { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 19px; }
.field label { font-size: 12px; font-weight: 700; color: var(--navy); }

.field input, .field select {
    width: 100%;
    min-height: 49px;
    padding: 12px;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-size: 14px;
}

.field input:focus, .field select:focus {
    outline: 2px solid #1769e055;
    border-color: var(--blue);
}

.search-button {
    width: 100%;
    padding: 17px;
    border: 0;
    border-radius: 7px;
    background: var(--blue);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.search-button:hover { background: #1054b7; }

.features {
    max-width: 1100px;
    margin: 215px auto 80px;
    padding: 0 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.features span { color: var(--blue); font-weight: 800; font-size: 12px; }
.features h3 { color: var(--navy); margin-bottom: 8px; }
.features p { color: var(--muted); line-height: 1.6; font-size: 14px; }

footer {
    padding: 40px 7%;
    background: var(--navy);
    color: #b8c5d8;
    text-align: center;
    font-size: 13px;
}

footer .brand { color: white; }
footer p { margin: 10px 0; }

.results-page { max-width: 1050px; margin: 65px auto; padding: 0 24px; }
.results-heading h1 { color: var(--navy); font-size: 38px; }
.results-heading h1 span { color: var(--blue); }
.results-heading p { color: var(--muted); }

.demo-notice {
    background: #fff6df;
    border: 1px solid #f0d99b;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #72541b;
    font-size: 13px;
}

.results-page h2 { color: var(--navy); font-size: 20px; }

.flight-card {
    display: grid;
    grid-template-columns: 1.1fr 2fr .7fr;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 25px;
    margin: 15px 0;
    border: 1px solid #e7ecf3;
    border-radius: 10px;
}

.airline { display: flex; align-items: center; gap: 12px; }
.airline-icon { color: var(--blue); font-size: 25px; }
.airline strong, .airline small, .flight-price strong, .flight-price small {
    display: block;
}
.airline small, .flight-price small { color: var(--muted); font-size: 11px; margin-top: 6px; }

.flight-times {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.flight-times strong { display: block; color: var(--navy); font-size: 20px; }
.flight-times span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }

.duration { text-align: center; flex: 1; }
.duration span { font-size: 11px; }
.duration small { color: var(--muted); font-size: 11px; }
.flight-line { height: 2px; background: #cbd7e7; margin: 8px 0; }

.flight-price { text-align: right; }
.flight-price strong { color: var(--blue); font-size: 24px; }

.results-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 25px 0; }
.back-link { color: var(--blue); font-weight: 700; font-size: 14px; }

.error-box { background: #fff0f0; color: #a32626; padding: 12px 18px; margin-bottom: 20px; border-radius: 7px; font-size: 13px; }
.error-box p { margin: 5px 0; }

@media (max-width: 760px) {
    .navbar { padding: 0 5%; height: 65px; }
    .navbar nav { gap: 14px; }
    .navbar nav a { font-size: 12px; }
    .hero { padding: 50px 5% 70px; }
    .hero h1 { letter-spacing: -2px; }
    .search-panel { padding: 22px 17px; margin-top: 35px; }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .features { grid-template-columns: 1fr; margin-top: 195px; gap: 15px; }
    .flight-card { grid-template-columns: 1fr; gap: 22px; }
    .flight-price { text-align: left; }
    .results-page { margin-top: 40px; }
    .results-heading h1 { font-size: 29px; }
}

@media (max-width: 420px) {
    .navbar nav { gap: 9px; }
    .navbar nav a { font-size: 11px; }
    .form-grid { grid-template-columns: 1fr; }
}
