.withdrawal-shell {
  width: min(1040px, 100%);
}

.withdrawal-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.withdrawal-intro-copy {
  max-width: 720px;
}

.withdrawal-language {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  color: #52657e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.withdrawal-language-buttons {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #d5dee9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.withdrawal-language button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #52657e;
  font: inherit;
  cursor: pointer;
}

.withdrawal-language button:hover,
.withdrawal-language button.is-active {
  background: #e8f6ee;
  color: #115431;
}

.withdrawal-language button:focus-visible,
.withdrawal-form input:focus-visible,
.withdrawal-form textarea:focus-visible,
.withdrawal-actions button:focus-visible {
  outline: 3px solid rgba(25, 131, 86, 0.28);
  outline-offset: 2px;
}

.withdrawal-workflow {
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid #cfddd7;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 50px rgba(15, 61, 43, 0.09);
}

.withdrawal-workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border-bottom: 1px solid #e1ebe6;
  background:
    linear-gradient(120deg, rgba(232, 246, 238, 0.96), rgba(247, 251, 249, 0.98)), #f5faf7;
}

.withdrawal-eyebrow,
.withdrawal-step-number {
  margin: 0 0 6px;
  color: #197449;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.withdrawal-workflow-heading h2,
.withdrawal-step-copy h3,
.withdrawal-success h3 {
  margin: 0;
  color: #10253d;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.withdrawal-workflow-heading h2 {
  font-size: 1.35rem;
}

.withdrawal-steps {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.withdrawal-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d7e2dd;
  border-radius: 999px;
  color: #697a8f;
  background: #ffffff;
  font-size: 0.82rem;
}

.withdrawal-steps span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #edf2f5;
  font-size: 0.76rem;
  font-weight: 800;
}

.withdrawal-steps li.is-active,
.withdrawal-steps li.is-complete {
  border-color: #a9d7ba;
  color: #115431;
  background: #eff9f3;
}

.withdrawal-steps li.is-active span,
.withdrawal-steps li.is-complete span {
  color: #ffffff;
  background: #197449;
}

.withdrawal-step,
.withdrawal-success {
  padding: 32px 30px 34px;
}

.withdrawal-step-copy {
  max-width: 720px;
  margin-bottom: 24px;
}

.withdrawal-step-copy h3,
.withdrawal-success h3 {
  font-size: 1.55rem;
}

.withdrawal-step-copy > p:last-child,
.withdrawal-success > p {
  margin: 10px 0 0;
  color: #52657e;
  line-height: 1.7;
}

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

.withdrawal-field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.withdrawal-field:nth-of-type(4),
.withdrawal-privacy-note,
.withdrawal-form .withdrawal-actions {
  grid-column: 1 / -1;
}

.withdrawal-field label {
  color: #18354a;
  font-size: 0.9rem;
  font-weight: 750;
}

.withdrawal-optional {
  margin-left: 7px;
  color: #6b7c90;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.withdrawal-form input,
.withdrawal-form textarea {
  width: 100%;
  border: 1px solid #cbd8e2;
  border-radius: 13px;
  background: #fbfdfe;
  color: #132c40;
  font: inherit;
  line-height: 1.5;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.withdrawal-form input {
  min-height: 48px;
  padding: 10px 13px;
}

.withdrawal-form textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
}

.withdrawal-form input:hover,
.withdrawal-form textarea:hover {
  border-color: #aebfcd;
}

.withdrawal-form input:focus,
.withdrawal-form textarea:focus {
  border-color: #3a8c62;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(25, 116, 73, 0.1);
}

.withdrawal-form input[aria-invalid="true"],
.withdrawal-form textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.withdrawal-field-hint,
.withdrawal-field-error {
  min-height: 1.25em;
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
}

.withdrawal-field-hint {
  color: #6b7c90;
}

.withdrawal-field-error {
  color: #a51d16;
  font-weight: 650;
}

.withdrawal-privacy-note {
  margin: 0;
  padding: 15px 17px;
  border: 1px solid #d9e5ee;
  border-radius: 14px;
  background: #f6f9fb;
  color: #52657e;
  font-size: 0.86rem;
  line-height: 1.65;
}

.withdrawal-privacy-note a,
.withdrawal-success a {
  color: #17543a;
  font-weight: 700;
}

.withdrawal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.withdrawal-actions-end {
  justify-content: flex-end;
}

.withdrawal-actions button {
  min-height: 48px;
  padding-inline: 20px;
}

.withdrawal-primary-action {
  min-width: 190px;
}

.withdrawal-review-list,
.withdrawal-success-details {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce6ed;
  border-radius: 16px;
  background: #fbfdfe;
}

.withdrawal-review-list > div,
.withdrawal-success-details > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.7fr);
  gap: 18px;
  padding: 15px 17px;
}

