/* 볕이 드는 식탁의 미색·갈색·테라코타와 큰 입력 공간을 구성합니다. */
:root {
  color-scheme: light;
  --paper: #f8f3ea;
  --surface: #fffaf3;
  --ink: #342b25;
  --muted: #706156;
  --accent: #98472e;
  --line: #d9ccbc;
  --error: #a22f28;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: 4px; }
input, textarea, select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input:not([type=checkbox]):not([type=radio]), textarea, select { width: 100%; min-height: 54px; padding: 12px 15px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--error); }
button:disabled { opacity: 1; cursor: not-allowed; background: #e4d9cc; color: #5d5146; border-color: #c9b7a3; }
[hidden] { display: none !important; }
.visitor-shell { max-width: 640px; padding: 40px 36px 24px; margin: 36px auto; }
.visitor-header { position: relative; }
.eyebrow { font-size: 14px; letter-spacing: .025em; color: var(--accent); font-weight: 650; margin: 0 0 14px; }
.table-motif { display: block; width: 208px; height: 128px; margin: 16px 0 22px auto; }
h1 { font-size: 39px; letter-spacing: -.045em; line-height: 1.32; margin: 0 0 24px; font-weight: 740; }
h1[tabindex="-1"]:focus { outline: none; }
.intro { color: var(--muted); margin: 0 0 34px; max-width: 530px; }
.field { border: 0; padding: 0; margin: 0 0 25px; min-width: 0; }
.field > label, legend { display: block; font-weight: 650; margin-bottom: 9px; padding: 0; }
.optional { font-size: 14px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.help { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.field-error { color: var(--error); font-size: 15px; font-weight: 550; margin: 6px 0 0; }
.field-error:empty { display: none; }
.path-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.path-choice { position: relative; cursor: pointer; }
.path-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.path-choice span { border: 1px solid var(--line); border-radius: 28px; min-height: 52px; padding: 11px 10px; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface); font-size: 16px; }
.path-choice input:checked + span { border-color: var(--accent); background: #f3e2d6; color: #803d28; box-shadow: inset 0 0 0 1px var(--accent); font-weight: 650; }
.path-choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.visitor-shell:has(input[name=path][value=friend]:checked) #friend-field[hidden] { display: block !important; }
.consent-group { border-top: 1px solid var(--line); padding-top: 24px; margin: 34px 0 25px; }
.consent-item + .consent-item { margin-top: 22px; }
.check-label { display: flex; align-items: flex-start; gap: 11px; font-size: 17px; font-weight: 650; cursor: pointer; min-height: 44px; padding: 8px 0; }
.check-label input { width: 23px; height: 23px; flex: 0 0 23px; margin: 2px 0 0; }
.required-label { color: var(--accent); font-size: 14px; }
.consent-text { margin: 3px 0 0 34px; font-size: 17px; color: var(--muted); line-height: 1.75; }
.button { border: 1px solid var(--accent); border-radius: 12px; padding: 14px 22px; min-height: 56px; background: var(--accent); color: #fffaf3; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 16px; }
.submit-button { width: 100%; margin-top: 9px; justify-content: space-between; }
.submit-button span { font-size: 23px; }
footer { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 38px; text-align: center; font-size: 14px; color: var(--muted); }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks-shell { padding-top: 60px; min-height: 85vh; }
.welcome-mark { background: #f0ddcc; color: var(--accent); border-radius: 50%; width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; margin: 64px 0 25px; }
.thanks-body { font-size: 19px; line-height: 1.8; }
.thanks-common { color: var(--muted); margin: 28px 0; }
.service-card { background: #f1e7da; border-radius: 16px; padding: 20px 24px; margin-top: 28px; }
.service-card h2 { font-size: 18px; margin: 0 0 9px; }
.service-card p { margin: 4px 0; }
.home-link { margin: 6px 0 16px; }
.thanks-enter { animation: welcome-in 240ms ease-out; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .visitor-shell { padding: 27px 24px 22px; margin: 0 auto; }
  .eyebrow { font-size: 13px; }
  .table-motif { width: 158px; height: 98px; margin: 15px 0 18px auto; }
  h1 { font-size: 30px; line-height: 1.36; margin-bottom: 20px; }
  .intro { margin-bottom: 29px; }
  .thanks-shell { padding-top: 32px; }
  .welcome-mark { margin-top: 55px; }
  .path-choice span { font-size: 17px; padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { .thanks-enter { animation: none; } }
@media print { .print-button { display: none !important; } }
