/* Booking page */
.book { padding: 112px 0 80px; min-height: 100vh; background: radial-gradient(900px 400px at 80% 0%, rgba(31,184,255,.12), transparent 70%), var(--navy-950); }
.book__intro { max-width: 640px; margin-bottom: 32px; }
.book__intro h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.book__layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .book__layout { grid-template-columns: 1fr 340px; } .book__summary { position: sticky; top: 100px; } }
.book__card { background: linear-gradient(180deg, rgba(17,33,74,.6), rgba(10,21,48,.6)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }

.load-state { display: flex; gap: 12px; align-items: center; color: var(--muted); padding: 40px 0; justify-content: center; }

/* progress */
.progress { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: none; }
.progress li { display: grid; gap: 8px; justify-items: start; }
.progress li::before { content: ''; height: 4px; width: 100%; border-radius: 4px; background: rgba(255,255,255,.08); transition: background .4s var(--ease); grid-row: 1; }
.progress li span { display: none; }
.progress li em { font-style: normal; font-size: 12px; color: var(--dim); font-weight: 600; letter-spacing: .02em; }
.progress li.is-done::before, .progress li.is-current::before { background: var(--blue); }
.progress li.is-current em { color: var(--white); }
.progress li.is-done em { color: var(--muted); }
.progress__label { display: none; margin: -18px 0 22px; font-size: 13px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .progress li em { display: none; } .progress { margin-bottom: 28px; } .progress__label { display: block; } }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 700; color: var(--white); margin-bottom: 22px; padding: 0; }
.step-panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateX(16px); } }
.step-panel > .field__error { display: block; min-height: 0; margin-top: 12px; }
.step-panel > .field__error:empty { display: none; }

