:root {
  --honey: #a8681b;
  --honey-deep: #8a5416;
  --ink: #1c1b18;
  --muted: #6b6558;
  --surface: #fff;
  --sand: #fafaf7;
  --line: #e6e3dc;
  --error: #c0392b;
  --success: #2d6a4f;
  --radius: 6px;
}

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

html, body {
  min-height: 100%;
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(168, 104, 27, .35);
  outline-offset: 2px;
}

/* Shared V2 authentication and inquiry surface. */
.card {
  width: min(100% - 24px, 420px);
  margin: clamp(12px, 4vw, 32px) auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 12px 40px rgba(0, 0, 0, .06);
}

.card-header { padding: 28px 32px 24px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.logo-image { width: auto; height: clamp(36px, 8vw, 48px); object-fit: contain; }
.brand-name { color: #eba933; font-size: 15px; font-weight: 600; }
.brand-sub { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.card-header h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 3vw, 22px); font-weight: 400; line-height: 1.3; }
.card-header p { margin: 6px 0 0; color: #3a3b3e; font-size: 13px; }
.card-body { padding: 0 32px 10px; }
.card-footer { padding: 12px 32px; }
.footer { margin: 0; padding: 14px 16px; color: #555; font-size: 10px; text-align: center; }
.footer a { color: var(--muted); text-decoration: none; }

.step { display: none; }
.step.active { display: block; }
label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
input[type="email"], input[type="text"], input[type="password"] { width: 100%; min-height: 44px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--sand); color: var(--ink); font: inherit; font-size: 15px; }
input:focus { border-color: var(--honey); outline: none; box-shadow: 0 0 0 3px rgba(168, 104, 27, .15); background: var(--surface); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 20px; padding: 12px 20px; border: 0; border-radius: var(--radius); background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn:hover:not(:disabled) { background: #2c2c22; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.msg { margin: 8px 0; color: var(--error); font-size: 12px; text-align: center; }
.msg:empty { margin: 0; }
.resend-row, .back-link { margin-top: 16px; color: var(--muted); font-size: 13px; text-align: center; }
.resend-row button, .back-link button { padding: 4px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }

.inquiry-page { padding: 0 32px 24px; }
.inquiry-page h2 { margin: 0 0 8px; font-size: 18px; }
.inquiry-page p { color: var(--muted); font-size: 14px; }
.inquiry-note { margin: 20px 0; padding: 14px 16px; border: 1px solid #e0c97a; border-radius: var(--radius); background: #fffbf0; color: var(--muted); font-size: 12px; }
.inquiry-success { display: none; padding: 18px 0; text-align: center; }
.inquiry-success.is-visible { display: block; }
.check-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: #d4edda; color: var(--success); font-size: 24px; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 14px; text-decoration: none; }

@media (max-width: 480px) {
  .card-header, .card-body, .card-footer, .inquiry-page { padding-left: 20px; padding-right: 20px; }
}