/* Registration form */
body.fp { background: #f4f1ee; }

.f-hero { background: linear-gradient(125deg, #eb1700 0%, #c41400 50%, #8f0e00 100%); color: #fff; position: relative; overflow: hidden; }
.f-hero::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 88% 10%, rgba(255,255,255,.22), transparent 38%),
  radial-gradient(circle at 5% 110%, rgba(255,255,255,.14), transparent 40%); }
.f-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 50px solid rgba(255,255,255,.07); }
.f-hero-in { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; padding: 56px 24px 64px; }
.f-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 20px; }
.f-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4.6vw, 40px); line-height: 1.15; margin: 16px 0 22px; }
.f-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; opacity: .95; }
.f-meta span { display: inline-flex; align-items: center; gap: 7px; }

.f-bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #e7e2de; }
.f-bar-in { max-width: 820px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.f-steps { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.f-stepnav { background: none; border: 0; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border-radius: 20px; font-size: 13.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.f-stepnav span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #ece7e3; color: #605e5c; transition: background .2s; }
.f-stepnav:hover { background: #f4efec; }
.f-stepnav.on { color: var(--ink); font-weight: 500; }
.f-stepnav.on span { background: var(--ink); color: #fff; }
.f-stepnav.done span { background: #107c10; color: #fff; font-size: 0; }
.f-stepnav.done span::after { content: '✓'; font-size: 12px; }
.f-progress { flex: 0 0 170px; font-size: 12px; color: var(--muted); text-align: right; }
.f-track { height: 6px; background: #ece7e3; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.f-track i { display: block; height: 100%; width: 0; background: var(--red); border-radius: 3px; transition: width .35s ease; }

.f-main { max-width: 820px; margin: 0 auto; padding: 28px 24px 16px; }
.f-req { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

.f-sec { background: #fff; border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(60,40,20,.05); margin-bottom: 22px; overflow: hidden; scroll-margin-top: 70px; }
.f-sec-head { display: flex; gap: 16px; padding: 26px 30px 22px; border-bottom: 1px solid #f1ece8; background: #fff; }
.f-step { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: #fbe9e7; color: var(--red); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.f-sec-head h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 4px 0 4px; }
.f-sec-desc { color: var(--muted); margin: 0; font-size: 14px; }
.f-prog { display: grid; gap: 8px; margin: 12px 0 0; }
.f-prog div { background: #faf8f6; border: 1px solid #f1ede9; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.f-prog b { display: block; color: var(--red); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.f-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.f-note b { color: var(--ink); }

.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 6px 30px 10px; }
.f-q { grid-column: 1 / -1; padding: 22px 0; border-bottom: 1px solid #f3efec; scroll-margin-top: 90px; }
.f-q:last-child { border-bottom: 0; }
.f-q.half { grid-column: span 1; }
.f-q[hidden] { display: none; }
.f-q:not([hidden]) { animation: fIn .25s ease; }
@keyframes fIn { from { opacity: 0; transform: translateY(-4px); } }

/* Question text: the only strong element */
.f-q-top { display: flex; align-items: baseline; gap: 8px; }
.f-num { flex: 0 0 auto; min-width: 22px; font-size: 13px; color: #a19a95; font-variant-numeric: tabular-nums; }
.f-num::after { content: '.'; }
.f-q[data-q="name"] .f-num { display: none; }
.f-label { font-size: 15.5px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.f-opt-tag { font-size: 11.5px; font-weight: 400; color: #a19a95; margin-left: 4px; }
.f-hint { font-size: 13px; color: #8a8380; margin: 4px 0 0 30px; }
.f-ctl, .f-name, .f-q > .f-chart { margin-left: 30px; }
.f-q[data-q="name"] .f-name { margin-left: 0; }
.f-ctl { margin-top: 12px; }

/* Text inputs: quiet filled fields */
.f-input { width: 100%; background: #f7f5f3; border: 1px solid #efebe8; border-radius: 8px; padding: 10px 14px; min-height: 44px; font-size: 15px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.f-input::placeholder { color: #b3aca7; }
.f-input:hover { border-color: #e2dcd8; }
.f-input:focus { background: #fff; border-color: #d9cfca; box-shadow: 0 0 0 3px rgba(235,23,0,.08); }
.f-name { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.f-q.half .f-input { max-width: 100%; }

/* Choices: plain radio lists, no boxes */
.f-opts { display: grid; gap: 2px 24px; }
.f-opts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-opts-grid.f-opts-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-opts-pills, .f-opts-seg { display: flex; flex-wrap: wrap; gap: 2px 26px; }

.f-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14.5px; line-height: 1.35; color: #4a4643; user-select: none; }
.f-opt::before { content: ''; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c4bcb6; background: #fff; transition: border-color .12s, background .12s; }
.f-opt input { position: absolute; opacity: 0; pointer-events: none; }
.f-opt:hover { color: var(--ink); }
.f-opt:hover::before { border-color: #9c938d; }
.f-opt:has(input:checked) { color: var(--ink); font-weight: 500; }
.f-opt:has(input:checked)::before { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 4.5px, #fff 5.5px); }
.f-opt:has(input:focus-visible)::before { box-shadow: 0 0 0 3px rgba(235,23,0,.18); }
.f-opts-pills .f-opt { min-width: 52px; }

.f-group { display: flex; align-items: center; gap: 14px; }
.f-group + .f-group { margin-top: 2px; }
.f-group-lbl { flex: 0 0 56px; font-size: 13px; color: #8a8380; }
.f-other { margin-top: 8px; max-width: 420px; }

.f-chart { margin-top: 6px; font-size: 13px; }
.f-chart summary { cursor: pointer; color: #8a8380; text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline-block; }
.f-chart summary:hover { color: var(--ink); }
.f-chart summary::-webkit-details-marker { display: none; }
.f-chart table { border-collapse: collapse; margin-top: 10px; min-width: 260px; }
.f-chart th { text-align: left; padding: 6px 14px 6px 0; font-weight: 500; color: #8a8380; border-bottom: 1px solid #ece7e3; }
.f-chart td { padding: 5px 14px 5px 0; border-bottom: 1px solid #f4f0ed; }

.f-err { color: var(--red); font-size: 13px; margin: 8px 0 0 30px; display: none; }
.f-q[data-q="name"] .f-err { margin-left: 0; }
.f-q.invalid .f-err { display: block; }
.f-q.invalid .f-input { border-color: #f0b4ab; background: #fff8f7; }
.f-q.invalid .f-opt::before { border-color: #e69a8f; }

.f-submit { background: #fff; border-radius: 18px; padding: 26px 30px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(60,40,20,.05); }
.f-submit p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.f-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: #fff; border: 0; border-radius: 12px; padding: 14px 34px; font-size: 16px; font-weight: 500; cursor: pointer; box-shadow: 0 6px 16px rgba(235,23,0,.28); transition: transform .12s, background .12s, box-shadow .12s; }
.f-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(235,23,0,.32); }
.f-btn:disabled { opacity: .65; cursor: progress; transform: none; }
.f-form-err { color: var(--red) !important; margin: 14px 0 0 !important; font-weight: 500; }
body.fp .footer { border-top: 0; }

@media (max-width: 640px) {
  .f-hero-in { padding: 36px 18px 44px; }
  .f-bar-in { padding: 8px 12px; gap: 10px; }
  .f-stepnav { font-size: 0; padding: 4px; gap: 0; }
  .f-stepnav span { font-size: 12px; }
  .f-progress { flex: 1; }
  .f-main { padding: 18px 10px 10px; }
  .f-sec { border-radius: 14px; }
  .f-sec-head { padding: 20px 18px 16px; gap: 12px; }
  .f-grid { grid-template-columns: 1fr; padding: 4px 18px 10px; }
  .f-q.half { grid-column: 1 / -1; }
  .f-ctl, .f-name, .f-hint, .f-err, .f-q > .f-chart { margin-left: 0; }
  .f-name { grid-template-columns: 1fr; }
  .f-opts-grid { grid-template-columns: 1fr 1fr; }
  .f-opts-grid.f-opts-wide { grid-template-columns: 1fr; }
  .f-opt { padding: 9px 0; }
  .f-group { align-items: flex-start; }
  .f-group-lbl { padding-top: 9px; flex-basis: 52px; }
  .f-submit { padding: 22px 18px; }
  .f-btn { width: 100%; justify-content: center; }
}

/* Already-registered popup */
.f-modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(30,20,15,.45); display: grid; place-items: center; padding: 16px; animation: fFade .15s ease; }
@keyframes fFade { from { opacity: 0; } }
.f-modal { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 30px 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: fIn .2s ease; }
.f-modal-icon { width: 54px; height: 54px; border-radius: 50%; background: #fbe9e7; color: var(--red); display: grid; place-items: center; margin: 0 auto 14px; }
.f-modal h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin: 0 0 10px; }
.f-modal p { font-size: 14.5px; color: #4a4643; margin: 0 0 8px; line-height: 1.5; word-break: break-word; }
.f-modal p b { color: var(--ink); }
.f-modal-msg { min-height: 0; font-weight: 500; }
.f-modal-msg.ok { color: #107c10 !important; background: #eef7ee; border-radius: 8px; padding: 10px 12px; margin-top: 12px !important; }
.f-modal-msg.bad { color: var(--red) !important; background: #fff4f2; border-radius: 8px; padding: 10px 12px; margin-top: 12px !important; }
.f-modal-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.f-modal .f-btn { justify-content: center; width: 100%; padding: 13px 20px; font-size: 15px; }
.f-btn-ghost { background: none; border: 0; color: #605e5c; padding: 10px; font-size: 14.5px; cursor: pointer; border-radius: 10px; }
.f-btn-ghost:hover { background: #f4f0ed; color: var(--ink); }

/* Compact field groups (flight arrival / departure, hotel stay) */
.f-group-card { grid-column: 1 / -1; margin: 18px 0 4px 30px; border: 1px solid #ece7e3; border-radius: 12px; padding: 16px 18px 18px; background: #fcfbfa; }
.f-group-card[hidden] { display: none; }
.f-group-card:not([hidden]) { animation: fIn .25s ease; }
.f-group-head { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; margin-bottom: 12px; }
.f-group-icon { width: 30px; height: 30px; border-radius: 8px; background: #fbe9e7; color: var(--red); display: grid; place-items: center; }
.f-group-row { display: grid; gap: 14px; align-items: start; }
.f-group-row.cols-3 { grid-template-columns: 1.1fr 1fr 1fr; }
.f-group-row.cols-2 { grid-template-columns: 1fr 1fr; }
.f-q.compact { padding: 0; border: 0; }
.f-clabel { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; color: #4a4643; margin-bottom: 6px; white-space: nowrap; }
.f-clabel .f-num { min-width: 0; font-size: 12px; }
.f-q.compact .f-input { background: #fff; }
.f-q.compact .f-err { margin-left: 0; font-size: 12.5px; }

/* Keep browser autofill from painting fields blue */
.f-input:-webkit-autofill, .f-input:-webkit-autofill:hover, .f-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #f7f5f3 inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); transition: background-color 9999s;
}
.f-q.compact .f-input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }

/* Size pickers with the chest measurement built in */
.f-sizes { display: grid; gap: 10px; }
.f-size-row { display: flex; align-items: center; gap: 14px; }
.f-size-lbl { flex: 0 0 56px; font-size: 13px; color: #8a8380; }
.f-size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f-size { position: relative; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0 7px; border: 1px solid #e6e0dc; border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .12s, background .12s; user-select: none; }
.f-size input { position: absolute; opacity: 0; pointer-events: none; }
.f-size b { font-size: 15px; font-weight: 500; color: #3b3a39; }
.f-size small { font-size: 11.5px; color: #9c948f; }
.f-size:hover { border-color: #cfc6c0; }
.f-size:has(input:checked) { border-color: var(--red); background: #fff6f4; box-shadow: 0 0 0 1px var(--red) inset; }
.f-size:has(input:checked) b { color: var(--red); }
.f-size:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(235,23,0,.18); }
.f-q.invalid .f-size { border-color: #efc0b8; }

/* Step navigation */
.f-nav { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.f-step-count { flex: 1; text-align: center; font-size: 13px; color: #8a8380; }
.f-btn-back { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid #e2dcd8; border-radius: 12px; padding: 13px 22px; font-size: 15px; cursor: pointer; }
.f-btn-back:hover { background: #faf7f5; border-color: #cfc6c0; }
.f-btn-back[hidden] { display: inline-flex; visibility: hidden; }
.f-nav .f-btn { margin-left: auto; }
.f-form-err:empty { display: none; }
.f-form-err { text-align: right; }
.f-sec h2:focus { outline: none; }

@media (max-width: 640px) {
  .f-group-card { margin-left: 0; padding: 14px; }
  .f-group-row.cols-3, .f-group-row.cols-2 { grid-template-columns: 1fr; }
  .f-size-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .f-size { width: 56px; }
  .f-nav { position: sticky; bottom: 0; background: rgba(244,241,238,.95); backdrop-filter: blur(8px); margin: 0 -10px; padding: 10px; }
  .f-step-count { display: none; }
  .f-btn-back { padding: 13px 16px; }
  .f-nav .f-btn { width: auto; flex: 1; justify-content: center; }
}

/* fixes: compact fields sit side by side; inline radio rows */
.f-group-row > .f-q.compact { grid-column: auto; }
.f-opts-inline { display: flex; flex-wrap: wrap; gap: 2px 32px; }
@media (max-width: 640px) { .f-group-row > .f-q.compact { grid-column: 1 / -1; } }
.f-input { height: 44px; min-height: 44px; }

/* Function: two columns, read top to bottom */
.f-opts.f-opts-wide { display: block; columns: 2; column-gap: 28px; }
.f-opts.f-opts-wide .f-opt { break-inside: avoid; }
@media (max-width: 640px) { .f-opts.f-opts-wide { columns: 1; } }

/* "View more" size guide */
.f-more { background: none; border: 0; padding: 0; margin-left: 4px; font: inherit; color: var(--red); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.f-more:hover { color: var(--red-dark); }
.f-guide { position: relative; max-width: 480px; padding: 26px 24px 20px; }
.f-guide h2 { font-size: 19px; margin: 0 28px 12px; }
.f-guide img { display: block; width: 100%; height: auto; max-width: 380px; margin: 0 auto; }
.f-guide p { margin: 10px 0 0; font-size: 13.5px; }
.f-guide-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: #605e5c; cursor: pointer; border-radius: 50%; }
.f-guide-table { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 13.5px; text-align: center; }
.f-guide-table th, .f-guide-table td { padding: 6px 4px; border-bottom: 1px solid #f0ebe7; }
.f-guide-table thead th { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a8380; font-weight: 500; }
.f-guide-table tbody th { font-weight: 600; text-align: left; padding-left: 8px; }
.f-guide { max-height: calc(100vh - 32px); overflow-y: auto; }
.f-guide-x:hover { background: #f4f0ed; }

/* Edit mode */
.f-edit-note { background: #fff8ec; border: 1px solid #f3dcb2; color: #5c4300; border-radius: 12px; padding: 12px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.f-loading { opacity: .5; pointer-events: none; }