/* package choice */
.choice-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: flex; flex-direction: column; height: 100%; padding: 20px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: rgba(3,6,15,.35); transition: all .25s var(--ease); }
.choice:hover .choice__box { border-color: rgba(31,184,255,.5); }
.choice input:checked + .choice__box { border-color: var(--blue); background: rgba(31,184,255,.08); box-shadow: 0 0 0 4px rgba(31,184,255,.12); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--blue); outline-offset: 3px; }
.choice__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.choice__name { font-family: var(--font-head); font-weight: 700; color: var(--white); font-size: 1.05rem; }
.choice__price { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--blue); }
.choice ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14.5px; }
.choice ul li::before { content: '✓'; color: var(--blue); margin-right: 8px; font-weight: 700; }
.choice__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: none; }
.choice input:checked + .choice__box .choice__tick { display: grid; place-items: center; background: var(--blue); border-color: var(--blue); }
.choice input:checked + .choice__box .choice__tick::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #00142a; border-bottom: 2px solid #00142a; transform: rotate(-45deg) translate(1px, -1px); }
.choice__badge { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: #00142a; background: var(--blue); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; }

/* vehicle chips */
.chip-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; min-height: 108px; padding: 16px 10px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: rgba(3,6,15,.35); font-weight: 600; color: var(--text); transition: all .25s var(--ease); font-size: 14.5px; line-height: 1.3; }
.chip span svg { width: 54px; height: 26px; color: var(--muted); transition: color .25s; }
.chip:hover span { border-color: rgba(31,184,255,.5); }
.chip input:checked + span { border-color: var(--blue); background: rgba(31,184,255,.08); color: var(--white); box-shadow: 0 0 0 4px rgba(31,184,255,.12); }
.chip input:checked + span svg { color: var(--blue); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.chip small { font-size: 11.5px; color: var(--warn); font-weight: 500; }

/* calendar */
.dt { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.slots, .cal { min-width: 0; }
@media (min-width: 760px) { .dt { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.cal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: rgba(3,6,15,.3); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head strong { font-family: var(--font-head); color: var(--white); }
.cal__nav { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.cal__nav:disabled { opacity: .25; cursor: not-allowed; }
.cal__nav:not(:disabled):hover { border-color: var(--blue); color: var(--blue); }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal__dow span { text-align: center; font-size: 11.5px; color: var(--dim); font-weight: 600; padding: 4px 0; }
.cal__day { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--dim); font-weight: 600; font-size: 14.5px; cursor: default; position: relative; }
.cal__day.is-open { color: var(--white); background: rgba(31,184,255,.08); border-color: rgba(31,184,255,.22); cursor: pointer; }
.cal__day.is-open:hover { border-color: var(--blue); }
.cal__day.is-open::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--blue); }
.cal__day.is-selected { background: var(--blue); color: #00142a; border-color: var(--blue); }
.cal__day.is-selected::after { background: #00142a; }
.cal__day.is-closed { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.15); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal__day:disabled { cursor: not-allowed; }
.cal__legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--open { background: rgba(31,184,255,.4); }
.lg--none { background: rgba(255,255,255,.08); }
.cal.is-loading .cal__grid { opacity: .4; pointer-events: none; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 12px; }
.slot { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: rgba(3,6,15,.35); color: var(--white); font-weight: 700; cursor: pointer; transition: all .2s var(--ease); font-family: var(--font-head); }
.slot:hover:not(:disabled) { border-color: var(--blue); }
.slot.is-selected { background: var(--blue); border-color: var(--blue); color: #00142a; }
.slot:disabled { color: var(--dim); text-decoration: line-through; opacity: .5; cursor: not-allowed; background: transparent; }
.slots__empty { color: var(--muted); font-size: 15px; padding: 16px; border-radius: 12px; border: 1px dashed var(--line-strong); margin-top: 12px; }

/* details form */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* review */
.review-list { margin: 0 0 22px; display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review-list > div { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: start; }
.review-list > div:last-child { border-bottom: 0; }
.review-list dt { color: var(--dim); font-size: 14px; }
.review-list dd { margin: 0; color: var(--white); font-weight: 500; word-break: break-word; white-space: pre-line; }
.review-list .edit { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: 14px; padding: 0; }
@media (max-width: 520px) { .review-list > div { grid-template-columns: 1fr auto; } .review-list dt { grid-column: 1; } .review-list dd { grid-column: 1 / -1; grid-row: 2; } .review-list .edit { grid-column: 2; grid-row: 1; } }

.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-actions #btn-back { margin-right: auto; }
@media (max-width: 520px) { .step-actions { flex-wrap: wrap; } .step-actions .btn { flex: 1; } #btn-submit { order: -1; flex-basis: 100%; } #btn-back { margin-right: 0; } }

/* summary */
.book__summary { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.book__summary h2 { font-size: 1.1rem; margin-bottom: 16px; }
.book__summary dl { margin: 0; display: grid; gap: 12px; }
.book__summary dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.book__summary dt { color: var(--dim); }
.book__summary dd { margin: 0; text-align: right; color: var(--white); font-weight: 500; }
.book__summary dd.empty { color: var(--dim); font-weight: 400; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sum-total strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); }
.sum-note { font-size: 13px; color: var(--dim); margin: 10px 0 0; }
@media (max-width: 999px) { .book__summary { display: none; } }

/* confirmation */
.confirm { outline: none; }
.confirm__card { max-width: 680px; margin: 0 auto; text-align: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); border: 1px solid rgba(31,184,255,.3); background: radial-gradient(500px 240px at 50% 0%, rgba(31,184,255,.18), transparent 70%), linear-gradient(180deg, rgba(17,33,74,.7), rgba(8,16,38,.9)); animation: panelIn .6s var(--ease); }
.confirm__card .gg-logo { justify-content: center; margin-bottom: 22px; }
.confirm__card .gg-logo__emblem { width: 200px; }
.confirm__status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.35); color: var(--warn); font-family: var(--font-display); font-size: 10px; letter-spacing: .2em; margin-bottom: 18px; }
.confirm__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.confirm h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.confirm__ref { display: inline-block; margin: 6px 0 24px; padding: 10px 18px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--muted); }
.confirm__ref strong { color: var(--white); font-family: var(--font-display); letter-spacing: .1em; margin-left: 8px; }
.confirm .review-list { text-align: left; }
.confirm .review-list > div { grid-template-columns: 120px 1fr; }
.confirm__next { text-align: left; padding: 20px 22px; border-radius: var(--radius); background: rgba(3,6,15,.35); border: 1px solid var(--line); margin-bottom: 26px; }
.confirm__next h3 { font-size: 1rem; }
.confirm__next ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.confirm__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 420px) {
  .cal { padding: 10px; }
  .book__card { padding: 18px 14px; }
  .book .nav .btn { padding: 8px 12px; }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slot { font-size: 14px; }
}
