*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: radial-gradient(1100px 560px at 15% 0%, rgba(10, 74, 122, 0.16), transparent 56%),
          radial-gradient(900px 520px at 90% 10%, rgba(24, 166, 115, 0.12), transparent 52%),
          radial-gradient(900px 520px at 50% 100%, rgba(241, 196, 15, 0.08), transparent 55%),
          #f6fbff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #0a4a7a;
    --accent-hover: #083a60;
    --accent-2: #18a673;
    --accent-gold: #f1c40f;
    --card-bg: #ffffff;
    --card-border: #e6eaf0;
    --shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 14px 30px rgba(17, 24, 39, 0.10);
    --radius: 10px;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

*:focus-visible {
    outline: 2px solid rgba(241, 196, 15, 0.48);
    outline-offset: 2px;
}

.req {
    color: #b91c1c;
    font-weight: 800;
}

.is-hidden {
    display: none;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(10, 74, 122, 0.75);
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(10, 74, 122, 0.18);
}

.btn:hover,
.btn:focus-visible {
    background: linear-gradient(90deg, var(--accent-hover), #139764);
    border-color: rgba(10, 74, 122, 0.85);
    text-decoration: none;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px;
}

.site-header,
.site-footer {
    border-color: var(--border);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.03);
}

.header-inner.container {
    padding-top: 12px;
    padding-bottom: 12px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-brand {
    min-width: 0;
    flex: 1 1 auto;
}

.site-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.nav-details {
    position: relative;
    flex: 0 0 auto;
}

.nav-summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1;
}

.nav-summary::-webkit-details-marker {
    display: none;
}

.nav-details > .site-nav {
    display: none;
}

.nav-details[open] > .site-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.10);
}

.nav-details[open] > .site-nav a {
    width: 100%;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.site-nav a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: #f3f4f6;
    text-decoration: none;
}

.site-main .page-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
}

.site-main {
    padding-bottom: 28px;
    overflow-wrap: anywhere;
}

.site-main section,
.section-block {
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    margin: 0 0 16px;
}

.site-main h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
}

.site-main p {
    margin: 0 0 10px;
}

.site-main ul,
.site-main ol {
    margin: 0;
    padding-left: 18px;
}

.site-main li {
    margin: 6px 0;
}

.site-main form {
    margin: 0;
}

.site-main label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.site-main input[type='text'],
.site-main input[type='email'],
.site-main input[type='password'],
.site-main input[type='date'],
.site-main select,
.site-main textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
}

.dob-select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dob-select-group select {
    width: auto;
    flex: 1 1 110px;
    font-size: 16px;
}

.dob-select-group .dob-year {
    flex-basis: 140px;
}

.site-main input[type='text']:focus,
.site-main input[type='email']:focus,
.site-main input[type='password']:focus,
.site-main input[type='date']:focus,
.site-main select:focus,
.site-main textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
}

.site-main input.is-invalid,
.site-main select.is-invalid,
.site-main textarea.is-invalid {
    border-color: #dc2626;
    background: #fff7f7;
}

.site-main .form-errors {
    border-color: rgba(220, 38, 38, 0.35);
    background: #fef2f2;
}

.site-main input[type='checkbox'] {
    width: auto;
}

.site-main form div {
    margin-bottom: 12px;
}

.site-main button,
.site-main input[type='submit'],
.site-main input[type='button'] {
    appearance: none;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
}

.site-main button + button {
    margin-left: 8px;
}

.site-main button:hover,
.site-main button:focus-visible,
.site-main input[type='submit']:hover,
.site-main input[type='submit']:focus-visible {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.site-main button:disabled,
.site-main input[type='submit']:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.9;
}

.site-main button[type='reset'] {
    background: #ffffff;
    color: var(--text);
    border-color: var(--border);
}

.site-main button[type='reset']:hover,
.site-main button[type='reset']:focus-visible {
    background: #f3f4f6;
}

.passenger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.passenger-header h3 {
    margin: 0;
}

.passenger-actions button {
    padding: 9px 12px;
}

.passenger-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.passenger-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.passenger-price {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f9fafb;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.passenger-remove {
    border-color: #b91c1c;
    background: #ffffff;
    color: #7f1d1d;
}

.passenger-remove:hover,
.passenger-remove:focus-visible {
    background: #fef2f2;
    border-color: #991b1b;
}

.passenger-totals {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-main table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.site-main th,
.site-main td {
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.site-main th {
    background: #f9fafb;
    font-weight: 700;
}

.site-main tbody tr + tr td {
    border-top: 1px solid var(--border);
}

.site-main tbody td + td,
.site-main thead th + th {
    border-left: 1px solid var(--border);
}

.site-main tbody tr:hover td {
    background: #f9fafb;
}

@media (max-width: 720px) {
    .site-main table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-main th,
    .site-main td {
        padding: 8px 10px;
    }
}

.hero {
    border: 1px solid rgba(99, 102, 241, 0.22);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(37, 99, 235, 0.06));
    box-shadow: var(--shadow-lg);
}

.hero-kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero-title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-lead {
    margin: 0 0 12px;
    color: rgba(17, 24, 39, 0.86);
    max-width: 68ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.card-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
}

.card p:last-child,
.card ul:last-child,
.card ol:last-child {
    margin-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: #ffffff;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
}

@media (min-width: 768px) {
    .container {
        padding: 20px;
    }

    .nav-details {
        position: static;
    }

    .nav-summary {
        display: none;
    }

    .nav-details > .site-nav {
        display: flex;
    }

    .nav-details[open] > .site-nav {
        position: static;
        flex-direction: row;
        gap: 10px;
        min-width: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-title {
        font-size: 18px;
        white-space: nowrap;
    }

    .site-main .page-title {
        font-size: 24px;
    }

    .hero-title {
        font-size: 26px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .passenger-row {
        grid-template-columns: 2fr 1.2fr 0.9fr auto;
        align-items: end;
    }

    .passenger-col-remove button {
        white-space: nowrap;
    }

    .passenger-totals {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}
