/* Customer pages (booking + confirmation). Loaded after style.css; everything is scoped under main.public.
   Layout: the draft design of 19 Nov 2026 (copy sheet v7). One column, one section after another.
   Follows play-insu.co.kr: Pretendard, navy #0c3481, black headings, grey body, photo hero under a navy veil,
   pill buttons. The one thing of our own: the visit ticket that fills in as you choose. */
html:has(main.public) { scroll-behavior: smooth; }
body:has(main.public) { background: #fff; }
main.public { --navy: #0c3481; --ink: #1a1a1a; --grey: #666; --soft: #f8f8f8; --line: #e2e4ea; --tint: #f3f6fc;
  max-width: none; padding: 0; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.6 Pretendard, "Pretendard Variable", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }

/* review copy only (/review): the bar that switches between the two screens */
.public .reviewbar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
  padding: 8px 16px; background: #1a1a1a; color: #fff; font-size: .8125rem; line-height: 1.4; }
.public .reviewbar b { color: #ffd66b; letter-spacing: .06em; }
.public .reviewbar .seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .5); border-radius: 9999px; overflow: hidden; }
.public .reviewbar .seg a { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 12px; color: #fff; font-weight: 600; text-decoration: none; }
.public .reviewbar .seg a[aria-current] { background: #fff; color: #1a1a1a; }

/* top bar: 보험아놀자 logo + IFS wordmark left; language switch + the 토리네 family right. One row, also on a phone. */
.public .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 64px; max-width: 1180px; margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.public .brand { display: flex; align-items: center; gap: 14px; border-radius: 8px; }
.public .brand img { display: block; width: auto; }
.public .brand .l1 { height: 38px; }
.public .brand .l2 { height: 15px; padding-left: 14px; border-left: 1px solid var(--line); box-sizing: content-box; }
.public .bar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.public .fam { display: block; height: 34px; width: auto; }

/* hero: lounge photo under the official navy veil, short white rule, centred white headline */
.public .hero { position: relative; display: grid; place-items: center; min-height: 300px; text-align: center; color: #fff;
  padding: 44px max(24px, env(safe-area-inset-right, 0px)) 44px max(24px, env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(3, 21, 55, .62), rgba(3, 21, 55, .62)), var(--photo) center / cover no-repeat #031537; }
.public .hero-in::before { content: ""; display: block; width: 64px; height: 3px; margin: 0 auto 22px; background: #fff; }
.public .hero h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 7vw, 3rem); font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.public .hero p { margin: 0 auto; max-width: 31em; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.public .hero .go { display: inline-block; margin-top: 22px; padding: 13px 28px; background: #fff; color: var(--navy); border-radius: 9999px; font-weight: 700; text-decoration: none; }

.public .sheet { max-width: 640px; margin: 0 auto; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
.public h2 { margin: 0 0 14px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.public .sheet > .msg { margin-top: 24px; }
.public .msg { border-radius: 14px; margin: 0 0 14px; }

/* reassurance strip: three chips, one row on a PC, stacked on a phone */
.public .chips { display: grid; gap: 8px; padding: 20px 0 4px; margin: 0; list-style: none; }
.public .chips li { padding: 12px 16px 12px 44px; position: relative; border-radius: 14px; background: var(--tint); font-weight: 600; }
.public .chips li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 9px; margin-top: -8px; border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(-45deg); }

/* how a visit works: three numbered steps in one row; on a phone only the three names */
.public .how { padding: 28px 0 6px; }
.public .how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: how; }
.public .how li { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 12px; counter-increment: how; }
.public .how li::before { content: counter(how); flex: none; width: 1.5em; height: 1.5em; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.public .how b { font-weight: 700; font-size: .8125rem; white-space: nowrap; }
.public .how span { display: none; color: var(--grey); }

/* steps: a real sequence, so they are numbered (navy circles, as in the official diagrams) */
.public form { margin: 0; }
.public #book { scroll-margin-top: 16px; }
.public .step { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 28px 0 30px; min-width: 0; }
.public .step:last-of-type { border-bottom: 0; }
/* float: a legend otherwise sits on the fieldset's top edge and ignores its padding */
.public legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 1.3rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.public legend ~ * { clear: both; }
.public .n { flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; background: var(--navy); color: #fff; font-size: .9rem; font-weight: 600; display: grid; place-items: center; }

/* lounge + service: a dropdown, then one small line about the chosen one */
.public .sel { margin: 0; padding: 14px; font-size: 1.05rem; border-radius: 14px; }
.public .sel-info { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint); font-size: .9375rem; color: #333; }
.public .sel-info b { display: block; font-weight: 600; }  /* the address again: a closed dropdown cuts long text on a phone */

/* day strip + time chips; full or closed ones are greyed, not hidden */
.public .days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.public .day, .public .time { flex: none; margin: 0; min-height: 0; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.public .day { min-width: 4rem; padding: 8px 0 10px; font-size: 1.05rem; line-height: 1.3; scroll-snap-align: start; }
.public .day small { display: block; font-size: .8125rem; font-weight: 400; color: var(--grey); }
.public .day.sat small { color: #1f56c9; }
.public .day.sun small { color: #c0362c; }
.public .ampm { margin: 12px 0 6px; font-size: .875rem; color: var(--grey); }
.public .time-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr)); gap: 8px; }
.public .time { padding: 12px 0; font-size: 1.05rem; }
.public .day[aria-pressed=true], .public .time[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: #fff; }
.public .day[aria-pressed=true] small { color: rgba(255, 255, 255, .8); }
.public .day:disabled, .public .time:disabled { background: var(--soft); border-color: #eee; color: #b4b7c0; cursor: not-allowed; }
.public .day:disabled small { color: #b4b7c0; }
.public .time:disabled { text-decoration: line-through; }
.public .hint { margin: 6px 0 0; color: var(--grey); }
.public .rule { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--soft); color: var(--grey); font-size: .9375rem; }

.public label.f { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 14px; }
.public label.f :is(input, select) { padding: 14px; font-size: 1.05rem; border-radius: 14px; }
.public .help { display: block; margin-top: 6px; font-weight: 400; font-size: .875rem; color: var(--grey); }
.public :is(input, select, button, a, summary):focus-visible { outline: 3px solid color-mix(in srgb, var(--navy) 45%, transparent); outline-offset: 2px; }

/* the ticket */
.public .confirm { margin: 0 -20px; padding: 28px 20px 32px; background: var(--soft); }
.public .ticket { color: var(--ink); background: #e9ebf0; border-radius: 20px; margin-bottom: 18px; transition: background-color .25s, color .25s; }
.public .ticket.ready { background: var(--navy); color: #fff; }
.public .ticket-main { padding: 20px 24px 16px; }
.public .ticket-label { margin: 0 0 4px; font-size: .875rem; font-weight: 600; opacity: .8; }
.public .ticket-when { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.public .ticket-where { margin: 2px 0 0; font-weight: 600; }
.public .ticket-addr { margin: 2px 0 0; font-size: .9375rem; opacity: .85; }
.public .ticket-stub { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; padding: 12px 24px 16px; border-top: 2px dashed color-mix(in srgb, currentColor 40%, transparent); font-size: .9375rem; }
.public .ticket-stub::before, .public .ticket-stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); }
.public .ticket-stub::before { left: -10px; }
.public .ticket-stub::after { right: -10px; }
.public .done .ticket-stub::before, .public .done .ticket-stub::after { background: #fff; }
.public .code { opacity: .85; }
.public .code b { letter-spacing: .08em; font-variant-numeric: tabular-nums; }

/* consents: four separate boxes */
.public .consents { margin: 0 0 14px; }
.public .consents-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: .9375rem; }
.public .tag { display: inline-block; padding: 1px 8px; border-radius: 9999px; background: #fff3d6; color: #7a5200; font-size: .75rem; font-weight: 700; }
.public .consent { margin-bottom: 8px; }
.public .check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; font-size: .9375rem; font-weight: 400; cursor: pointer; }
.public .check input { flex: none; width: 1.15rem; height: 1.15rem; margin: 3px 0 0; transform: none; accent-color: var(--navy); }

.public .cta { display: block; width: 100%; margin-top: 6px; padding: 17px; min-height: 2.75rem; font: inherit; font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: #fff; background: var(--navy); border: 0; border-radius: 9999px; cursor: pointer; text-align: center; text-decoration: none; }
.public .cta.off { background: #b9c1d6; }  /* greyed until the four steps and the required consents are done; a tap then says what is missing */
.public .cta.ghost { background: none; color: var(--navy); border: 1.5px solid var(--navy); }
.public .under { margin: 10px 0 0; text-align: center; color: var(--grey); font-size: .875rem; }
.public button.plain { background: none; color: var(--navy); }
.public button.plain.danger { color: var(--danger); }

/* confirmation screen */
.public .done { padding: 30px 0 8px; }
.public .done h2.big { display: flex; align-items: center; gap: 12px; font-size: 1.55rem; line-height: 1.3; margin-bottom: 18px; }
.public .okmark { flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--navy); position: relative; }
.public .okmark::after { content: ""; position: absolute; left: .58rem; top: .58rem; width: .8rem; height: .42rem; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); }
.public .box { border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 20px; margin: 0 0 14px; }
.public :is(.box, .change) h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--navy); }
.public .box p { margin: 0; }
.public .box em { display: block; margin-top: 6px; font-style: normal; color: var(--grey); font-size: .875rem; }
.public .note { margin: 0 0 10px; }
.public mark.ph { background: #fff3d6; color: #7a5200; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.public .btns { display: grid; gap: 10px; margin-top: 18px; }
.public .change { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.public .change h3 { margin-bottom: 12px; }
.public .cancel { display: inline-block; padding: 12px; color: var(--danger); font-weight: 600; }
.public .ask { border-color: var(--danger); }
.public .ask p { margin-bottom: 12px; }
.public .ask .change { margin: 6px 0 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.public .cta.danger { background: var(--danger); margin-bottom: 10px; }

/* FAQ: accordion, all closed */
.public .faq { padding: 40px 0 8px; }
.public .faq details { border-bottom: 1px solid var(--line); }
.public .faq details:first-of-type { border-top: 1px solid var(--line); }
.public .faq summary { position: relative; padding: 16px 36px 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.public .faq summary::-webkit-details-marker { display: none; }
.public .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.public .faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.public .faq details p { margin: 0; padding: 0 0 18px; color: #444; }

/* footer: one short block of small print */
.public .legal { margin-top: 32px; padding: 14px 0 28px; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.55; color: var(--grey); }
.public .legal p { margin: 0; }
.public .legal a { font-weight: 600; }

@media (min-width: 47.5em) {
  .public .bar { min-height: 72px; }
  .public .brand .l1 { height: 44px; }
  .public .brand .l2 { height: 17px; }
  .public .fam { height: 44px; }
  .public .hero { min-height: 420px; }
  .public .how ol { gap: 12px; }
  .public .how li { display: grid; grid-template-columns: auto 1fr; justify-content: stretch; gap: 4px 8px; padding: 10px 12px; border-radius: 14px; }
  .public .how li::before { grid-row: 1; width: 1.75em; height: 1.75em; font-size: .9rem; }
  .public .how b { font-size: 1rem; }
  .public .how span { display: block; grid-column: 1 / -1; font-size: .8125rem; white-space: nowrap; }
  .public .sheet { padding-top: 20px; }
  .public .chips { grid-template-columns: repeat(3, 1fr); }
  .public .chips li { padding: 14px 14px 14px 40px; font-size: .9375rem; }
  .public .chips li::before { left: 14px; }
  .public .days { margin: 0; padding: 2px 0 12px; }
  .public .confirm { margin: 20px 0 0; padding: 28px; border-radius: 28px; }
  .public #lounge-info b { display: none; }
}
/* phones: everything in the top bar is sized down so it stays one row */
@media (max-width: 30em) {
  .public .bar { flex-wrap: nowrap; gap: 8px; }
  .public .brand { gap: 10px; }
  .public .brand .l1 { height: 30px; }
  .public .brand .l2 { height: 11px; padding-left: 10px; }
  .public .bar-right { gap: 8px; }
  .public .fam { height: 22px; }
  .public .lang a { min-width: 2.25rem; min-height: 2.125rem; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .public .ticket { transition: none; } html:has(main.public) { scroll-behavior: auto; } }
