/* 홈페이지 신청폼 (진단평가·입시교실·설명회) — 2026-11-04 원장 '디자인 업그레이드·반응형'
   홈페이지 겨울학기 판 색(#1A1A1A·#FF6700·#B84A00·#FFF4EC)에 맞춤. 휴대폰 1열, 900px 이상 왼쪽 안내(따라옴)·오른쪽 폼. */
:root {
  --bg: #f4f3f1; --card: #ffffff; --text: #1a1a1a; --muted: #5c5c5c; --line: #e3e1dd; --line2: #c9c9c9;
  --orange: #ff6700; --on-orange: #ffffff; --orange-text: #b84a00; --soft: #fff4ec; --soft-line: #f3c7a6;
  --ink: #1a1a1a; --on-ink: #ffffff; --on-ink-muted: #c9c9c9;
  --err: #b42318; --err-bg: #fdecea; --ok: #067647; --ok-bg: #ecfdf3; --ring: rgba(255, 103, 0, .18);
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 24px rgba(26, 26, 26, .06);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
.af-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 56px; }
.af-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.af-head img { height: 28px; display: block; }
.af-head a { color: var(--muted); font-size: 14px; text-decoration: none; padding: 8px 0; }
.af-head a:hover { color: var(--orange-text); }

.af-grid { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .af-wrap { padding: 0 32px 72px; }
  .af-grid { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .af-hero { position: sticky; top: 20px; }
}

/* 왼쪽(휴대폰은 위) 행사 안내 카드 */
.af-hero { background: var(--ink); color: var(--on-ink); border-radius: 20px; overflow: hidden; }
.af-hero .af-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: #333; }
@media (min-width: 900px) { .af-hero .af-photo { aspect-ratio: 16 / 10; } }
.af-hero-in { padding: 22px 20px 20px; }
.af-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--orange); border-radius: 999px; padding: 3px 11px; margin-bottom: 10px; }
.af-hero h1 { font-size: 26px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.02em; }
.af-hero .af-lead { margin: 0; color: var(--on-ink-muted); font-size: 15px; }
.af-info { margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.af-info > div { display: grid; grid-template-columns: 52px 1fr; gap: 10px; font-size: 15px; }
.af-info dt { color: var(--orange); font-weight: 700; font-size: 13px; padding-top: 2px; }
.af-info dd { margin: 0; }
.af-info dd small { display: block; color: var(--on-ink-muted); font-size: 13px; }
.af-perk { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 103, 0, .14); border: 1px solid rgba(255, 103, 0, .45); font-size: 14px; }
.af-perk b { color: var(--orange); }
.af-hero .af-call { margin: 16px 0 0; font-size: 13px; color: var(--on-ink-muted); }
.af-hero .af-call a { color: var(--on-ink); }
@media (min-width: 900px) { .af-hero h1 { font-size: 30px; } .af-hero-in { padding: 26px 26px 24px; } }

