@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap");

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

:root {
    --bg: #fbf8f0;
    --bg-soft: #f6f2e6;
    --card: #ffffff;
    --forest: #1a3a2a;
    --forest-mid: #2d5a40;
    --forest-light: #3d7a56;
    --sage: #7ab896;
    --sage-soft: #9cc9ae;
    --mint: #d7ebdf;
    --cream: #f5f0e8;
    --text: #1a2820;
    --text-soft: #374c43;
    --muted: #7b8a82;
    --border: #e4ece6;
    --border-soft: #eef2ed;
    --amber: #d4a017;
    --amber-light: #fff8e8;
    --amber-border: #e8d08a;
    --amber-text: #7a5c00;
    --orange: #f57c00;
    --orange-soft: #ffe8cc;
    --blue: #1976d2;
    --blue-soft: #d6e7f7;
    --danger: #c23a3a;
}

html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ── PAGES ── */
.page { display: none; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; }
.page.active { display: block; opacity: 1; transform: translateY(0); }
.page.exit { opacity: 0; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }

/* ── HERO ── */
.hero {
    background: linear-gradient(180deg, #1e4231 0%, var(--forest) 100%);
    padding: 70px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 120%, rgba(122, 184, 150, 0.35), transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--sage); margin-bottom: 16px; opacity: 0;
    animation: fadeUp .6s ease forwards .1s;
}
.hero h1 {
    font-family: "Playfair Display", serif; font-weight: 400;
    font-size: clamp(32px, 6vw, 56px); color: var(--cream);
    line-height: 1.15; margin-bottom: 16px;
    opacity: 0; animation: fadeUp .6s ease forwards .25s;
}
.hero h1 em { color: var(--sage); font-style: italic; }
.hero-desc {
    font-size: 15px; color: var(--mint); max-width: 500px; margin: 0 auto;
    opacity: 0; animation: fadeUp .6s ease forwards .4s; line-height: 1.6;
}
.hero-lm-note {
    display: inline-block; margin-top: 18px; padding: 8px 16px;
    background: rgba(255, 225, 170, 0.14); border: 1px solid rgba(255, 225, 170, 0.4);
    border-radius: 100px; font-size: 12.5px; color: #ffe7a8; letter-spacing: 0.3px;
    opacity: 0; animation: fadeUp .6s ease forwards .55s;
}

