/* Design tokens — Figma draft */
:root {
  --color-bg: #0f0e17;
  --color-header: rgba(20, 18, 31, 0.8);
  --color-card: #1a1926;
  --color-input: #242633;
  --color-gold: #d4af37;
  --color-gold-dim: rgba(212, 175, 55, 0.35);
  --color-gold-muted: rgba(212, 175, 55, 0.25);
  --color-text: #f5f0e8;
  --color-text-muted: #a8a29e;
  --color-text-placeholder: rgba(245, 240, 232, 0.35);
  --color-error: #e57373;
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
fieldset {
  font: inherit;
  border: none;
  background: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 80px;
  background: var(--color-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--color-text);
}

/* Main */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 64px;
}

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.hero__accent {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Form card */
.form-card {
  width: 100%;
  max-width: 520px;
  background: var(--color-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.form-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--gender {
  border: none;
}

.field__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.field__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--color-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder {
  color: var(--color-text-placeholder);
}

.field__input:focus {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0 0 3px var(--color-gold-muted);
}

.field__input--date,
.field__input--time {
  color-scheme: dark;
}

.field__input--date::-webkit-calendar-picker-indicator,
.field__input--time::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.field__input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field__time-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.field__time-row .field__input {
  flex: 1;
}

.field__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

.field__error {
  font-size: 0.75rem;
  color: var(--color-error);
  min-height: 1em;
}

.field__error:empty {
  display: none;
}

.field--invalid .field__input,
.field--invalid .gender-option__btn {
  border-color: rgba(229, 115, 115, 0.6);
}

/* Checkbox */
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox__box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-text-muted);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox input:checked + .checkbox__box {
  background: var(--color-gold-dim);
  border-color: var(--color-gold);
}

.checkbox input:checked + .checkbox__box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid var(--color-gold);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox__label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Gender */
.gender-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gender-option {
  cursor: pointer;
}

.gender-option__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gender-option__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: var(--color-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.gender-option__input:checked + .gender-option__btn {
  background: var(--color-gold-dim);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--color-text);
}

.gender-option__input:focus-visible + .gender-option__btn {
  box-shadow: 0 0 0 3px var(--color-gold-muted);
}

/* Submit */
.btn-submit {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: var(--color-gold);
  color: #1a1408;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.btn-submit:hover {
  filter: brightness(1.08);
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.submit-status {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text-muted);
}

.submit-status--error {
  color: var(--color-error);
}

.page[hidden] {
  display: none !important;
}

.nav__link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.footer-note {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 0 24px;
  }

  .nav {
    gap: 16px;
  }

  .nav__link:nth-child(3) {
    display: none;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .form-card {
    padding: 32px 24px;
  }

  .field__time-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .nav__link:nth-child(2) {
    display: none;
  }
}
