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

/* 키보드 포커스 표시 (마우스 클릭 시에는 표시하지 않음) */
:focus { outline: none; }
:focus-visible { outline: 3px solid #6b4f2c; outline-offset: 3px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: #6b4f2c; }

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

.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.logo { height: 28px; }
.icons { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #f1e4d3; color: #6b4f2c; }
.icon-btn svg { width: 18px; height: 18px; }
.hero { text-align: center; padding: 10px 20px 24px; }
.hero-img { width: 100%; max-width: 520px; border-radius: 12px; }
.title { font-size: 26px; font-weight: 700; margin: 14px 0 0; }
.sub { color: #7a6652; 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:focus { outline: none; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.req-guide { font-size: 13px; color: #6e6259; margin: 0 0 14px; }

.field { margin-bottom: 12px; }
label { display: block; font-size: 14px; font-weight: 600; color: #4a3a2a; margin-bottom: 6px; }
.req { color: #c62828; }
input, select { display: block; width: 100%; padding: 11px 12px; border: 1px solid #9a8b7c; border-radius: 8px; font-size: 16px; background: #fff; color: #333; font-family: inherit; }
input::placeholder { color: #6e6259; }
input.err, select.err { border: 2px solid #c62828; padding: 10px 11px; }
.field-hint { font-size: 13px; color: #6e6259; margin: 4px 0 0; }
.err-msg { font-size: 13px; font-weight: 600; color: #c62828; margin: 4px 0 0; }
.err-msg:empty { display: none; }
.err-msg::before { content: "⚠ "; }

/* 알림 토글: 실제 체크박스를 스위치 모양으로 */
.toggle-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 16px; }
.toggle { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 24px; margin: 0; padding: 0; border: 1px solid #8f8378; border-radius: 12px; background: #e8e1d9; position: relative; cursor: pointer; }
.toggle::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px #8f8378; transition: left .15s; }
.toggle:checked { background: #b35a1f; border-color: #b35a1f; }
.toggle:checked::before { left: 22px; box-shadow: none; }
.toggle:focus-visible { outline-offset: 2px; }
.hint { display: inline; font-size: 14px; font-weight: 400; color: #4a3a2a; margin: 0; cursor: pointer; }

.btn { display: block; width: 100%; border: 0; background: #b35a1f; color: #fff; text-align: center; padding: 14px; border-radius: 10px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; }
.btn:hover { background: #9a4d1a; }
.note { font-size: 13px; color: #6e6259; }
#msg { color: #1f7a6f; font-weight: 700; margin-bottom: 0; }
#msg:empty { display: none; }
.foot { text-align: center; font-size: 13px; color: #7a6652; padding: 30px 0; }

@media (prefers-reduced-motion: reduce) {
  .toggle::before { transition: none; }
}
@media (forced-colors: active) {
  .toggle:checked::before { background: CanvasText; }
}
