* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", sans-serif; background: #fffaf3; color: #333; line-height: 1.5; }

/* 키보드 포커스 표시 — 진한 흙색 링 */
:focus-visible { outline: 3px solid #6b4f2c; outline-offset: 2px; }
.card:focus { outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: #6b4f2c; color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 8px 20px; }
.logo { height: 28px; }
.icons { display: flex; gap: 6px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #f1e4d3; color: #6b4f2c; }
.icon-btn:hover { background: #e9d6bd; }

.hero { text-align: center; padding: 10px 20px 24px; }
.hero-img { width: 100%; max-width: 520px; height: auto; border-radius: 12px; }
.title { font-size: 26px; font-weight: 700; margin: 14px 0 0; }
.sub { color: #7a6a58; font-size: 15px; margin: 6px 0 0; }

.card { max-width: 420px; margin: 0 auto; background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.required-guide { font-size: 13px; color: #6f6253; margin: 0 0 12px; }

.field { margin-bottom: 12px; }
label { display: block; font-size: 14px; font-weight: 600; color: #4a3a2a; margin-bottom: 4px; }
.req { color: #c0392b; }
input, select { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #9a8672; border-radius: 8px; font-size: 16px; font-family: inherit; background: #fff; color: #333; }
input::placeholder { color: #7a6a58; }
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: #6b4f2c; }
input.err, select.err { border: 2px solid #c0392b; }
.field-hint { font-size: 13px; color: #6f6253; margin: 4px 0 0; }
.field-err { font-size: 13px; color: #c0392b; font-weight: 600; margin: 4px 0 0; }
.field-err:empty { display: none; }
.field-err:not(:empty)::before { content: "⚠ "; }

.error-summary { border: 2px solid #c0392b; border-radius: 10px; background: #fdf1ef; color: #8f2a20; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.error-summary p { margin: 0 0 4px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: #8f2a20; }

/* 문자 알림 스위치 — 실제 체크박스를 시각적으로만 숨기고 스위치 모양을 덧입힘 */
.toggle-row { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 4px 0 14px; font-weight: 400; cursor: pointer; }
.toggle-input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.toggle { flex: none; width: 44px; height: 24px; border-radius: 12px; background: #9a8672; position: relative; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle-input:checked + .toggle { background: #b85a1e; }
.toggle-input:checked + .toggle span { left: 23px; }
.toggle-input:focus-visible + .toggle { outline: 3px solid #6b4f2c; outline-offset: 2px; }
.hint { font-size: 14px; color: #6f6253; }

.btn { display: block; width: 100%; border: 0; background: #f4a261; color: #3d2a16; text-align: center; padding: 13px; min-height: 48px; border-radius: 10px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn:hover { background: #ee9348; }

.note { font-size: 13px; color: #6f6253; }
#msg { color: #1f7a6f; font-weight: 700; margin: 0; }
#msg:empty { display: none; }
.foot { text-align: center; font-size: 13px; color: #7a6a58; padding: 30px 16px; }

@media (prefers-reduced-motion: reduce) {
  .toggle span { transition: none; }
}
