.redesign-page {
  line-height: 1.5;
}

.redesign-shell {
  width: min(100%, 692px);
  margin: 0 auto;
  padding: 64px 24px 120px;
}

.redesign-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.redesign-intro p,
.redesign-section-heading h1,
.redesign-section-heading p,
.redesign-social h2,
.redesign-social p {
  margin: 0;
}

.redesign-offer {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.redesign-offer strong {
  font-weight: 700;
}

.redesign-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  color: var(--faint);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.redesign-proof a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.redesign-proof a:hover,
.redesign-proof a:focus-visible {
  text-decoration: underline;
}

.redesign-promise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.redesign-promise p {
  margin-bottom: -2px;
  color: var(--purple);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.redesign-underline-wrap {
  position: relative;
  display: block;
  width: 170.284px;
  height: 9.734px;
}

.redesign-underline {
  position: absolute;
  top: -0.75px;
  left: -0.75px;
  display: block;
  width: 171.784px;
  height: 11.234px;
  overflow: visible;
}

.redesign-underline-path {
  fill: none;
  stroke: var(--purple);
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .redesign-underline-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms cubic-bezier(0.65, 0, 0.2, 1) 320ms;
}

.js .redesign-intro.is-drawn .redesign-underline-path {
  stroke-dashoffset: 0;
}

.redesign-form-section {
  padding-top: 128px;
}

.redesign-section-heading {
  margin-bottom: 36px;
}

.redesign-section-heading h1,
.redesign-social h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.redesign-section-heading h1 {
  margin-bottom: 24px;
}

.redesign-section-heading p,
.redesign-social p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 26.4px;
}

.redesign-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-field > label,
.form-field legend,
.other-role-reveal label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.form-field input:not([type="radio"]),
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: rgba(242, 242, 240, 0.45);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.form-field input:not([type="radio"]),
.form-field select {
  min-height: 46px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 128px;
  padding: 11px 12px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

.form-field input:not([type="radio"]):hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(33, 32, 28, 0.18);
}

.form-field input:not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(54, 0, 132, 0.64);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(54, 0, 132, 0.08);
}

.form-field [aria-invalid="true"]:not([type="radio"]) {
  border-color: rgba(153, 44, 44, 0.72);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.form-field select {
  padding-right: 38px;
  appearance: none;
}

.field-hint,
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 18px;
}

.field-hint {
  color: var(--faint);
}

.field-error {
  color: #913b35;
}

.field-error:empty {
  display: none;
}

.other-role-reveal {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 420ms var(--ease),
    margin-top 420ms var(--ease),
    opacity 260ms ease,
    visibility 420ms;
}

.other-role-reveal.is-open {
  grid-template-rows: 1fr;
  margin-top: 18px;
  opacity: 1;
  visibility: visible;
}

.other-role-reveal-inner {
  min-height: 0;
  overflow: hidden;
  margin: -4px;
  padding: 4px;
}

.stage-field legend {
  padding: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.radio-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
  transition: border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.radio-option:hover {
  border-color: rgba(33, 32, 28, 0.18);
}

.radio-option:has(input:checked) {
  border-color: rgba(54, 0, 132, 0.42);
  background: rgba(54, 0, 132, 0.045);
  color: var(--text);
}

.radio-option:has(input:focus-visible) {
  outline: 2px solid rgba(54, 0, 132, 0.58);
  outline-offset: 2px;
}

.radio-option input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--purple);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 4px;
}

.submit-button {
  position: relative;
  border: 0;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 220ms ease;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(253, 253, 252, 0.38);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: redesign-spin 700ms linear infinite;
}

.redesign-form.is-loading .portfolio-button-arrow {
  display: none;
}

.redesign-form.is-loading .submit-spinner {
  display: block;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.form-status.is-success {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  pointer-events: none;
  max-width: calc(100vw - 48px);
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #26734d;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  animation: redesign-toast-in 240ms var(--ease) both;
}

.form-status.is-success.is-dismissing {
  animation: redesign-toast-out 180ms ease both;
}

.form-status-icon {
  display: none;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.form-status.is-success .form-status-icon {
  display: block;
}

.form-status.is-error {
  color: #913b35;
}

@keyframes redesign-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes redesign-toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(6px); }
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.redesign-social {
  padding-top: 128px;
}

.redesign-social h2 {
  margin-bottom: 24px;
}

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

@keyframes redesign-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .redesign-shell {
    padding: 40px 20px 88px;
  }

  .redesign-form-section,
  .redesign-social {
    padding-top: 104px;
  }
}

@media (max-width: 520px) {
  .radio-grid {
    grid-template-columns: 1fr;
  }

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

  .submit-button {
    width: 100%;
  }

  .form-status.is-success {
    right: 16px;
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 430px) {
  .redesign-offer,
  .redesign-proof,
  .redesign-promise p,
  .redesign-section-heading h1,
  .redesign-social h2 {
    font-size: 15px;
  }

  .redesign-form-section,
  .redesign-social {
    padding-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .redesign-underline-path {
    stroke-dashoffset: 0;
  }

  .form-status.is-success {
    animation: none;
  }
}
