/* 페어 맨 위 «히어로 + 초대권 신청»(2026-11-12 Figma `_stylingpair` PC 1755:6927 · 모바일 1755:7173) — 접두 `fiv-`.
 *   2026-11-12 요청 «좌우 끝까지가 아니라 가로 폭에 맞춰» — 바깥 `.fiv-wrap`(최대 1280, 가운데)을 «컨테이너» 로 두고 그 폭 기준으로 줄인다
 *   (메인 사이트 이벤트 목록에서는 본문 칸 1120 · 864 에 맞는다). 길이 단위 --u = «Figma 1px» 의 화면 길이:
 *   칸 ≥768 = min(1px, 칸 폭 ÷ 1280) · 칸 ≤767 = 칸 폭 ÷ 360. 폼은 실제 px(최대 722).
 *   🔑 페어 앱(mws-frontend/apps/fair `app/fair-invite.css`)이 원본 — 이 파일은 사본(그림 경로만 다르다). 고치면 함께. */
/* 규칙마다 `.fiv` 를 앞에 붙여 특정도를 올렸다 — 메인 사이트 이벤트 화면의 `.evf-main p { margin:0 }` 등이 이기지 않게 */
.fiv-wrap { container-type: inline-size; width: 100%; max-width: 1280px; margin: 0 auto; }
.fiv { --u: min(1px, calc(100cqw / 1280)); position: relative; overflow: hidden; background: #fff; text-align: center; color: #000; }
.fiv .fiv__photo { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1024 / 1536; object-fit: cover; pointer-events: none; }
.fiv .fiv__credit { position: absolute; right: calc(16 * var(--u)); top: calc(1880 * var(--u)); margin: 0; font-size: 11px; color: rgba(0, 0, 0, 0.3); }
.fiv .fiv__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding: calc(166 * var(--u)) 20px calc(80 * var(--u)); }
.fiv .fiv__title { display: flex; flex-direction: column; align-items: center; margin: 0; width: calc(825 * var(--u)); }
.fiv .fiv__title img { display: block; height: auto; }
.fiv .fiv__mws { width: calc(436 * var(--u)); margin-bottom: calc(132 * var(--u)); }
.fiv .fiv__row { display: flex; align-items: flex-end; gap: calc(23 * var(--u)); margin-bottom: calc(25 * var(--u)); }
.fiv .fiv__my { width: calc(126 * var(--u)); }
.fiv .fiv__wedding { width: calc(421 * var(--u)); }
.fiv .fiv__story { width: calc(232 * var(--u)); }
.fiv .fiv__fair { width: calc(503 * var(--u)); margin-bottom: calc(25 * var(--u)); }
.fiv .fiv__year { width: calc(190 * var(--u)); }
.fiv .fiv__lead { margin: calc(924 * var(--u)) 0 0; font: 500 calc(50 * var(--u)) / 1.36 "Noto Sans KR", sans-serif; }
.fiv .fiv__when { margin-top: calc(200 * var(--u)); display: flex; flex-direction: column; gap: calc(18 * var(--u)); }
.fiv .fiv__date { margin: 0; font: 400 calc(40 * var(--u)) / 1.6 "Libre Caslon Text", Georgia, serif; color: #9a6752; }
.fiv .fiv__place { margin: 0; font: 500 calc(35 * var(--u)) / 1.6 "Pretendard", "Noto Sans KR", sans-serif; letter-spacing: -0.01em; color: #222; }
.fiv .fiv__place b { font-weight: 700; }
.fiv .fiv__toggle {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: min(400px, 100%); height: 56px; margin-top: 40px;
  border: 0; border-radius: 10px; background: #9a6752; color: #fff; font: 400 20px / 28px "Noto Sans KR", sans-serif; cursor: pointer;
}
.fiv .fiv__toggle img { width: 16px; height: 12px; }
.fiv.is-open .fiv__toggle { background: #e0c6bc; color: #bd907e; }
.fiv.is-open .fiv__toggle img { transform: rotate(180deg); }

.fiv .fiv__body { display: flex; flex-direction: column; align-items: center; gap: 50px; width: min(1000px, 100%); margin-top: 50px; }
.fiv .fiv__body[hidden] { display: none; }
.fiv .fiv__head { display: flex; flex-direction: column; gap: 33px; width: min(855px, 100%); }
.fiv .fiv__eyebrow { margin: 0; font: 400 28px / 1.2 "Prociono", "Libre Caslon Text", Georgia, serif; letter-spacing: 0.08em; color: rgba(154, 103, 82, 0.8); }
.fiv .fiv__heading { margin: 0; font: 700 32px / 1.25 "Pretendard", "Noto Sans KR", sans-serif; letter-spacing: -0.02em; color: #000; }

/* 초대권 — 652×342 판 위에 글자·점선·세로 로고(Figma 좌표 %) */
.fiv .fiv__ticket { position: relative; width: min(652px, 100%); aspect-ratio: 652 / 341.805; margin-top: -20px; }
.fiv .fiv__ticket-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fiv .fiv__ticket-line { position: absolute; left: 79.47%; top: 50%; width: 52.42%; height: 1px; transform: translate(-50%, -50%) rotate(90deg); }
.fiv .fiv__ticket-side { position: absolute; left: 87.99%; top: 49.9%; width: 27.15%; height: auto; transform: translate(-50%, -50%) rotate(90deg); }
.fiv .fiv__ticket-text { position: absolute; left: 12.26%; top: 27.5%; width: 36.04%; display: flex; flex-direction: column; align-items: center; color: #111; container-type: inline-size; }
.fiv .fiv__ticket-text span { font: 600 7.66cqw / 1.5 "Pretendard", "Noto Sans KR", sans-serif; white-space: nowrap; }
.fiv .fiv__ticket-text strong { font: 700 42.5cqw / 1 "Anek Bangla", "Noto Sans KR", sans-serif; }

/* 폼 — Figma 722 폭: 성함 212 · 연락처 212 · 예식 예정일 258 */
.fiv .fiv__form { width: min(722px, 100%); scroll-margin-top: 90px; }
.fiv .fiv__form form { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.fiv .fiv__fields { display: flex; gap: 20px; width: 100%; text-align: left; }
.fiv .fiv__field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fiv .fiv__field--name, .fiv .fiv__field--phone { flex: 212 1 0; }
.fiv .fiv__field--date { flex: 258 1 0; }
.fiv .fiv__label { display: inline-flex; align-items: flex-start; gap: 2px; font: 400 18px / 24px "Noto Sans KR", sans-serif; color: #444; }
.fiv .fiv__label i { width: 4px; height: 4px; margin-top: 2px; border-radius: 50%; background: #e04848; }
.fiv .fiv__input {
  width: 100%; height: 38px; padding: 5px 11px; border: 1px solid #cbcbcb; border-radius: 8px; background: #fff;
  font: 400 14px / 20px "Noto Sans KR", sans-serif; color: #222; appearance: none;
}
.fiv .fiv__input::placeholder { color: #cfcfcf; }
.fiv .fiv__input:focus { outline: none; border-color: #9a6752; }
.fiv .fiv__select { padding-right: 32px; background: #fff url(/assets/images/event-fair/select-arrow.svg) no-repeat right 11px center / 12px 12px; cursor: pointer; }
.fiv .fiv__select.is-empty { color: #cfcfcf; }
.fiv .fiv__select option { color: #222; }
.fiv .fiv__agree { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.fiv .fiv__check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 700 14px / 20px "Noto Sans KR", sans-serif; color: #444; }
.fiv .fiv__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fiv .fiv__box { width: 18px; height: 18px; margin-right: 12px; border: 1px solid #cbcbcb; border-radius: 5px; background: #fff; }
.fiv .fiv__check input:checked + .fiv__box { border-color: #1a1a1a; background: #1a1a1a url(/assets/images/event-fair/check.svg) no-repeat center / 10px 11px; }
.fiv .fiv__check input:focus-visible + .fiv__box { outline: 2px solid #9a6752; outline-offset: 2px; }
.fiv .fiv__badge { padding: 2px 6px; border-radius: 4px; background: #eee; font: 500 12px / 16px "Noto Sans KR", sans-serif; color: #444; }
.fiv .fiv__policy { padding: 10px; border: 1px solid #cbcbcb; border-radius: 8px; background: #fff; font: 400 12px / 16px "Noto Sans KR", sans-serif; color: #949494; }
.fiv .fiv__policy p { margin: 0; }
.fiv .fiv__policy ul { margin: 0; padding-left: 18px; }
.fiv .fiv__error { margin: -10px 0 0; font-size: 14px; color: #e04848; }
.fiv .fiv__submit {
  width: min(400px, 100%); height: 56px; margin-top: 20px; border: 0; border-radius: 10px; background: #9a6752; color: #fff;
  font: 400 20px / 28px "Noto Sans KR", sans-serif; cursor: pointer;
}
.fiv .fiv__submit:disabled { background: #cfcfcf; cursor: default; }
.fiv .fiv__done { display: flex; flex-direction: column; gap: 8px; padding: 40px 20px; border: 1px solid #e0c6bc; border-radius: 10px; background: #fcf8f5; }
.fiv .fiv__done strong { font-size: 20px; color: #9a6752; }
.fiv .fiv__done p { margin: 0; font-size: 15px; color: #555; }

/* ── 모바일(칸 ≤767) — Figma 360 판 × (칸 폭 ÷ 360) ── */
@container (max-width: 767px) {
  .fiv { --u: calc(100cqw / 360); }
  .fiv .fiv__credit { top: calc(520 * var(--u)); right: 8px; font-size: 9px; }
  .fiv .fiv__inner { padding: calc(45 * var(--u)) 20px 80px; }
  .fiv .fiv__title { width: calc(257 * var(--u)); }
  .fiv .fiv__mws { width: calc(123 * var(--u)); margin-bottom: calc(39 * var(--u)); }
  .fiv .fiv__row { gap: calc(7 * var(--u)); align-items: flex-start; margin-bottom: calc(7 * var(--u)); }
  .fiv .fiv__my { width: calc(40 * var(--u)); }
  .fiv .fiv__wedding { width: calc(132 * var(--u)); }
  .fiv .fiv__story { width: calc(73 * var(--u)); }
  .fiv .fiv__fair { width: calc(158 * var(--u)); margin-bottom: calc(7 * var(--u)); }
  .fiv .fiv__year { width: calc(60 * var(--u)); }
  .fiv .fiv__lead { margin-top: calc(262 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.4; }
  .fiv .fiv__when { margin-top: calc(91 * var(--u)); gap: 10px; }
  .fiv .fiv__date { font-size: 14px; }
  .fiv .fiv__place { font-size: 14px; }
  .fiv .fiv__toggle { width: 258px; height: 40px; font-size: 16px; line-height: 22px; }
  .fiv .fiv__body { gap: 30px; margin-top: 30px; }
  .fiv .fiv__head { gap: 10px; }
  .fiv .fiv__eyebrow { font-size: 16px; }
  .fiv .fiv__heading { font-size: 18px; }
  .fiv .fiv__ticket { width: 257px; margin-top: 0; }
  .fiv .fiv__ticket-text { top: 23.7%; width: 45.1%; }
  .fiv .fiv__ticket-text span { font-size: 10.34cqw; }
  .fiv .fiv__ticket-text strong { font-size: 30.2cqw; }
  .fiv .fiv__form { width: 240px; }
  .fiv .fiv__form form { gap: 20px; }
  .fiv .fiv__fields { flex-direction: column; gap: 10px; }
  .fiv .fiv__label { font-size: 14px; line-height: 20px; }
  .fiv .fiv__input { height: 35px; font-size: 12px; line-height: 16px; }
  .fiv .fiv__check { font-size: 11px; line-height: 14px; }
  .fiv .fiv__box { margin-right: 2px; }
  .fiv .fiv__badge { font-size: 11px; line-height: 14px; }
  .fiv .fiv__policy { font-size: 10px; line-height: 14px; }
  .fiv .fiv__policy ul { padding-left: 15px; }
  .fiv .fiv__submit { width: 258px; height: 40px; margin-top: 10px; font-size: 16px; line-height: 22px; }
}

/* 2026-11-14 — 07 본문(HTML) 사이 «초대권 신청» 자리(inline, `data-mws-slot="invite"`): 히어로 없이 늘 펼친 폼 · 바탕 = Figma 띠 #fcf8f5 */
.fiv-wrap--inline { max-width: none; }
.fiv.fiv--inline { overflow: visible; background: #fcf8f5; }
.fiv.fiv--inline .fiv__inner { padding: 120px 20px; }
.fiv.fiv--inline .fiv__body { margin-top: 0; }
@container (max-width: 1023px) { .fiv.fiv--inline .fiv__inner { padding: 100px 20px; } }
@container (max-width: 767px) { .fiv.fiv--inline .fiv__inner { padding: 30px 20px 40px; } }

/* 2026-11-17 요청 — «희망 방문일»(초대권 폼 둘째 줄, 날짜 버튼 두 개) */
.fiv .fiv__fields { flex-wrap: wrap; }
.fiv .fiv__field--visit { flex: 1 1 100%; }
.fiv .fiv__choices { display: flex; gap: 10px; }
.fiv .fiv__choice {
  flex: 1 1 0; min-width: 0; height: 38px; padding: 5px 11px; border: 1px solid #cbcbcb; border-radius: 8px; background: #fff;
  font: 400 14px / 20px "Noto Sans KR", sans-serif; color: #444; cursor: pointer; white-space: nowrap;
}
.fiv .fiv__choice.is-on { border-color: #9a6752; background: #9a6752; color: #fff; font-weight: 700; }
@media (max-width: 767px) {
  .fiv .fiv__field--visit { flex: none; }
  .fiv .fiv__choice { height: 35px; font-size: 12px; line-height: 16px; }
}
