/* ═══════════════════════════════════════════════════════
   Prime Match — Apply Page Styles
   DESIGN LOCK: 이 파일은 디자인 전용입니다.
   콘텐츠/기능 업데이트 시 절대 수정하지 마세요.
   Last updated: 2026-05
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #1A1A1A;
  --white:  #FAFAFA;
  --gold:   #C5A572;
  --text:   #333333;
  --muted:  #999999;
  --font-logotype: 'Cormorant Garamond', Georgia, serif;
  --font-heading:  'Cormorant Garamond', Georgia, serif;
  --font-sans:     'Montserrat', Arial, sans-serif;
  --font-kr:       'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
  --font-kr-sans:  'Nanum Myeongjo', 'Apple SD Gothic Neo', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--black);
  padding: 32px 24px 28px;
  text-align: center;
  animation: fadeIn .7s ease both;
}
.wordmark {
  font-family: var(--font-logotype);
  font-weight: 300;
  font-size: clamp(26px, 5.5vw, 42px);
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.tagline {
  font-family: var(--font-heading);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(13px, 2vw, 17px);
  letter-spacing: 0.06em;
  color: var(--gold);
  display: block;
}

/* ── DIVIDER ── */
.gold-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto;
}

/* ── INTRO SECTION ── */
.intro {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  text-align: center;
  animation: fadeUp .8s ease .1s both;
}
.intro-eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.intro-heading {
  font-family: var(--font-kr);
  font-weight: 400;
  font-size: clamp(20px, 3.5vw, 28px);
  letter-spacing: 0;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 10px;
}
.intro-heading-en {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(14px, 2vw, 18px);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--black);
  opacity: 0.60;
  margin-bottom: 24px;
}
.intro-body {
  font-family: var(--font-kr-sans);
  font-size: 15px;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 10px;
}
.intro-body-en {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── FORM ── */
.form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
  animation: fadeUp .9s ease .2s both;
}

.form-section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 48px 0 28px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid rgba(197, 165, 114, 0.40);
}

.field-group { margin-bottom: 24px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .field-row   { grid-template-columns: 1fr; }
  .field-row-3 { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 6px;
}
label .kr {
  font-family: var(--font-kr-sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  margin-left: 6px;
}
label .req { color: var(--gold); margin-left: 2px; }

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(197, 165, 114, 0.35);
  border-radius: 0;
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  transition: border-color .5s ease;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--gold); }
input::placeholder, textarea::placeholder {
  color: rgba(26, 26, 26, 0.30);
  font-weight: 300;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23C5A572'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 100px; border-bottom: 1px solid rgba(197, 165, 114, 0.35); }

.hint { font-size: 11px; color: var(--muted); margin-top: 5px; font-weight: 300; }

/* ── RADIO GROUPS ── */
.radio-group { display: flex; gap: 12px; }
.radio-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-bottom: 1px solid rgba(197, 165, 114, 0.35);
  border-radius: 0;
  padding: 10px 0;
  cursor: pointer;
  transition: all .5s ease;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.radio-label input[type="radio"] { display: none; }
.radio-label.selected,
.radio-label:has(input:checked) {
  border-bottom-color: var(--gold);
  color: var(--black);
}

/* ── CONDITIONAL FIELDS ── */
.conditional-field {
  display: none;
  margin-top: 20px;
  padding-left: 12px;
  border-left: 0.5px solid rgba(197, 165, 114, 0.40);
}
.conditional-field.visible {
  display: block;
  animation: fadeUp .3s ease both;
}

/* ── SUBMIT ── */
.submit-area { margin-top: 40px; text-align: center; }
.privacy-note {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-submit {
  display: inline-block;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 16px 48px;
  cursor: pointer;
  transition: all .5s ease;
}
.btn-submit:hover { background: var(--gold); color: var(--white); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* ── ALERTS ── */
.alert { padding: 16px 20px; border-radius: 2px; font-size: 14px; margin-top: 20px; display: none; }
.alert.success { background: #f4faf4; border: 1px solid #a8d4a8; color: #2a6a2a; }
.alert.error   { background: #fdf4f4; border: 1px solid #d4a8a8; color: #6a2a2a; }

/* ── THANK YOU ── */
#thank-you { display: none; text-align: center; padding: 80px 24px; animation: fadeUp .8s ease both; }
#thank-you .ty-icon { font-size: 40px; color: var(--gold); margin-bottom: 20px; }
#thank-you h2 { font-family: var(--font-kr); font-weight: 700; font-size: 24px; color: var(--black); margin-bottom: 8px; }
#thank-you h3 { font-family: var(--font-heading); font-weight: 400; font-style: italic; font-size: 18px; color: var(--muted); margin-bottom: 24px; }
#thank-you p { font-family: var(--font-kr-sans); font-size: 15px; color: var(--text); max-width: 480px; margin: 0 auto 10px; line-height: 1.8; }
#thank-you .en { font-family: var(--font-sans); font-weight: 300; font-size: 13px; color: var(--muted); }

/* ── FOOTER ── */
footer { background: var(--black); padding: 32px 24px; text-align: center; }
footer .f-wordmark { font-family: var(--font-logotype); font-weight: 300; font-size: 16px; letter-spacing: 0.18em; color: var(--white); text-transform: uppercase; display: block; margin-bottom: 6px; }
footer .f-url { font-family: var(--font-sans); font-weight: 300; font-size: 12px; color: var(--muted); text-decoration: none; }
footer .f-copy { font-family: var(--font-sans); font-weight: 300; font-size: 11px; color: #555; margin-top: 12px; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── FOCUS HIGHLIGHT ── */
.field-group:focus-within label { color: var(--gold); transition: color .5s ease; }

/* ── VALIDATION ── */
.error-text { color: #c0392b; font-size: 12px; margin-top: 4px; display: none; }
input.invalid, select.invalid, textarea.invalid { border-color: #c0392b; }
