:root {
  --ink: #17231d;
  --muted: #66736c;
  --line: #eadde0;
  --soft: #fcf5f7;
  --green: #c51f42;
  --green-dark: #94142f;
  --green-light: #fde7ec;
  --red: #c5223f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: #f7eff1;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(197, 31, 66, 0.08), transparent 28rem),
    linear-gradient(180deg, #fdfafb 0, #f7eff1 100%);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100% - 32px, 780px);
  margin: 0 auto;
  padding: 48px 0 28px;
}

.form-card {
  overflow: hidden;
  border: 1px solid rgba(112, 25, 45, 0.11);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(92, 27, 43, 0.1);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 38px 28px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(135deg, #c51f42, #8f122d);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.form-header h1 {
  margin: 0;
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.form-header h1 span {
  display: block;
  margin-top: 3px;
  color: #ffd4dd;
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.step-nav {
  padding: 24px 38px;
  border-bottom: 1px solid var(--line);
  background: #fffafb;
}

.step-nav ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-nav li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #909b95;
  font-size: 13px;
  font-weight: 650;
}

.step-nav li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: calc(50% + 42px);
  width: calc(100% - 84px);
  height: 1px;
  background: #d5ded9;
  content: "";
}

.step-nav li.is-reached {
  color: var(--green-dark);
}

.step-nav li.is-reached:not(:last-child)::after {
  background: #dc8da0;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #cdd8d2;
  border-radius: 50%;
  background: var(--white);
  font-size: 12px;
}

.is-reached .step-number {
  border-color: var(--green);
  color: var(--white);
  background: var(--green);
}

.form-panel {
  padding: 34px 38px 40px;
  outline: none;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px 17px;
  border: 1px solid #efcbd4;
  border-radius: 10px;
  background: #fff5f7;
  color: #86142d;
  font-size: 13px;
}

.security-note p {
  margin: 1px 0 0;
  color: #587164;
  font-size: 12px;
}

.security-icon {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 23px;
  place-items: center;
  border-radius: 5px;
  color: var(--white);
  background: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.terms-note {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}

.reception-note {
  margin: 0 0 27px;
  padding: 15px 17px;
  border-left: 3px solid var(--green);
  background: #fffafb;
  color: #59635e;
  font-size: 12px;
}

.reception-note p {
  margin: 0;
}

.reception-note p + p {
  margin-top: 3px;
}

.reception-note strong,
.reception-note a {
  color: var(--green-dark);
  font-weight: 700;
}

.terms-note a {
  margin: 0 3px;
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
}

.instructions {
  display: grid;
  gap: 13px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.instructions li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  color: #435149;
  font-size: 13px;
}

.instructions li span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: var(--green-dark);
  background: var(--green-light);
  font-size: 12px;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) 1.3fr;
  border-top: 1px solid var(--line);
}

.field-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.field-label,
.field-control {
  padding: 22px 18px;
}

.field-label {
  align-self: stretch;
  color: #35443c;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.required-mark {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--red);
  background: #fae9ec;
  font-size: 10px;
  vertical-align: 1px;
}

.field-label-note {
  font-size: 11px;
  font-weight: 600;
}

.field-control input,
.field-control select {
  height: 43px;
  border: 1px solid #b8c5be;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-control input:focus,
.field-control select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(197, 31, 66, 0.12);
}

.field-control input.has-error,
.field-control select.has-error {
  border-color: var(--red);
}

.amount-select {
  width: min(100%, 330px);
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: var(--white);
}

.phone-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-inputs input {
  width: min(82px, 27%);
  padding: 0 8px;
  text-align: center;
}

.phone-inputs span {
  color: #89958f;
}

.field-hint {
  margin: -3px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.gift-input {
  width: min(100%, 330px);
  padding: 0 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-error {
  margin: 7px 0 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
}

.error-summary,
.submit-error {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid #efc5cd;
  border-radius: 7px;
  color: #9c1830;
  background: #fff5f6;
  font-size: 13px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 23px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 230px;
  border: 1px solid var(--green);
  color: var(--white);
  background: var(--green);
  box-shadow: 0 7px 18px rgba(197, 31, 66, 0.18);
}

.primary-button:hover:not(:disabled) {
  background: var(--green-dark);
  box-shadow: 0 9px 22px rgba(197, 31, 66, 0.24);
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid #becac3;
  color: #526159;
  background: var(--white);
}

.secondary-button:hover:not(:disabled) {
  border-color: #86978d;
  background: #f7faf8;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-kicker {
  color: var(--green);
}

.section-heading h2,
.complete-panel h2 {
  margin: 3px 0 7px;
  font-size: clamp(21px, 4vw, 26px);
}

.section-heading > p:last-child,
.complete-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.confirmation-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.confirmation-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) 1.3fr;
  border-bottom: 1px solid var(--line);
}

.confirmation-list dt,
.confirmation-list dd {
  margin: 0;
  padding: 21px 18px;
}

.confirmation-list dt {
  color: #435149;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

.confirmation-list dd {
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 650;
}

.confirmation-list .code-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.08em;
}

.submit-error {
  margin-top: 20px;
  margin-bottom: -6px;
}

.complete-panel {
  padding: 18px 10px 10px;
  text-align: center;
}

.complete-icon {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 17px;
  place-items: center;
  border: 1px solid #a9d7bd;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-light);
  font-size: 28px;
  font-weight: 800;
}

.complete-panel .complete-note {
  margin-top: 18px;
  font-size: 12px;
}

.phone-link {
  display: flex;
  flex-direction: column;
  width: min(100%, 360px);
  margin: 25px auto 21px;
  padding: 15px 20px;
  border: 1px solid #c9dfd2;
  border-radius: 10px;
  color: var(--green-dark);
  background: #f4faf6;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.phone-link span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 0 0;
  color: #708078;
  font-size: 11px;
}

.lock-icon {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #829087;
  font-size: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    padding: 0;
  }

  .form-card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-header {
    gap: 13px;
    padding: 23px 20px 21px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 25px;
  }

  .step-nav {
    padding: 18px 12px;
  }

  .step-nav li {
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    line-height: 1.2;
  }

  .step-nav li:not(:last-child)::after {
    top: 14px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
  }

  .form-panel {
    padding: 25px 18px 34px;
  }

  .terms-note,
  .instructions li,
  .security-note {
    font-size: 12px;
  }

  .field-row,
  .confirmation-list > div {
    display: block;
  }

  .field-label {
    display: block;
    padding: 12px 13px;
  }

  .field-control,
  .confirmation-list dd {
    padding: 16px 13px 19px;
  }

  .confirmation-list dt {
    padding: 12px 13px;
  }

  .phone-inputs {
    justify-content: space-between;
  }

  .phone-inputs input {
    width: 27%;
    min-width: 0;
    font-size: 16px;
  }

  .gift-input {
    max-width: none;
    font-size: 16px;
  }

  .amount-select {
    max-width: none;
    font-size: 16px;
  }

  .confirm-actions {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .site-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
