.deposit-body [hidden] {
  display: none !important;
}

.deposit-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(225, 78, 69, 0.2), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(120, 145, 118, 0.22), transparent 34%),
    linear-gradient(180deg, #101812 0, #1b2a22 30%, #f8f2ea 64%, #edf5ee 100%);
}

.deposit-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 120px;
}

.deposit-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  min-height: 390px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(255, 250, 243, 0.18);
  background: rgba(255, 250, 243, 0.06);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.2);
}

.deposit-hero h1 {
  max-width: 820px;
  margin: 14px 0 20px;
  color: var(--ivory);
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
}

.deposit-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 243, 0.76);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.deposit-safety {
  padding: 28px;
  border: 1px solid rgba(255, 250, 243, 0.2);
  background: rgba(255, 250, 243, 0.1);
}

.deposit-safety strong {
  color: var(--ivory);
  font-size: 23px;
}

.deposit-safety p {
  margin: 12px 0 0;
  color: rgba(255, 250, 243, 0.7);
  line-height: 1.75;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(255, 250, 243, 0.18);
}

.order-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 22px 24px;
  color: rgba(255, 250, 243, 0.74);
  background: #263f34;
}

.order-steps li.active {
  background: #a95035;
}

.order-steps span {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 250, 243, 0.35);
  border-radius: 50%;
  color: var(--ivory);
  font-weight: 900;
}

.order-steps strong {
  color: var(--ivory);
  font-size: 16px;
}

.order-steps small {
  font-size: 12px;
}

.selected-style {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(21, 33, 27, 0.14);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 22px 60px rgba(30, 43, 34, 0.12);
}

.selected-style-preview {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #f4eee4;
}

.selected-style-preview:focus-visible,
.selected-style-actions .btn:focus-visible {
  outline: 3px solid rgba(225, 78, 69, 0.38);
  outline-offset: 3px;
}

.selected-style-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
}

.selected-style-copy {
  min-width: 0;
}

.selected-style-copy h2 {
  margin: 8px 0 10px;
  color: var(--moss);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.selected-style-copy > p:not(.section-kicker):not(.selected-style-status) {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.selected-style-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.selected-style-actions .btn {
  min-height: 44px;
}

.selected-style-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: #2f7650;
  font-size: 14px;
  font-weight: 800;
}

.interim-intake {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin-top: 54px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 80px rgba(30, 43, 34, 0.12);
}

.interim-intake h2 {
  margin: 8px 0 14px;
  color: var(--moss);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.interim-intake-copy > p:last-of-type,
.interim-intake-copy li,
.interim-intake-action p,
.interim-intake-action small {
  color: var(--muted);
  line-height: 1.75;
}

.interim-intake-copy ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 22px;
}

.interim-intake-action {
  display: grid;
  gap: 14px;
  padding: 28px;
  border-left: 4px solid var(--clay);
  background: #f4e9df;
}

.interim-intake-action strong {
  color: var(--moss);
  font-size: 23px;
}

.interim-intake-action p,
.interim-intake-action small {
  margin: 0;
}

.interim-intake-action .btn {
  width: 100%;
  text-align: center;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  margin-top: 54px;
}

.order-form,
.order-aside,
.order-result {
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.96);
  box-shadow: 0 28px 80px rgba(30, 43, 34, 0.12);
}

.order-form {
  padding: clamp(24px, 5vw, 52px);
}

.form-heading h2,
.order-aside h2,
.result-heading h2 {
  margin: 8px 0 12px;
  color: var(--moss);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.form-heading > p:last-child,
.order-aside > p,
.result-message {
  color: var(--muted);
  line-height: 1.75;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field > span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field b {
  color: var(--hot);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(21, 33, 27, 0.18);
  border-radius: 6px;
  color: var(--ink);
  background: #fffdf9;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(185, 119, 98, 0.12);
}

.field small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-subheading {
  margin-top: 10px;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(21, 33, 27, 0.14);
}

.form-subheading h3 {
  margin: 6px 0 8px;
  color: var(--moss);
  font-size: clamp(23px, 3vw, 32px);
}

.form-subheading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 26px;
  color: #3d4b43;
  line-height: 1.7;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--hot);
}

