/*
 * The withdrawal and cancellation pages: the verify-email card, widened and
 * left-aligned for a form, with labelled fields, their hint and error text, and
 * the GOV.UK-style error summary.
 */
.exit-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Onest', sans-serif;
  color: #1e1e26;
  background: radial-gradient(116.98% 89.02% at 12.32% 92.34%, rgba(229, 72, 127, 0.54) 18.52%, rgba(252, 173, 3, 0) 81.3%),
              radial-gradient(83.84% 73.57% at 16.16% 75.87%, rgba(252, 94, 3, 0.52) 0%, rgba(252, 94, 3, 0) 100%),
              radial-gradient(117.46% 71.06% at 56.35% 7.75%, #4dc6ea 0%, rgba(255, 255, 255, 0) 100%),
              radial-gradient(140.58% 99.69% at 16.25% 11.58%, #ffcb5d 0%, rgba(252, 173, 3, 0) 100%),
              #fff;
}

.exit-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 64px;
}

.exit-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 32px;
  padding: 40px 32px;
  box-shadow: 0 24px 80px rgba(30, 30, 38, 0.18);
}

.exit-logo {
  display: block;
  width: 112px;
  height: auto;
  margin-bottom: 24px;
}

.exit-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.exit-card h1:focus {
  outline: none;
}

.exit-card p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: #4b4b55;
}

.exit-card a {
  color: #1e1e26;
  text-decoration: underline;
}

.exit-card :focus-visible,
.exit-footer :focus-visible {
  outline: 3px solid #4dc6ea;
  outline-offset: 2px;
}

.exit-back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 15px;
}

.exit-notice {
  border-left: 4px solid #4dc6ea;
  padding: 8px 0 8px 12px;
}

.exit-field {
  margin-bottom: 20px;
}

.exit-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.exit-card .exit-hint {
  margin: 0 0 6px;
  font-size: 14px;
  color: #6b6b76;
}

.exit-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #b9b9c3;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.exit-input[aria-invalid='true'] {
  border: 2px solid #c0245c;
}

textarea.exit-input {
  resize: vertical;
}

.exit-card .exit-field-error {
  margin: 0 0 6px;
  font-weight: 600;
  color: #c0245c;
}

.exit-error-summary {
  border: 3px solid #c0245c;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.exit-error-summary:focus {
  outline: 3px solid #4dc6ea;
}

.exit-error-summary h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.exit-card .exit-error-summary p {
  margin: 0 0 8px;
  color: #1e1e26;
}

.exit-error-summary ul {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.exit-card .exit-error-summary a {
  color: #c0245c;
  font-weight: 600;
}

.exit-summary-list {
  margin: 0 0 20px;
}

.exit-summary-list div {
  border-bottom: 1px solid #e4e4ea;
  padding: 10px 0;
}

.exit-summary-list dt {
  font-size: 14px;
  color: #6b6b76;
}

.exit-summary-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.exit-card .exit-legal-note {
  font-size: 14px;
}

.exit-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exit-btn {
  display: inline-block;
  box-sizing: border-box;
  min-height: 52px;
  padding: 16px 32px;
  border: 2px solid #1e1e26;
  border-radius: 999px;
  background: #1e1e26;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.exit-card a.exit-btn {
  color: #fff;
  text-decoration: none;
}

.exit-btn:hover {
  background: #3a3a46;
}

.exit-btn[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.exit-btn--secondary,
.exit-btn--secondary:hover,
.exit-card a.exit-btn--secondary {
  background: #fff;
  color: #1e1e26;
}

.exit-btn--secondary:hover {
  background: #f3f3f6;
}

.exit-strong {
  color: #1e1e26;
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/*
 * The intent pages' three cards: two retention offers and the action. The
 * action card is never less prominent than an offer (filled button, same size),
 * and on a phone it comes first, above the offers — the cancellation route has
 * to stay direct. No carousel.
 */
.exit-card--wide {
  max-width: 1040px;
}

.exit-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.exit-offer {
  display: flex;
  flex-direction: column;
  border: 1px solid #e4e4ea;
  border-radius: 24px;
  padding: 24px 20px;
}

.exit-offer--action {
  border: 2px solid #1e1e26;
}

.exit-offer h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.exit-card .exit-offer p {
  font-size: 15px;
}

.exit-offer .exit-btn {
  margin-top: auto;
}

.exit-offer__badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffcb5d;
  font-size: 14px;
  vertical-align: middle;
}

.exit-offer__options {
  display: flex;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.exit-offer__options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.exit-offer__features {
  margin: 0 0 20px;
  padding-left: 20px;
  list-style: disc;
  color: #4b4b55;
}

@media (max-width: 860px) {
  .exit-offers {
    grid-template-columns: 1fr;
  }

  .exit-offer--action {
    order: -1;
  }
}

.exit-footer {
  padding: 24px 20px 32px;
  text-align: center;
  font-size: 13px;
  color: rgba(30, 30, 38, 0.7);
}

.exit-footer a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .exit-card {
    padding: 32px 22px;
    border-radius: 28px;
  }

  .exit-card h1 {
    font-size: 24px;
  }
}
