/* 청담스토리 웨딩페어 — 색 3개: 아이보리 #FBF8F4 / 먹색 #1F1B18 / 짙은 초록 #2F5D46
   글꼴 2개: Noto Serif KR(제목) / Pretendard(본문) */
:root{
  --bg:#FBF8F4; --bg2:#F2ECE4; --ink:#1F1B18; --sub:#5E5650; --line:#E2DAD0;
  --accent:#2F5D46; --accent-d:#244A37; --white:#fff;
  --serif:"Noto Serif KR",serif;
  --sans:"Pretendard Variable",Pretendard,-apple-system,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.7;word-break:keep-all;padding-bottom:76px}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}

/* 머리줄 */
.top{position:sticky;top:0;z-index:20;height:60px;background:rgba(251,248,244,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
/* 머리줄·첫 화면·본문 모두 폭 1200px 한 줄에 맞춤 — 넓은 화면에서 로고·메뉴가 양끝으로 벌어지지 않게 */
.top-in{display:flex;align-items:center;gap:8px;height:100%;max-width:1200px;margin:0 auto;padding:0 12px 0 20px}
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;margin-right:auto}
.logo img{height:34px;width:auto}
.logo-txt{display:flex;flex-direction:column;line-height:1.15}
.logo-txt b{font-family:var(--serif);font-size:18px;font-weight:700;letter-spacing:.02em}
.logo-txt small{font-size:10px;letter-spacing:.06em;color:var(--sub)}
.top-tel{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;
  border:1px solid var(--line);text-decoration:none;color:var(--ink)}
.top-tel span{display:none}
.menu-btn{width:44px;height:44px;border:0;background:none;display:flex;flex-direction:column;justify-content:center;
  align-items:center;gap:5px;cursor:pointer}
.menu-btn span{display:block;width:22px;height:2px;background:var(--ink);border-radius:2px;transition:transform .2s,opacity .2s}
.menu-btn[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-btn[aria-expanded=true] span:nth-child(2){opacity:0}
.menu-btn[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.menu{display:none;position:absolute;left:0;right:0;top:60px;background:var(--bg);border-bottom:1px solid var(--line);
  box-shadow:0 12px 24px rgba(31,27,24,.08);padding:8px 20px 20px;flex-direction:column}
.menu.open{display:flex}
.menu a{padding:16px 4px;border-bottom:1px solid var(--line);text-decoration:none;font-weight:600}
.menu a.menu-apply{margin-top:16px;border:0;border-radius:8px;background:var(--accent);color:var(--white);text-align:center}

/* 첫 화면 */
.hero-photo img{width:100%;aspect-ratio:1/1;object-fit:cover;max-height:52svh;object-position:50% 25%}
.hero-side{padding:28px 20px 8px}
h1{font-family:var(--serif);font-weight:700;font-size:30px;line-height:1.35;margin:0 0 20px}
.when{display:grid;gap:8px;margin-bottom:16px}
.when div{display:flex;gap:16px;align-items:baseline}
.when dt{font-size:14px;color:var(--sub);min-width:32px}
.when dd{font-size:19px;font-weight:600}
.lead{color:var(--sub)}
.lead strong{color:var(--ink)}

/* 신청서 */
.form{margin-top:24px;background:var(--white);border:1px solid var(--line);border-radius:16px;padding:24px 20px;
  box-shadow:0 8px 28px rgba(31,27,24,.07);scroll-margin-top:72px}
.form-title{font-family:var(--serif);font-size:22px;font-weight:700}
.form-sub{font-size:15px;color:var(--sub);margin-bottom:16px}
.form-sub:has(+.form-note){margin-bottom:8px}
.form-note{font-size:15px;font-weight:600;color:var(--accent);margin-bottom:16px}
.f{display:block;border:0;margin-bottom:16px}
.f>span,.f legend{display:block;font-size:15px;font-weight:600;margin-bottom:8px}
.form input:not([type=checkbox]),.form select{width:100%;height:52px;padding:0 16px;font:inherit;font-size:17px;color:var(--ink);
  background:var(--bg);border:1px solid var(--line);border-radius:8px;appearance:none;-webkit-appearance:none}
.form select{background-image:linear-gradient(45deg,transparent 50%,var(--sub) 50%),linear-gradient(135deg,var(--sub) 50%,transparent 50%);
  background-position:calc(100% - 18px) 23px,calc(100% - 13px) 23px;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}
.form input:focus,.form select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(47,93,70,.15)}
.date{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}
.date select:disabled{opacity:.45}
.chk{display:flex;align-items:center;gap:8px;font-size:15px;margin-top:8px;cursor:pointer}
.chk input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.agree{margin:4px 0 8px;flex-wrap:wrap}
.link{background:none;border:0;font:inherit;font-size:14px;color:var(--sub);text-decoration:underline;cursor:pointer;padding:4px}
.privacy{font-size:14px;color:var(--sub);background:var(--bg);border-radius:8px;padding:12px 16px;margin:8px 0}
.err{min-height:24px;font-size:15px;color:#A3341F;font-weight:600}
.btn{display:flex;align-items:center;justify-content:center;width:100%;height:56px;text-align:center;border:0;border-radius:8px;
  background:var(--accent);color:var(--white);font:inherit;font-size:18px;font-weight:700;text-decoration:none;cursor:pointer}
.btn:hover{background:var(--accent-d)}

/* 구역 공통 */
.sec{padding:56px 0;scroll-margin-top:60px}
.sec.alt{background:var(--bg2)}
.sec h2{font-family:var(--serif);font-size:25px;font-weight:700;line-height:1.4;margin-bottom:12px}
.answer{color:var(--sub);margin-bottom:32px;max-width:640px}
.answer:last-child{margin-bottom:0}
/* 좁은 구역도 왼쪽 끝은 다른 구역과 같은 줄, 글 폭만 좁게 */
.narrow>*{max-width:760px}
.note{font-size:14px;color:var(--sub);margin-top:16px}

/* 혜택 표 */
.benefits{list-style:none;border-top:2px solid var(--ink)}
.benefits li{display:flex;justify-content:space-between;gap:16px;padding:16px 4px;border-bottom:1px solid var(--line)}
.b-name{font-weight:600}
.b-val{color:var(--accent);font-family:var(--serif);font-weight:700;text-align:right;white-space:nowrap}

/* 웨딩홀 */
.halls{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.hall:first-child{grid-column:1/-1}
.hall{background:var(--white);border-radius:12px;overflow:hidden}
.hall img{width:100%;aspect-ratio:3/2;object-fit:cover}
.hall div{padding:12px 16px 16px}
.hall h3{font-size:16px;font-weight:700;line-height:1.4}
.hall p{font-size:14px;color:var(--sub);line-height:1.5;margin-top:2px}
.steps{list-style:none;counter-reset:s;margin-top:32px;display:grid;gap:12px}
.steps li{counter-increment:s;position:relative;padding:4px 0 4px 44px;color:var(--sub)}
.steps li::before{content:counter(s);position:absolute;left:0;top:4px;width:30px;height:30px;border-radius:50%;
  background:var(--accent);color:var(--white);font-weight:700;font-size:15px;line-height:30px;text-align:center}
.steps b{display:block;color:var(--ink)}

/* 스드메: 사진 + 이름 + 설명 한 묶음 (휴대폰은 사진 왼쪽·글 오른쪽, PC는 3칸) */
.sdm{list-style:none;display:grid;gap:16px}
.sdm li{display:grid;grid-template-columns:112px 1fr;gap:16px;align-items:center}
.sdm img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%;border-radius:12px}
.sdm h3{font-size:17px;font-weight:700;margin-bottom:4px}
.sdm p{font-size:15px;color:var(--sub);line-height:1.6}
.sdm p.sub{font-size:14px;margin-top:4px}

/* 질문 */
details{border-bottom:1px solid var(--line)}
summary{list-style:none;cursor:pointer;padding:20px 32px 20px 0;position:relative}
summary::-webkit-details-marker{display:none}
summary h3{font-size:17px;font-weight:600}
summary::after{content:"+";position:absolute;right:4px;top:16px;font-size:24px;color:var(--sub)}
details[open] summary::after{content:"−"}
.faq-card{margin-top:24px;background:var(--bg2);border-radius:16px;padding:24px}
.faq-card-t{font-family:var(--serif);font-size:20px;font-weight:700;margin-bottom:8px}
.faq-card-s{font-size:15px;color:var(--sub);margin-bottom:20px}

.faq-list{border-top:2px solid var(--ink)}
details p{padding:0 0 20px;color:var(--sub)}

/* 선물: 짙은 바탕 + 디퓨저 사진 + 선물 이름 크게 */
.sec.dark{background:var(--ink);color:#F3EEE8}
.dark .answer{color:#BDB3A8}
.gift{display:grid;gap:32px}
/* 디퓨저: 병 전체가 다 보이게(자르지 않음), 사진 바깥 얇은 선 액자 */
.gift-pic{width:240px;max-width:100%;padding:12px;border:1px solid rgba(243,238,232,.28);border-radius:16px}
.gift-img{width:100%;height:auto;border-radius:8px}
.gift-name{font-family:var(--serif);font-size:28px;font-weight:700;line-height:1.4;color:var(--white);margin:-8px 0 24px}
.gift-name span{color:#BDB3A8}
.gift-info{border-top:1px solid rgba(243,238,232,.28);margin-bottom:32px}
.gift-info div{display:flex;gap:16px;padding:12px 0;border-bottom:1px solid rgba(243,238,232,.16);font-size:15px}
.gift-info dt{min-width:56px;color:#BDB3A8}
.gift-info dd{color:#F3EEE8}
.btn-line{max-width:320px;background:transparent;border:1px solid rgba(255,255,255,.55);color:var(--white)}
.btn-line:hover{background:rgba(255,255,255,.08)}

/* 끝 구역: 커플 사진 + 두 번째 신청서 (빈 공간 없이) */
.end-in{display:grid;gap:32px}
.end-photo img{width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 30%;border-radius:12px}
.end-side .answer{margin-bottom:0}

.foot{background:var(--ink);color:#CFC7BE;font-size:14px;padding:40px 0 24px}
.foot b{color:var(--white)}
.foot a{color:var(--white)}
.maps{display:flex;gap:16px;margin-top:12px}

/* 화면 아래 신청 버튼 */
.sticky{position:fixed;left:12px;right:12px;bottom:12px;z-index:30;height:56px;line-height:56px;text-align:center;
  background:var(--accent);color:var(--white);font-weight:700;font-size:18px;text-decoration:none;border-radius:8px;
  box-shadow:0 6px 20px rgba(31,27,24,.25);transition:transform .25s,opacity .25s}
.sticky.hide{transform:translateY(120%);opacity:0;pointer-events:none}

@media (min-width:768px){
  .hall h3{font-size:18px}
  .hall p{font-size:15px}
  .sec h2{font-size:30px}
  .sticky{left:50%;right:auto;width:360px;transform:translateX(-50%)}
  .sticky.hide{transform:translate(-50%,120%)}
}
@media (min-width:1024px){
  body{font-size:18px}
  .top{height:68px}
  .top-in{gap:28px;padding:0 20px}
  .logo img{height:38px}
  .menu-btn{display:none}
  .menu{display:flex;position:static;flex-direction:row;align-items:center;gap:28px;padding:0;background:none;border:0;box-shadow:none}
  .menu a{padding:6px 0;border:0;font-size:16px;color:var(--sub)}
  .menu a:hover{color:var(--ink)}
  .menu a.menu-apply{margin:0;padding:0 18px;height:40px;line-height:40px;font-size:15px}
  .top-tel{width:auto;height:40px;padding:0 14px;border-radius:8px;gap:6px;font-size:15px;font-weight:600}
  .top-tel span{display:inline}
  /* 첫 화면: 사진 위·아래 끝 = 글 위 끝·신청서 아래 끝 (빈 줄 없이) */
  .hero{display:grid;grid-template-columns:1fr 1fr;max-width:1200px;margin:0 auto;padding:40px 20px 0;gap:48px;align-items:stretch}
  .hero-side{padding:0;display:flex;flex-direction:column}
  .hero-side .form{margin-top:auto}
  .hero-text{padding-bottom:24px}
  .hero-photo img{height:100%;max-height:none;aspect-ratio:auto;min-height:640px;border-radius:16px;object-position:50% 50%}
  h1{font-size:38px}
  .sec{padding:80px 0}           /* 11/30 대표 "간격 너무 넓음" 112→80 */
  .sec h2{font-size:34px;letter-spacing:-.01em;margin-bottom:16px}
  /* 웨딩홀: 위 2장 + 아래 3장, 모든 사진 같은 3:2 (빈 칸 없음) */
  .halls{grid-template-columns:repeat(6,1fr);gap:20px}
  .hall,.hall:first-child{grid-column:span 2}
  .hall:nth-child(-n+2){grid-column:span 3}
  .steps{grid-template-columns:repeat(3,1fr);gap:24px}
  .sdm{grid-template-columns:repeat(3,1fr);gap:24px}
  .sdm li{grid-template-columns:1fr;gap:16px;align-items:start}
  .gift{grid-template-columns:320px minmax(0,560px);gap:80px;align-items:center}
  .gift-pic{width:100%}
  .gift-name{font-size:36px}
  .end-in{grid-template-columns:1fr 1fr;gap:48px;align-items:stretch}
  /* 질문: 제목 왼쪽 + 질문 오른쪽, 오른쪽 끝을 다른 구역(1200px)과 같은 줄에 */
  .faq-in{display:grid;grid-template-columns:1fr 2fr;gap:48px;align-items:stretch}
  /* 왼쪽: 제목 아래 사진이 남은 높이를 채워 아래 끝 = 질문 목록 아래 끝 */
  .faq-head{display:flex;flex-direction:column}
  .faq-head .answer{margin-bottom:24px}
  /* 왼쪽 상담 안내 칸이 남은 높이를 채워 아래 끝 = 질문 목록 아래 끝 */
  .faq-card{margin-top:auto;padding:28px;display:flex;flex-direction:column;justify-content:flex-end}
  /* 12/2 대표 "라인 안 맞음": 오른쪽 질문 줄들이 왼쪽 높이만큼 고르게 늘어나 마지막 줄 = 왼쪽 카드 아래 끝 */
  .faq-list{display:flex;flex-direction:column}
  .faq-list details{flex:1 0 auto;display:flex;flex-direction:column;justify-content:center}
  .end-photo{position:relative}          /* 사진 높이 = 글+신청서 높이 (아래 끝 맞춤) */
  .end-photo img{position:absolute;inset:0;height:100%;aspect-ratio:auto;border-radius:16px}
  .form{scroll-margin-top:84px;display:grid;grid-template-columns:1fr 1fr;column-gap:12px}
  .form>*{grid-column:1/-1}
  .form>.f{grid-column:auto}           /* 이름|연락처, 결혼 예정일|결혼식 지역 두 칸씩 → 신청서 짧게, 첫 화면 사진 덜 잘림 */
  .date{grid-template-columns:1.25fr 1fr 1fr;gap:8px}
  .date select{padding:0 24px 0 12px;background-position:calc(100% - 14px) 23px,calc(100% - 9px) 23px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.sticky{transition:none}}

/* 12/2 대표 "강조할 부분 강조, 강조가 부족" — 형광펜 밑줄(.hl) + 굵게 + 주요 혜택 2줄 */
.hl{background:linear-gradient(transparent 60%,rgba(47,93,70,.18) 60%);padding:0 2px}
strong{font-weight:700}
.answer strong,.lead strong,details p strong,.steps strong{color:var(--ink)}
.lead strong.hl{color:var(--accent)}
.h1-em{color:var(--accent)}
.when dd{color:var(--ink);font-weight:700}
.h2-em{color:var(--accent)}
.dark .hl{background:linear-gradient(transparent 60%,rgba(160,200,176,.38) 60%)}
.dark .answer strong{color:var(--white)}
.benefits li.top{background:rgba(47,93,70,.07);padding:20px 16px;align-items:center}
.benefits li.top .b-name{font-size:1.06em}
.benefits li.top .b-val{font-size:1.4em;line-height:1.2}
/* 웨딩홀 카드 혜택 글자는 차분하게 (GPT 검수: 같은 문구 반복 강조) */
/* 12/2 대표 "라인 맞추고 공간 좁게, 글자 모이게" */
/* 첫 화면: 지원금도 날짜, 장소와 같은 줄(왼쪽 글자 칸 같은 폭) */
.when dt{min-width:44px}
.when-money{align-items:baseline}
.when-money dd{display:flex;flex-direction:column;gap:2px}
.when-money strong{font-family:var(--serif);font-size:30px;line-height:1.15;color:var(--accent)}
.when-money small{font-size:13px;font-weight:500;color:var(--sub)}
/* 신청서: '아직 미정이에요'를 '결혼 예정일' 제목 줄 오른쪽으로 → 한 줄 줄어듦 */
fieldset.f{position:relative}
fieldset.f .chk{position:absolute;top:0;right:0;margin:0;font-size:14px;color:var(--sub);line-height:1.5}
fieldset.f .chk input{width:18px;height:18px}
/* 선물 구역 휴대폰·태블릿: 사진 | 선물 이름 나란히 (오른쪽 빈 공간 없이) */
@media (max-width:1023px){
  .gift{grid-template-columns:42% 1fr;gap:0 20px;align-items:center}
  .gift-txt{display:contents}
  .gift-txt h2,.gift-txt .answer{grid-column:1/-1;grid-row:auto}
  .gift-txt h2{order:-2}.gift-txt .answer{order:-1;margin-bottom:24px}
  .gift-pic{width:100%;padding:8px;border-radius:12px;align-self:center}
  .gift-name{font-size:22px;margin:0}
  .gift-info,.gift .btn{grid-column:1/-1}
  .gift-info{margin:24px 0 32px}
}
@media (min-width:1024px){.when-money strong{font-size:36px}}
fieldset.f>legend{float:left;width:100%}   /* 제목을 칸 안으로 넣어 '미정'과 같은 줄 */
fieldset.f>.date{clear:both}
.gift-name .gift-brand{display:block;font-family:var(--sans);font-size:15px;font-weight:600;letter-spacing:.02em;color:#BDB3A8;margin-bottom:8px}
@media (min-width:1024px){.gift-name .gift-brand{font-size:18px;margin-bottom:12px}}

/* 접수 피드백은 제출 오류 또는 완료 상태에서만 표시됩니다. */
.form input:not([type=checkbox])[aria-invalid="true"],
.form select[aria-invalid="true"] {
  border-color: #b1322c;
  box-shadow: 0 0 0 1px #b1322c;
}
.form input[type=checkbox][aria-invalid="true"] {
  outline: 2px solid #b1322c;
  outline-offset: 2px;
}
#consult-receipt {
  box-sizing: border-box;
  width: min(390px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 32px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 18px 60px rgba(31, 27, 24, .22);
  text-align: center;
}
#consult-receipt::backdrop { background: rgba(31, 27, 24, .55); }
.receipt-check {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e5eee8;
  color: var(--accent);
  font: 700 26px/1 var(--sans);
}
#receipt-title { margin: 12px 0 8px; font: 700 24px/1.4 var(--serif); }
#receipt-copy { margin: 0 0 22px; color: var(--sub); font-size: 15px; line-height: 1.65; }
#consult-receipt .btn { width: 100%; }