.withdrawal-review-list > div + div,
.withdrawal-success-details > div + div {
  border-top: 1px solid #e6edf2;
}

.withdrawal-review-list dt,
.withdrawal-success-details dt {
  color: #52657e;
  font-size: 0.82rem;
  font-weight: 750;
}

.withdrawal-review-list dd,
.withdrawal-success-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #132c40;
  font-size: 0.93rem;
  font-weight: 650;
  white-space: pre-wrap;
}

.withdrawal-confirmation-note {
  margin: 20px 0;
  padding: 17px 18px;
  border-left: 4px solid #197449;
  border-radius: 0 14px 14px 0;
  background: #eff8f2;
  color: #234b39;
}

.withdrawal-confirmation-note strong {
  color: #123e2a;
}

.withdrawal-confirmation-note p {
  margin: 6px 0 0;
  line-height: 1.65;
}

.withdrawal-submit-error {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #efb8b2;
  border-radius: 13px;
  background: #fff2f0;
  color: #8a1c16;
  line-height: 1.6;
}

.withdrawal-success {
  text-align: center;
}

.withdrawal-success-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  background: #197449;
  color: #ffffff;
  font-size: 1.7rem;
  box-shadow: 0 10px 24px rgba(25, 116, 73, 0.22);
}

.withdrawal-success > p {
  max-width: 680px;
  margin-inline: auto;
}

.withdrawal-success-details {
  max-width: 660px;
  margin: 24px auto 0;
  text-align: left;
}

.withdrawal-success-support {
  margin-top: 20px !important;
}

.withdrawal-delayed {
  background: var(--warning-bg);
}

.withdrawal-delayed-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: var(--radius-full);
  background: var(--warning-text);
  color: var(--color-surface);
  font-size: 1.7rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.withdrawal-delayed .withdrawal-delayed-eyebrow {
  color: var(--warning-text);
}

.withdrawal-legal-card {
  margin-top: 28px;
}

.withdrawal-legal-header {
  padding-bottom: 24px;
  border-bottom: 1px solid #e5ebf2;
}

.withdrawal-legal-header h2 {
  margin: 8px 0 6px;
  color: #10253d;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.withdrawal-legal-header > p:nth-of-type(2) {
  margin: 0;
  color: #607186;
}

.withdrawal-operator-identity {
  margin-top: 18px;
  color: #304b3d;
  font-style: normal;
  line-height: 1.65;
}

.withdrawal-operator-identity a {
  color: #176a4a;
  font-weight: 700;
}

.withdrawal-legal-badge {
  display: inline-flex;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #115431;
  font-size: 0.75rem;
  font-weight: 750;
}

.withdrawal-legal-card .policy-section h3 {
  margin: 0 0 12px;
  color: #10253d;
  font-size: 1.18rem;
  line-height: 1.3;
}

.withdrawal-model-form {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #cad8d1;
  border-radius: 16px;
  background: #f9fcfa;
}

.withdrawal-model-form p {
  color: #304b3d;
}

.model-line {
  display: block;
  min-height: 30px;
  border-bottom: 1px solid #8ba397;
}

.model-inline-line {
  display: inline-block;
  width: min(180px, 28vw);
  min-height: 22px;
  vertical-align: bottom;
  border-bottom: 1px solid #8ba397;
}

.withdrawal-model-footnote {
  margin-bottom: 0 !important;
  font-size: 0.85rem !important;
}

@media (max-width: 760px) {
  .withdrawal-intro,
  .withdrawal-workflow-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .withdrawal-field,
  .withdrawal-field:nth-of-type(4),
  .withdrawal-privacy-note,
  .withdrawal-form .withdrawal-actions {
    grid-column: 1;
  }
}

@media (max-width: 560px) {
  .withdrawal-workflow {
    border-radius: 20px;
  }

  .withdrawal-workflow-heading,
  .withdrawal-step,
  .withdrawal-success {
    padding: 22px 18px 24px;
  }

  .withdrawal-steps {
    width: 100%;
  }

  .withdrawal-steps li {
    flex: 1;
    justify-content: center;
  }

  .withdrawal-review-list > div,
  .withdrawal-success-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .withdrawal-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .withdrawal-actions button,
  .withdrawal-primary-action {
    width: 100%;
  }

  .withdrawal-model-form {
    padding: 17px 15px;
  }
}
