@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --brand: #0552db;
  --brand-dark: #00327f;
  --ink: #162033;
  --muted: #687386;
  --line: #e3e9f2;
  --surface: #fff;
  --soft: #f4f7fc;
  --danger: #d94343;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--brand); }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background: var(--brand);
  isolation: isolate;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Keep the soft shading anchored to the viewport, even on long forms. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 60%, rgba(0, 31, 102, .65), transparent 75%);
}

button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100%, 800px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 20px max(24px, env(safe-area-inset-bottom));
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.brand { grid-row: 1; display: flex; justify-content: center; }
.brand[hidden] { display: none; }
.brand img { width: min(220px, 55vw); height: auto; display: block; }

.inquiry-card {
  grid-row: 2;
  align-self: center;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 24px 60px rgba(0, 24, 77, .28);
}

.inquiry-card.home-mode {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(100% - 40px);
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.home-panel {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-panel[hidden], .form-panel[hidden], .steps[hidden], .privacy-detail[hidden] { display: none; }
.home-logo { width: min(390px, 82vw); height: auto; display: block; margin-bottom: 28px; }
.home-panel .action-button {
  width: min(320px, 100%);
  min-height: 60px;
  flex: none;
  gap: 12px;
  color: #102b57;
  background: linear-gradient(135deg, #ffe66d, #ffc52f);
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(0, 20, 65, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.home-panel .action-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
@media (hover: hover) {
  .home-panel .action-button:hover {
    color: #102b57;
    background: linear-gradient(135deg, #ffe66d, #ffc52f);
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 20, 65, .32), inset 0 1px 0 rgba(255, 255, 255, .4);
  }
}
.home-panel .action-button:active {
  transform: translateY(0);
  filter: brightness(.98);
}
@media (prefers-reduced-motion: reduce) {
  .home-panel .action-button { transition: none; }
  .home-panel .action-button:hover { transform: none; }
}

.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(28px, 6vw, 42px); line-height: 1.2; letter-spacing: -.04em; }
.intro { margin: 12px 0 28px; color: var(--muted); line-height: 1.65; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 30px; }
.step-indicator { height: 5px; border-radius: 999px; background: #e5eaf2; transition: .25s; }
.step-indicator.active { background: var(--brand); }

.panel-title { margin: 0 0 18px; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.field { margin-bottom: 22px; }
.field-label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 750; }
.required { color: var(--brand); }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: #4d596b;
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}
.choice input:focus-visible + span { outline: 3px solid rgba(5,82,219,.25); outline-offset: 2px; }
.choice input:checked + span { color: var(--brand); border-color: var(--brand); background: #edf4ff; box-shadow: 0 0 0 1px var(--brand); }

.condition-input, .text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  outline: none;
  transition: .2s;
}
.condition-input { min-height: 150px; padding: 16px; resize: vertical; line-height: 1.55; }
.text-input { height: 52px; padding: 0 15px; }
.condition-input:focus, .text-input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(5,82,219,.1); }
.condition-input::placeholder, .text-input::placeholder { color: #9aa4b4; }

.notice { display: flex; gap: 8px; margin-top: 10px; color: #7b5b20; font-size: 12px; line-height: 1.5; }
.notice::before { content: "\24D8"; flex: 0 0 auto; font-weight: 800; }

.consent { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.consent-row { display: flex; align-items: flex-start; gap: 10px; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.consent-row label { flex: 1; font-size: 14px; font-weight: 650; }
.link-button { padding: 0; border: 0; color: var(--brand); background: none; font-size: 13px; font-weight: 700; cursor: pointer; }
.privacy-detail { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid #dce3ed; color: var(--muted); font-size: 12px; line-height: 1.65; }
.privacy-page-link { display: inline-block; margin-top: 8px; color: var(--brand); font-weight: 700; }

.actions { display: flex; gap: 10px; margin-top: 28px; }
.action-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button-primary-custom { flex: 1; color: #fff; background: var(--brand); box-shadow: 0 10px 22px rgba(5,82,219,.24); }
.button-primary-custom:hover { color: #fff; background: #064bc5; }
.button-primary-custom:disabled { opacity: .65; cursor: wait; }
.button-secondary-custom { color: #4d596b; background: #edf1f6; }

.form-error { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.form-error:empty { margin-top: 0; min-height: 0; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.complete-panel { padding: 20px 0 10px; text-align: center; }
.complete-icon { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 34px; font-weight: 800; }
.complete-panel h2 { margin: 0 0 10px; font-size: 27px; }
.complete-panel p { margin: 0; color: var(--muted); line-height: 1.65; }

.site-footer { grid-row: 3; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.65; text-align: center; }
.site-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-link { padding: 0; border: 0; color: #fff; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.privacy-modal { border: 0; border-radius: 20px; overflow: hidden; }
.privacy-modal .modal-header { align-items: flex-start; padding: 20px 22px; }
.privacy-modal .modal-title { font-size: 20px; font-weight: 800; }
.privacy-modal .effective-date { margin-top: 4px; color: var(--muted); font-size: 12px; }
.privacy-content { padding: 22px; color: #566176; font-size: 13px; line-height: 1.75; }
.privacy-content h3 { margin: 24px 0 6px; color: var(--ink); font-size: 15px; font-weight: 800; }
.privacy-content h3:first-of-type { margin-top: 12px; }
.privacy-content p, .privacy-content ul { margin-bottom: 10px; }
.privacy-modal .modal-footer { padding: 14px 22px; }
.privacy-modal .btn-primary { border-color: var(--brand); background: var(--brand); }

@media (max-width: 560px) {
  .page-shell { padding: 18px 14px max(18px, env(safe-area-inset-bottom)); gap: 16px; }
  .inquiry-card { border-radius: 22px; padding: 24px 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice span { min-height: 44px; }
}