.consent-row a {
  color: var(--moss);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.form-actions button,
.result-actions button {
  cursor: pointer;
}

.form-actions button:disabled,
.result-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-message,
.result-message {
  min-height: 26px;
  margin: 16px 0 0;
  font-weight: 700;
}

.form-message.error,
.result-message.error {
  color: #a42e2a;
}

.form-message.success,
.result-message.success {
  color: #25613f;
}

.order-aside {
  position: sticky;
  top: 104px;
  padding: 30px;
}

.order-aside ul {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding-left: 22px;
  color: #3d4b43;
  line-height: 1.65;
}

.aside-note {
  padding: 20px;
  border-left: 4px solid var(--clay);
  background: #f4e9df;
}

.aside-note strong {
  color: var(--moss);
}

.aside-note p {
  margin: 8px 0 0;
  color: #556159;
  font-size: 14px;
  line-height: 1.75;
}

.order-result {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 48px);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  background: var(--line);
}

.hosted-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(35, 75, 58, 0.2);
  background: #eef5ef;
}

.hosted-payment h3 {
  margin: 8px 0 12px;
  color: var(--moss);
  font-size: clamp(25px, 3vw, 36px);
}

.hosted-payment > div > p:last-of-type {
  color: var(--muted);
  line-height: 1.75;
}

.hosted-checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  text-align: center;
}

.result-grid div {
  min-width: 0;
  padding: 20px;
  background: #fffdf9;
}

.result-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.result-grid dd {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 900;
}

.manual-payment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 28px;
  margin-top: 28px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(35, 75, 58, 0.2);
  background: #eef5ef;
}

.manual-payment-copy h3,
.payment-claim-form h3 {
  margin: 8px 0 12px;
  color: var(--moss);
  font-size: clamp(25px, 3vw, 36px);
}

.manual-payment-copy > p,
.payment-claim-form .form-heading > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.payment-summary {
  display: grid;
  gap: 1px;
  margin: 22px 0 0;
  background: rgba(35, 75, 58, 0.16);
}

.payment-summary div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 13px 16px;
  background: #fffdf9;
}

.payment-summary dt {
  color: var(--muted);
  font-size: 13px;
}

.payment-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.payment-code {
  margin: 0;
  padding: 16px;
  align-self: start;
  border: 1px solid var(--line);
  background: white;
}

.payment-code img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.payment-code figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.payment-claim-form {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(35, 75, 58, 0.18);
}

.payment-claim-form > .btn {
  margin-top: 20px;
}

.claim-state {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--clay);
  color: #4d3f32;
  background: #fff1e5;
  line-height: 1.7;
}

.claim-state.success {
  border-left-color: #2f7650;
  color: #1f5b3a;
  background: #dff2e6;
}

@media (max-width: 900px) {
  .deposit-hero,
  .interim-intake,
  .order-layout,
  .manual-payment,
  .hosted-payment {
    grid-template-columns: 1fr;
  }

  .selected-style {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .deposit-hero {
    min-height: auto;
  }

  .order-aside {
    position: static;
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-code {
    width: min(100%, 360px);
    justify-self: center;
  }

  .hosted-checkout-link {
    width: min(100%, 360px);
    justify-self: center;
  }

  .payment-claim-form {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .deposit-body {
    padding-bottom: 96px;
  }

  .deposit-page {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .deposit-hero,
  .selected-style,
  .interim-intake,
  .order-form,
  .order-aside,
  .order-result {
    padding: 22px 18px;
  }

  .selected-style {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }

  .selected-style-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .selected-style-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .order-steps {
    grid-template-columns: 1fr;
  }

  .order-steps li {
    padding: 16px 18px;
  }

  .form-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .form-actions .btn,
  .result-actions .btn {
    width: 100%;
  }

  .deposit-body .mobile-sticky {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