/* ── LAYOUT ── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 48px 24px 80px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 48px 24px 80px; }

.page-title {
    font-family: "Playfair Display", serif;
    font-size: 26px; font-weight: 500;
    color: var(--forest); margin-bottom: 6px;
}
.page-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* ── STEPS ── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 36px; max-width: 640px; }
.step { display: flex; align-items: center; gap: 8px; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; color: var(--muted);
    transition: all .3s; flex-shrink: 0; background: var(--card);
}
.step-num.active { background: var(--forest); border-color: var(--forest); color: #fff; }
.step-num.done { background: var(--sage); border-color: var(--sage); color: var(--forest); }
.step-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.step-label.active { color: var(--forest); font-weight: 500; }
.step-connector { flex: 1; height: 1.5px; background: var(--border); margin: 0 8px; min-width: 20px; }
.step-connector.done { background: var(--sage); }

/* ── INFO BLOCKS ── */
.panel {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 22px 24px; margin-bottom: 24px;
}
.panel h3 {
    font-size: 15px; color: var(--forest); font-weight: 600;
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.panel p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

.panel-lm {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
    border: 1px solid #ffb877;
}
.panel-lm h3 { color: #b25500; }
.panel-lm p { color: #7a4500; }
.panel-lm .badge-lm {
    display: inline-block; background: #f57c00; color: #fff;
    padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    margin-right: 6px;
}

.panel-tura {
    background: var(--amber-light); border: 1px solid var(--amber-border);
}
.panel-tura h3 { color: var(--amber-text); }
.panel-tura p { color: var(--amber-text); }
.tura-cards { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.tura-card {
    flex: 1; min-width: 240px; background: rgba(255,255,255,.65);
    border-radius: 10px; padding: 16px; border: 1px dashed var(--amber-border);
}
.tura-card-title { font-weight: 600; font-size: 14px; color: var(--forest); margin-bottom: 4px; }
.tura-card-hint { font-size: 11px; color: var(--amber-text); margin-bottom: 10px; }
.tura-card ul { list-style: none; font-size: 13px; color: var(--text-soft); line-height: 1.7; padding: 0; }
.tura-card li::before { content: "· "; color: var(--sage); }

/* ── DATE NAV ── */
.date-nav {
    display: flex; gap: 8px; overflow-x: auto;
    padding-bottom: 4px; margin-bottom: 24px;
    scrollbar-width: none;
}
.date-nav::-webkit-scrollbar { display: none; }
.date-tab {
    flex-shrink: 0; background: var(--card); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 11px 16px; cursor: pointer;
    transition: all .2s; text-align: center; min-width: 82px; position: relative;
}
.date-tab:hover { border-color: var(--sage); background: #f3faf5; }
.date-tab.active { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.date-tab .dt-day { font-size: 21px; font-weight: 600; color: var(--forest); line-height: 1; }
.date-tab .dt-month, .date-tab .dt-dow { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.date-tab .dt-month { margin-top: 3px; text-transform: uppercase; }
.date-tab .dt-dow { font-size: 10px; margin-top: 1px; }
.date-tab.active .dt-day { color: var(--cream); }
.date-tab.active .dt-month, .date-tab.active .dt-dow { color: var(--mint); }
.date-tab.has-lm::after {
    content: ""; position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
    box-shadow: 0 0 0 2px var(--card);
}
.date-tab.active.has-lm::after { box-shadow: 0 0 0 2px var(--forest); }

/* ── COURSES GRID ── */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.course-card {
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: 16px; overflow: hidden; position: relative;
    cursor: pointer; transition: border-color .2s, box-shadow .2s, opacity .3s;
}
.course-card:hover:not(.unavailable):not(.selected) {
    border-color: var(--sage); box-shadow: 0 4px 20px rgba(26, 58, 42, 0.07);
}
.course-card.selected {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(26, 58, 42, 0.1);
    opacity: 1 !important;
}
.course-card.unavailable { opacity: .45; cursor: not-allowed; }
.course-card.dimmed { opacity: .4; }
.course-card.tura-1 { background: #fff6eb; border-color: #ffc98a; }
.course-card.tura-2 { background: #eaf3fc; border-color: #8fc0ea; }
.course-card.is-lm { background: linear-gradient(180deg, #fff6e9 0%, var(--card) 80%); border-color: var(--orange); }
.course-card.is-lm.selected { border-color: var(--forest); }

.card-top {
    padding: 12px 16px; display: flex; align-items: flex-start;
    justify-content: space-between; gap: 10px;
    border-bottom: 1px solid var(--border-soft); background: var(--bg-soft);
}
.course-card.tura-1 .card-top { background: rgba(255,183,77,0.15); }
.course-card.tura-2 .card-top { background: rgba(144,202,249,0.18); }
.course-card.is-lm .card-top { background: rgba(245,124,0,0.1); }

.card-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-line-badge {
    font-size: 11px; font-weight: 600; background: var(--forest);
    color: var(--cream); padding: 3px 9px; border-radius: 100px; letter-spacing: 0.5px;
}
.card-direction { font-size: 13px; font-weight: 600; color: var(--forest); }

.badge {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.badge-lm { background: var(--orange); color: #fff; }
.badge-tura-1 { background: var(--orange); color: #fff; }
.badge-tura-2 { background: var(--blue); color: #fff; }

.seats-tag {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
    white-space: nowrap; flex-shrink: 0;
}
.seats-tag.good { background: #eaf6ef; color: var(--forest-mid); border: 1px solid var(--mint); }
.seats-tag.few { background: #fff3e0; color: #8a4500; border: 1px solid #f0c080; }
.seats-tag.full { background: #fef0f0; color: #a33; border: 1px solid #f0c0c0; }
.seats-tag.closed { background: var(--bg-soft); color: var(--muted); border: 1px solid var(--border); }

/* ── TIMELINE ── */
.timeline { padding: 16px 20px 12px; }
.tl-stop { display: flex; align-items: stretch; gap: 12px; position: relative; }
.tl-dot-col { display: flex; flex-direction: column; align-items: center; width: 16px; flex-shrink: 0; margin-top: 4px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--forest); background: var(--card); flex-shrink: 0; }
.tl-dot.start { background: var(--forest); }
.tl-dot.end { background: var(--sage); border-color: var(--sage); }
.tl-seg { width: 2px; background: var(--border); flex: 1; min-height: 26px; margin-bottom: -4px; }
.tl-content { flex: 1; padding-bottom: 18px; }
.tl-stop:last-child .tl-content { padding-bottom: 0; }
.tl-time { font-size: 15px; font-weight: 500; color: var(--forest); font-family: "Playfair Display", serif; line-height: 1.1; }
.tl-name { font-size: 12.5px; color: var(--text-soft); margin-top: 2px; line-height: 1.3; }

.card-footer {
    padding: 12px 20px; border-top: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.seats-bar-wrap { flex: 1; max-width: 170px; }
.seats-bar-label { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.seats-bar { height: 5px; background: var(--bg-soft); border-radius: 3px; overflow: hidden; }
.seats-fill { height: 100%; border-radius: 3px; transition: width .6s ease; }
.seats-fill.good { background: var(--forest-light); }
.seats-fill.few { background: var(--amber); }
.seats-fill.full { background: #e05050; }
.seats-count { font-size: 12px; color: var(--muted); margin-top: 4px; }

.sel-btn {
    background: var(--forest); color: #fff; border: none;
    border-radius: 9px; padding: 9px 18px; font-size: 13px; font-weight: 500;
    font-family: inherit; cursor: pointer; flex-shrink: 0;
    transition: background .2s, transform .15s;
}
.sel-btn:hover { background: var(--forest-mid); }
.sel-btn:active { transform: scale(.96); }
.course-card.selected .sel-btn { background: var(--sage); color: var(--forest); }
.sel-btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* ── SELECTION BAR ── */
.selection-bar {
    position: sticky; top: 20px; z-index: 90;
    box-shadow: 0 12px 36px rgba(26, 58, 42, 0.25);
    background: var(--forest); color: var(--cream);
    border-radius: 16px; padding: 0 24px;
    max-height: 0; margin-bottom: 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    opacity: 0; visibility: hidden; transform: translateY(-16px);
    transition: all .35s cubic-bezier(.16, 1, .3, 1);
    pointer-events: none; overflow: hidden;
}
.selection-bar.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
    max-height: 300px; padding: 18px 24px; margin-bottom: 28px;
    pointer-events: auto; overflow: visible;
}
.sel-bar-label {
    font-size: 11px; color: var(--mint); letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 10px; font-weight: 600;
}
.sel-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.sel-chip {
    background: rgba(122, 184, 150, 0.2); border: 1px solid rgba(122, 184, 150, 0.35);
    border-radius: 8px; padding: 6px 12px; font-size: 13px; color: var(--cream);
    display: flex; align-items: center; gap: 8px;
}
.sel-chip-rm { background: none; border: none; color: var(--sage); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.sel-chip-rm:hover { color: #fff; }
.sel-info { font-size: 12px; color: var(--mint); margin-top: 4px; }
.reserve-btn {
    background: var(--sage); color: var(--forest); border: none;
    border-radius: 10px; padding: 12px 24px; font-size: 14px; font-weight: 600;
    font-family: inherit; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: background .2s;
}
.reserve-btn:hover { background: var(--sage-soft); }

/* ── FORM PAGE ── */
.form-card, .confirm-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 20px; overflow: hidden;
}
.form-trip-summary, .confirm-header {
    background: var(--forest); padding: 22px 28px;
}
.fts-label, .confirm-header-sub {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--sage); margin-bottom: 8px; font-weight: 600;
}
.fts-courses { display: flex; flex-direction: column; gap: 6px; }
.fts-course { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fts-badge {
    background: rgba(122, 184, 150, 0.2); border: 1px solid rgba(122, 184, 150, 0.3);
    border-radius: 6px; padding: 4px 10px; font-size: 12px; color: var(--cream); font-weight: 500;
}
.fts-route { font-size: 13px; color: var(--mint); }
.confirm-header-title {
    font-family: "Playfair Display", serif; font-size: 22px; font-weight: 500;
    color: var(--cream); margin-bottom: 4px;
}

.form-body, .confirm-body { padding: 28px; }
.form-section { margin-bottom: 26px; }
.form-section-title {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--muted); margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
    font-weight: 600;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
.form-group input, .passenger-row input {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 15px; font-family: inherit;
    color: var(--text); background: #fcfcfa; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .passenger-row input:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(122, 184, 150, 0.18);
}
.passengers-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; gap: 10px; }
.passengers-counter, .passengers-note { font-size: 12px; color: var(--muted); }
.passenger-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; animation: fadeUp .25s ease forwards; }
.passenger-row input { flex: 1; }
.remove-btn {
    width: 34px; height: 34px; border: 1.5px solid var(--border);
    border-radius: 8px; background: var(--card); cursor: pointer; color: var(--muted);
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .2s;
}
.remove-btn:hover { border-color: var(--danger); color: var(--danger); background: #fff5f5; }

.add-passenger {
    display: flex; align-items: center; gap: 8px; background: transparent;
    border: 1.5px dashed var(--border); border-radius: 10px;
    padding: 10px 14px; font-size: 13px; color: var(--muted); cursor: pointer;
    width: 100%; font-family: inherit; transition: all .2s; margin-top: 4px;
}
.add-passenger:hover { border-color: var(--sage); color: var(--forest); background: #f3faf5; }
.add-passenger:disabled { opacity: .4; cursor: not-allowed; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.btn-back {
    background: transparent; border: 1.5px solid var(--border); color: var(--muted);
    border-radius: 12px; padding: 14px 24px; font-size: 14px; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all .2s; text-align: center;
}
.btn-back:hover { border-color: var(--forest); color: var(--forest); }
.btn-next, .btn-confirm {
    flex: 1; background: var(--forest); color: #fff; border: none;
    border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 500;
    font-family: inherit; cursor: pointer; transition: all .2s;
    letter-spacing: 0.3px; text-align: center; position: relative; overflow: hidden;
}
.btn-next:hover, .btn-confirm:hover { background: var(--forest-mid); }
.btn-next:active, .btn-confirm:active { transform: scale(.99); }
.btn-confirm.loading::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    animation: shimmer 1.2s infinite;
}

/* ── CONFIRM PAGE ── */
.summary-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 14px;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-label { color: var(--muted); font-size: 13px; }
.summary-value { font-weight: 500; color: var(--text); text-align: right; max-width: 60%; }

.notice {
    border-radius: 12px; padding: 14px 18px; margin: 16px 0;
    font-size: 13.5px; line-height: 1.6;
}
.notice-warn {
    background: var(--amber-light); border: 1px solid var(--amber-border);
    color: var(--amber-text);
}
.notice-ok {
    background: #eef9f2; border: 1px solid var(--mint); color: var(--forest-mid);
}
.notice-info {
    background: #f0f6ff; border: 1px solid #c9d8f0; color: #2a4770;
}
.notice-title { font-weight: 600; margin-bottom: 4px; display: flex; gap: 7px; align-items: center; }

.privacy-consent {
    font-size: 12.5px; color: var(--muted); text-align: center;
    margin: 16px 0 16px; line-height: 1.55;
}
.privacy-consent a { color: var(--forest-mid); text-decoration: underline; }

/* ── REGULAMIN ── */
.reg-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px; margin-bottom: 18px;
}
.reg-card h2 {
    color: var(--forest); font-size: 20px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px; font-weight: 500;
    font-family: "Playfair Display", serif;
}
.reg-card h3 { color: var(--forest-light); font-size: 16px; margin: 18px 0 8px; }
.reg-card p { margin-bottom: 14px; font-size: 14px; color: var(--text-soft); }
.reg-list { list-style: none; margin-bottom: 14px; padding: 0; }
.reg-list li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 14px; color: var(--text-soft); }
.reg-list li::before { content: "—"; position: absolute; left: 0; color: var(--sage); font-weight: bold; }
.reg-highlight {
    background: var(--amber-light); border-left: 4px solid var(--amber);
    padding: 14px 16px; margin: 14px 0; border-radius: 0 8px 8px 0;
}
.reg-pdf-link {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--forest); color: #fff; text-decoration: none;
    padding: 13px 22px; border-radius: 10px; font-weight: 500;
    transition: background .2s; margin-top: 14px;
}
.reg-pdf-link:hover { background: var(--forest-mid); }

/* ── SUCCESS ── */
.success-wrap { text-align: center; padding: 64px 24px; max-width: 540px; margin: 0 auto; }
.success-icon {
    width: 72px; height: 72px; background: var(--forest); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; font-size: 30px;
    animation: popIn .5s cubic-bezier(.175, .885, .32, 1.275) forwards;
}
.success-title {
    font-family: "Playfair Display", serif; font-size: 30px;
    color: var(--forest); margin-bottom: 12px; font-weight: 500;
}
.success-desc { font-size: 15px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.success-reservation-id {
    display: inline-block; background: var(--bg-soft); border: 1px solid var(--border);
    padding: 10px 18px; border-radius: 10px; margin-bottom: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px; color: var(--forest-mid); word-break: break-all;
}
.success-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.success-links a {
    color: var(--forest-mid); font-size: 13px; text-decoration: underline;
}

/* ── MODAL ── */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(26, 58, 42, 0.55); z-index: 9999;
    align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s; padding: 16px;
}
.modal-card {
    background: var(--card); padding: 30px 28px; border-radius: 18px;
    width: 100%; max-width: 420px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    transform: translateY(20px); transition: transform .3s;
}
.modal.visible { display: flex; opacity: 1; }
.modal.visible .modal-card { transform: translateY(0); }
.modal-icon { font-size: 38px; margin-bottom: 14px; }
.modal h3 { font-family: "Playfair Display", serif; font-size: 22px; color: var(--forest); margin-bottom: 12px; font-weight: 500; }
.modal p { font-size: 15px; color: var(--muted); margin-bottom: 22px; line-height: 1.5; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions button {
    padding: 13px; border-radius: 10px; font-weight: 500; font-size: 15px;
    cursor: pointer; font-family: inherit; border: none; transition: .2s;
}
.modal-btn-primary { background: var(--forest); color: #fff; }
.modal-btn-primary:hover { background: var(--forest-mid); }
.modal-btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--border); }
.modal-btn-ghost:hover { border-color: var(--forest); }

/* ── UTILITY ── */
.loading { text-align: center; padding: 64px 0; }
.spinner {
    width: 34px; height: 34px; border: 2.5px solid var(--border);
    border-top-color: var(--forest); border-radius: 50%;
    animation: spin .8s linear infinite; margin: 0 auto 12px;
}
.loading p { font-size: 14px; color: var(--muted); }
.empty { text-align: center; padding: 52px 0; color: var(--muted); font-size: 15px; }
.empty-icon { font-size: 38px; margin-bottom: 10px; opacity: .4; }

.last-updated {
    text-align: center; margin-top: 20px;
    font-size: 11px; color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes popIn { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
    .courses-grid { grid-template-columns: 1fr; }
    .steps { max-width: 100%; margin-bottom: 22px; }
    .step-label { white-space: normal; font-size: 11px; line-height: 1.2; }
    .form-row { grid-template-columns: 1fr; }
    .wrap, .wrap-narrow { padding: 32px 16px 72px; }
    .hero { padding: 48px 16px 60px; }
    .form-body, .confirm-body { padding: 22px 18px; }
    .form-trip-summary, .confirm-header { padding: 18px 20px; }
    .fts-course { flex-direction: column; align-items: flex-start; gap: 4px; }
    .passengers-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .form-actions { flex-direction: column-reverse; gap: 10px; }
    .btn-back, .btn-next, .btn-confirm { width: 100%; }
    .selection-bar { top: 12px; padding: 0 16px; border-radius: 12px; gap: 12px; }
    .selection-bar.visible { padding: 16px; }
    .confirm-card, .form-card { border-radius: 16px; }
    .reg-card { padding: 22px 18px; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--mint); border-radius: 3px; }