/* 오른쪽 폼 */
form.af { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px 18px 20px; box-shadow: var(--shadow); }
@media (min-width: 900px) { form.af { padding: 10px 32px 30px; } }
.af-sec { padding: 18px 0 6px; border-top: 1px solid var(--line); }
.af-sec:first-of-type { border-top: 0; }
.af-sec > h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; letter-spacing: -0.01em; }
.af-sec > h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.af-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--orange-text); font-size: 14px; font-weight: 800; border: 1px solid var(--soft-line); }
.af-f { display: block; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.af-f small, .af-legend small { font-weight: 400; color: var(--muted); }
.af-req { color: var(--orange-text); margin-left: 2px; }
.af input[type=text], .af input[type=tel], .af select, .af textarea { width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
.af input::placeholder, .af textarea::placeholder { color: #8a8a8a; }
.af textarea { min-height: 88px; resize: vertical; }
.af input:focus, .af select:focus, .af textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--ring); }
.af-note { margin: -2px 0 14px; padding: 11px 13px; border-radius: 12px; background: var(--soft); color: var(--text); font-size: 14px; border: 1px solid var(--soft-line); }
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.af-lvl > label { display: block; }
.af-lvl input[type=text] { margin-top: 8px; }
.as-auto { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.as-auto p { margin: 4px 0 8px; font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .af-row { grid-template-columns: 1fr; gap: 0; } }
fieldset.af-set { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.af-legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
.af-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.af-chip { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 50px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; line-height: 1.35; transition: border-color .15s, background .15s; }
.af-chip:hover { border-color: var(--orange); }
.af-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.af-chip::after { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); }
.af-chip:has(input[type=checkbox])::after { border-radius: 5px; }
.af-chip:has(input:checked) { border-color: var(--orange); background: var(--soft); color: var(--orange-text); font-weight: 700; box-shadow: 0 0 0 3px var(--ring); }
.af-chip:has(input:checked)::after { border-color: var(--orange); background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.af-chip:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.af-chip.off { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.af-chip.off:hover { border-color: var(--line2); }
.af-chips.wide { grid-template-columns: 1fr; }
.af-day { margin-bottom: 12px; }
.af-day b { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.af-left { font-size: 12px; color: var(--orange-text); font-weight: 700; margin-left: auto; }
.af-chip.off .af-left { color: var(--muted); }
.af-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0; padding: 8px 0; cursor: pointer; }
.af-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--orange); flex: none; }
.af-check small { color: var(--muted); }
.af-consent { background: var(--bg); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--muted); margin: 8px 0 16px; line-height: 1.55; }
.af-consent .af-check { color: var(--text); font-weight: 700; margin-top: 8px; padding-bottom: 0; }
.af button[type=submit] { width: 100%; border: 0; border-radius: 14px; background: var(--orange); color: var(--on-orange); font: 800 17px "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; padding: 15px; cursor: pointer; min-height: 54px; box-shadow: 0 6px 16px rgba(255, 103, 0, .28); transition: transform .1s, background .15s; }
.af button[type=submit]:hover { background: #f05f00; }
.af button[type=submit]:active { transform: translateY(1px); }
.af-err { background: var(--err-bg); color: var(--err); border-radius: 12px; padding: 12px 14px; margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.af-closed { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 20px; text-align: center; color: var(--muted); box-shadow: var(--shadow); }

/* 접수 화면 */
.af-done { max-width: 560px; margin: 8px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 20px 24px; text-align: center; box-shadow: var(--shadow); }
.af-done .af-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--soft); border: 1px solid var(--soft-line); }
.af-done .af-ok svg { width: 32px; height: 32px; }
.af-done h1 { font-size: 23px; line-height: 1.35; margin: 14px 0 6px; letter-spacing: -0.02em; }
.af-done p { color: var(--muted); margin: 4px 0; }
.af-done .af-who { color: var(--text); font-weight: 700; }
.af-done .af-box { text-align: left; background: var(--bg); border-radius: 14px; padding: 16px; margin: 18px 0 4px; white-space: pre-line; font-size: 15px; }
@media (min-width: 900px) { .af-done { padding: 40px 36px 30px; } }
.af-btn { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--orange); color: var(--on-orange); font-weight: 700; text-decoration: none; border-radius: 12px; padding: 12px; margin-top: 12px; min-height: 48px; }
.af-btn.ghost { background: transparent; color: var(--orange-text); border: 1px solid var(--soft-line); }
.af-btn.kakao { background: #fee500; color: #191600; }
.hp { position: absolute; left: -9999px; }
.af-gap { margin-top: 12px; }

/* 직원 화면 */
.as-wrap { max-width: 1200px; margin: 0 auto; padding: 16px; }
.as-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.as-table th, .as-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.as-table th { background: var(--bg); font-weight: 700; color: var(--muted); }
.as-st { display: inline-block; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--orange-text); }
.as-st.confirmed { background: var(--ok-bg); color: var(--ok); }
.as-st.canceled { background: var(--bg); color: var(--muted); }
.as-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.as-act button, .as-cfg button { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; cursor: pointer; min-height: 36px; }
.as-act input[type=text] { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); min-width: 140px; }
.as-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; font-size: 13px; }
.as-slots span { border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; background: var(--card); }
.as-slots span.full { color: var(--err); border-color: var(--err); }
.as-cfg { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 24px; }
.as-cfg form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.as-cfg label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.as-cfg input[type=text], .as-cfg input[type=number], .as-cfg textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); margin-top: 4px; }
.as-links { display: flex; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; font-size: 14px; }
@media (max-width: 760px) {
  .as-table thead { display: none; }
  .as-table, .as-table tbody, .as-table tr, .as-table td { display: block; width: 100%; }
  .as-table tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .as-table td { border: 0; padding: 3px 10px; }
}

/* 안내 카드 아래 지난 설명회 사진 3장 (원장 11/04) */
.af-gal { margin: 18px 0 0; }
.af-gal figcaption { font-size: 12px; font-weight: 700; color: var(--on-ink-muted); margin-bottom: 8px; }
.af-gal > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.af-gal img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #333; }

/* 일요일반 강조 (원장 11-06: 일요일 신청이 적어 화요일보다 앞에·눈에 띄게) */
.af-sun-band { display: block; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: var(--orange); color: var(--on-orange); text-decoration: none; box-shadow: 0 6px 16px rgba(255, 103, 0, .22); }
.af-sun-band b { display: block; font-size: 17px; }
.af-sun-band span { display: block; font-size: 14px; margin-top: 2px; }
.af-sun-band::after { content: "아래에서 바로 고르기 ↓"; display: block; font-size: 13px; font-weight: 700; margin-top: 6px; text-decoration: underline; }
fieldset.af-set.af-sun { border: 2px solid var(--orange); background: var(--soft); border-radius: 16px; padding: 14px; margin-bottom: 20px; scroll-margin-top: 16px; }
.af-sun .af-legend { font-size: 17px; font-weight: 800; color: var(--orange-text); display: flex; align-items: center; gap: 8px; float: left; width: 100%; }
.af-sun .af-legend + * { clear: both; }
.af-sun-tag { background: var(--orange); color: var(--on-orange); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 3px 9px; }
.af-sun-p { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.af-info-sun dt { color: var(--on-orange) !important; background: var(--orange); border-radius: 6px; text-align: center; padding: 2px 0 !important; align-self: start; }

.af-hot { border-left: 6px solid var(--accent, #ff6700); padding: 16px 18px; margin-bottom: 14px; text-align: left; color: var(--ink, #111); }
.af-hot p { margin: 0; line-height: 1.6; }
