:root {
  --registration-green: #16803d;
  --registration-deep: #102119;
  --registration-mint: #eaf7ef;
  --registration-line: #dce6df;
  --registration-muted: #66736b;
}

.customer-registration-shell {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(38px, 7vw, 76px) 0 70px;
}
.customer-registration-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.customer-registration-head.compact { margin-bottom: 24px; }
.customer-registration-head h1 {
  margin: 10px 0 13px;
  color: var(--registration-deep);
  font-size: clamp(38px, 7vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
}
.customer-registration-head.compact h1 { font-size: clamp(36px, 6vw, 58px); }
.customer-registration-head p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--registration-muted);
  font-size: clamp(16px, 2.5vw, 19px);
  line-height: 1.55;
}

.registration-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.registration-choice-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 330px;
  align-content: start;
  padding: clamp(23px, 4vw, 34px);
  overflow: hidden;
  border: 1px solid var(--registration-line);
  border-radius: 26px;
  background: #fff;
  color: var(--registration-deep);
  text-decoration: none;
  box-shadow: 0 18px 46px #1021190d;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.registration-choice-card::after {
  position: absolute;
  right: -56px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--registration-mint);
  content: "";
}
.registration-choice-card.corporate::after { background: #edf0f4; }
.registration-choice-card:hover,
.registration-choice-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--registration-green);
  box-shadow: 0 22px 55px #1021191c;
  outline: none;
}
.registration-choice-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 15px;
  background: var(--registration-deep);
  color: #fff;
  font-weight: 950;
}
.registration-choice-card.private .registration-choice-mark { background: var(--registration-green); }
.registration-choice-card > small { color: var(--registration-green); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.registration-choice-card h2 { margin: 7px 0 10px; font-size: clamp(27px, 4vw, 36px); letter-spacing: -.035em; }
.registration-choice-card p { max-width: 370px; margin: 0 0 28px; color: var(--registration-muted); line-height: 1.55; }
.registration-choice-card > strong { z-index: 1; align-self: end; margin-top: auto; font-size: 15px; }
.registration-choice-card > strong span { color: var(--registration-green); font-size: 20px; }
.registration-login-link { margin: 24px 0 0; color: var(--registration-muted); text-align: center; }
.registration-login-link a { color: var(--registration-green); font-weight: 850; }

.registration-back {
  display: inline-flex;
  margin: 0 0 24px;
  color: var(--registration-muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.registration-back:hover { color: var(--registration-green); }
.customer-registration-card {
  display: grid;
  gap: 0;
  padding: clamp(20px, 4vw, 38px);
  border: 1px solid var(--registration-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 50px #10211912;
}
.customer-registration-card fieldset { min-width: 0; margin: 0; padding: 25px 0; border: 0; border-bottom: 1px solid var(--registration-line); }
.customer-registration-card fieldset:first-of-type { padding-top: 0; }
.customer-registration-card legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 17px;
  padding: 0;
  color: var(--registration-deep);
  font-size: 18px;
  font-weight: 900;
}
.customer-registration-card legend span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--registration-mint);
  color: var(--registration-green);
  font-size: 13px;
}
.registration-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; min-width: 0; }
.registration-field-grid + .registration-field-grid { margin-top: 15px; }
.registration-field-grid.single { grid-template-columns: 1fr; }
.registration-field-grid label { display: grid; min-width: 0; gap: 7px; color: var(--registration-deep); font-size: 13px; line-height: 1.4; }
.registration-field-grid label.span-two { grid-column: 1 / -1; }
.registration-field-grid input,
.registration-field-grid select,
.registration-field-grid textarea {
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 12px 13px;
  border: 1px solid #cbd7cf;
  border-radius: 13px;
  background: #fbfdfb;
  color: #111827;
  font: inherit;
  outline: none;
}
.registration-field-grid input[type="file"] { min-height: 58px; padding: 9px; background: #f6faf7; }
.registration-field-grid input:focus,
.registration-field-grid select:focus,
.registration-field-grid textarea:focus { border-color: var(--registration-green); box-shadow: 0 0 0 4px #16803d18; }
.registration-field-grid small,
.registration-password-help { color: var(--registration-muted); font-size: 12px; line-height: 1.45; }
.registration-password-help { margin-top: 13px; padding: 11px 13px; border-radius: 12px; background: #f6f8f7; }
.registration-password-help ul { margin: 0; padding-left: 19px; }
.registration-field-grid .errorlist,
.registration-form-errors .errorlist {
  margin: 0;
  padding: 8px 11px;
  border-radius: 10px;
  background: #fff1f2;
  color: #b42318;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
}
.registration-form-errors { margin-bottom: 18px; }
.registration-review-note { display: grid; gap: 3px; margin-top: 16px; padding: 14px 15px; border: 1px solid #b9e3c7; border-radius: 14px; background: var(--registration-mint); }
.registration-review-note b { color: var(--registration-green); }
.registration-review-note span { color: #42534a; font-size: 13px; line-height: 1.45; }
.registration-submit { min-height: 54px; margin-top: 26px; font-size: 16px; }
.registration-privacy-note { margin: 13px 0 0; color: var(--registration-muted); font-size: 12px; line-height: 1.45; text-align: center; }

@media (max-width: 680px) {
  .customer-registration-shell { width: min(100% - 20px, 560px); padding-top: 28px; }
  .registration-choice-grid,
  .registration-field-grid { grid-template-columns: 1fr; }
  .registration-choice-card { min-height: 275px; border-radius: 21px; }
  .registration-field-grid label.span-two { grid-column: auto; }
  .customer-registration-card { padding: 19px 15px; border-radius: 21px; }
  .customer-registration-card fieldset { padding: 22px 0; }
  .customer-registration-head h1,
  .customer-registration-head.compact h1 { font-size: clamp(35px, 11vw, 48px); }
}

/* V038: address choices stay in the form flow and work with touch/keyboard. */
.customer-registration-card .registration-address-verification { grid-column: 1 / -1; display: grid; gap: 8px; padding: 12px; border: 1px solid var(--registration-line); border-radius: 14px; background: #f6faf7; }
.customer-registration-card .registration-address-verification p:empty,
.customer-registration-card .suggestions:empty { display: none; }
.customer-registration-card .registration-address-verification p { margin: 0; font-size: 13px; line-height: 1.5; }
.customer-registration-card .suggestions { position: static; display: grid; gap: 4px; max-height: 300px; overflow-y: auto; border-radius: 10px; }
.customer-registration-card .suggestion { display: block; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--registration-line); border-radius: 10px; background: white; color: var(--registration-deep); text-align: left; white-space: normal; cursor: pointer; }
.customer-registration-card .suggestion:hover,
.customer-registration-card .suggestion:focus-visible { background: var(--registration-mint); outline: 2px solid var(--registration-green); outline-offset: -2px; }
.customer-registration-card .registration-address-verification .button { min-height: 42px; white-space: normal; }
