/* Lidya Travel — public booking pages */
:root {
    --navy: #1b2653;
    --navy-dark: #141c3f;
    --ink: #2b2f36;
    --muted: #6b7280;
    --line: #d9dce3;
    --bg: #ffffff;
    --accent: #2456c9;
    --danger: #c0392b;
    --ok: #1f9d55;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--accent); }

/* ------------------------------------------------ two-column booking page */
.booking-wrap { display: flex; min-height: 100vh; }
.booking-main {
    flex: 1 1 62%;
    max-width: 860px;
    margin-left: auto;
    padding: 40px 56px 80px;
}
.booking-side {
    flex: 1 1 38%;
    background: linear-gradient(160deg, #212f63 0%, var(--navy) 45%, #131b3d 100%);
    color: #fff;
    padding: 48px 56px;
}
.side-sticky { position: sticky; top: 40px; max-width: 380px; }
.booking-side h2 { margin: 0 0 6px; font-size: 20px; }
.side-form-title { color: #aeb8d8; font-size: 14px; margin-bottom: 20px; }
.side-info { border-top: 1px solid rgba(255,255,255,.18); margin-top: 26px; padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.side-info-row { display: flex; gap: 12px; font-size: 13px; color: #c9d2ec; line-height: 1.45; }
.side-info-row strong { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.side-info-ico { font-size: 17px; line-height: 1.2; }

/* -------------------------------------------------------------- field grid */
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.fields-grid > .col-full { grid-column: 1 / -1; }
.fields-grid > .col-half { grid-column: auto; }
@media (max-width: 640px) { .fields-grid { grid-template-columns: 1fr; } }
.form-richtext { margin: 14px 0; line-height: 1.65; color: #3a3f47; }
.form-richtext a { font-weight: 600; }
.form-image { margin: 16px 0; }
.form-image img { width: 100%; border-radius: 10px; display: block; }

.brand img { height: 34px; }
.booking-main h1 { font-size: 27px; margin: 22px 0 4px; color: var(--navy); letter-spacing: -0.01em; }
.org { color: var(--muted); margin: 0 0 10px; }
.desc { margin: 14px 0 6px; color: #444; }
.form-cover { border-radius: 12px; margin-top: 22px; max-height: 260px; object-fit: cover; width: 100%; box-shadow: 0 6px 24px rgba(20,28,63,.12); }

/* ---------------------------------------------------------------- stepper */
.stepper {
    display: flex; gap: 0; list-style: none; margin: 26px 0 6px; padding: 0;
    counter-reset: none; font-size: 13px; font-weight: 600; color: var(--muted);
}
.stepper li { display: flex; align-items: center; gap: 8px; }
.stepper li span {
    width: 24px; height: 24px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center;
    border: 2px solid var(--line); background: #fff; font-size: 12px; color: var(--muted);
}
.stepper li + li::before {
    content: ""; width: 42px; height: 2px; background: var(--line); margin: 0 12px;
}
.stepper li.active { color: var(--navy); }
.stepper li.active span { border-color: var(--navy); background: var(--navy); color: #fff; }
.stepper li.done { color: var(--ok); }
.stepper li.done span { border-color: var(--ok); background: var(--ok); color: #fff; }
.stepper li.done + li::before, .stepper li.active + li::before { background: var(--line); }
.stepper-center { justify-content: center; }
@media (max-width: 640px) { .stepper li + li::before { width: 18px; margin: 0 8px; } }

/* ----------------------------------------------------------------- fields */
.field { margin: 18px 0; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: #374151; }
.req { color: var(--danger); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="date"], .field input[type="time"],
.field select, .field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27, 38, 83, .12);
}
.field .help { color: var(--muted); font-size: 12.5px; margin: 5px 0 0; }
.field .error { color: var(--danger); font-size: 13px; margin: 5px 0 0; font-weight: 600; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
/* Choice options rendered as selectable tiles */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.choice {
    display: flex; gap: 10px; align-items: flex-start;
    font-weight: 400 !important; cursor: pointer;
    border: 1.5px solid var(--line); border-radius: 9px;
    padding: 11px 13px; transition: border-color .12s, background .12s;
}
.choice:hover { border-color: #aab3cd; }
.choice:has(input:checked) { border-color: var(--navy); background: #f2f5fc; box-shadow: 0 0 0 1px var(--navy) inset; }
.choice input { margin-top: 3px; accent-color: var(--navy); }
.choice em { color: var(--navy); font-style: normal; font-weight: 700; white-space: nowrap; }
.choice.single { border: none; padding: 0; }
.choice.single:has(input:checked) { background: none; box-shadow: none; }
.form-heading { margin-top: 14px; }
.form-heading h3 { margin: 16px 0 2px; font-size: 16px; color: var(--navy); border-bottom: 2px solid #eef0f5; padding-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.form-note { background: #f4f6fb; border-left: 3px solid var(--navy); padding: 12px 14px; border-radius: 6px; margin: 16px 0; font-size: 14px; }
.muted { color: var(--muted); }

.calc-box {
    background: #f4f6fb; border: 1px dashed #c4cbe0; border-radius: 7px;
    padding: 11px 12px; font-weight: 700; color: var(--navy); font-size: 15px;
    font-variant-numeric: tabular-nums;
}
.calc-suffix { font-weight: 500; color: var(--muted); font-size: 13px; }

.guest-section { border: 1px solid var(--line); border-radius: 10px; padding: 6px 20px 16px; margin: 22px 0; }
.guest-section legend { font-weight: 700; color: var(--navy); padding: 0 8px; }

/* ---------------------------------------------------------------- summary */
.summary .sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14px; color: #dfe4f2; }
.summary .sum-row span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary .sum-sep { border-top: 1px solid rgba(255,255,255,.25); margin-top: 10px; padding-top: 12px; color: #fff; }
.summary .sum-total { border-top: 2px solid rgba(255,255,255,.4); margin-top: 10px; padding-top: 14px; font-size: 18px; font-weight: 700; color: #fff; }
.summary .sum-fx { color: #aeb8d8; font-size: 12.5px; }
.summary-inline { display: none; }

/* ------------------------------------------------------ currency selector */
.currency-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.currency-pill input { position: absolute; opacity: 0; }
.currency-pill span {
    display: inline-block; border: 1.5px solid var(--line); border-radius: 20px;
    padding: 7px 16px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink);
}
.currency-pill input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.currency-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(27,38,83,.2); }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-block;
    border: 0; cursor: pointer;
    border-radius: 7px;
    font-size: 15px; font-weight: 600;
    padding: 12px 22px;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(27,38,83,.28); transition: transform .12s, box-shadow .12s, background .12s; }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,38,83,.32); }
.btn-primary:active { transform: translateY(0); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-lg { width: 100%; padding: 15px; font-size: 16px; margin-top: 18px; }
.secure-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 10px; }
.back-link { color: var(--muted); font-size: 14px; text-decoration: none; }

.alert { border-radius: 8px; padding: 13px 16px; margin: 18px 0; font-size: 14px; }
.alert-error { background: #fdecea; border: 1px solid #f5c6c1; color: #94261b; }
.alert ul { margin: 8px 0 0 18px; padding: 0; }

.review-box { border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin: 20px 0; }
.review-box h3 { margin: 0 0 12px; color: var(--navy); }
.review-list { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 600; }

.payment-method-box {
    border: 2px solid var(--navy); border-radius: 10px; padding: 16px 18px; margin: 22px 0 14px;
    background: linear-gradient(180deg, #f8faff, #fff);
}
.pm-title { font-weight: 700; color: var(--navy); font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.pm-lock { font-size: 14px; }
.pm-sub { color: var(--muted); font-size: 13px; margin-top: 5px; line-height: 1.5; }
.terms { margin: 14px 0 4px; font-size: 14px; }

/* ------------------------------------------------------------- hero pages */
.hero { max-width: 640px; margin: 0 auto; padding: 12vh 24px 60px; text-align: center; }
.hero-logo { height: 46px; }
.hero h1 { color: var(--navy); font-size: 26px; margin-top: 30px; }
.hero p { color: #555; }
.notice { background: #fff7e6; border: 1px solid #f1dfb2; color: #7a5b13; padding: 14px 18px; border-radius: 8px; }
.check-circle {
    width: 74px; height: 74px; margin: 26px auto 0; border-radius: 50%;
    background: var(--ok); color: #fff; font-size: 40px; line-height: 74px; font-weight: 700;
}
.success-message { background: #f0f7f1; border: 1px solid #cde6d2; border-radius: 8px; padding: 14px 18px; margin: 18px 0; text-align: left; }
.doc-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 340px; margin: 26px auto 0; }
.spinner {
    width: 40px; height: 40px; margin: 30px auto; border-radius: 50%;
    border: 4px solid #e3e6ef; border-top-color: var(--navy);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* -------------------------------------------------------------- test bank */
.testpos-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 34px 38px; box-shadow: 0 10px 40px rgba(20, 28, 63, .12); }
.testpos-badge { display: inline-block; background: #fff3cd; color: #7a5b13; border: 1px solid #f1dfb2; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 5px 11px; border-radius: 20px; }
.testpos-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #f4f5f7; border-top: 1px solid #e5e7ee; padding: 22px 0; margin-top: 0; }
.site-footer .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; color: var(--muted); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legal-links { margin-top: 10px !important; justify-content: flex-start !important; gap: 8px 18px !important; }
.legal-links a { color: var(--muted); text-decoration: none; }
.legal-links a:hover { color: var(--navy); text-decoration: underline; }

/* ----------------------------------------------------------- legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 70px; }
.legal-page .brand img { height: 34px; }
.legal-page h1 { color: var(--navy); margin: 26px 0 14px; }
.legal-content { line-height: 1.75; color: #3a3f47; }
.legal-content strong { color: var(--navy); }

/* --------------------------------------------------------- cookie consent */
.cookie-consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    max-width: 720px; margin: 0 auto;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 12px 40px rgba(20,28,63,.18);
    padding: 14px 18px; display: flex; gap: 16px; align-items: center;
}
.cookie-text { font-size: 13px; color: #444; flex: 1; }
@media (max-width: 640px) { .cookie-consent { flex-direction: column; align-items: stretch; text-align: center; } }

/* --------------------------------------------------------------- responsive */
@media (max-width: 980px) {
    .booking-wrap { flex-direction: column; }
    .booking-main { max-width: none; margin: 0; padding: 26px 22px 30px; }
    .booking-side { padding: 26px 22px; order: 2; }
    .side-sticky { position: static; max-width: none; }
    .summary-inline { display: block; }
}
