:root {
  --amar-purple: #621587;
  --amar-purple-deep: #23092f;
  --amar-orange: #f36606;
  --amar-text: #4e4f4f;
  --amar-muted: #74787a;
  --amar-line: #e7e1eb;
  --amar-soft: #fbfcfc;
  --amar-white: #ffffff;
  --amar-shadow: 0 28px 80px rgba(35, 9, 47, 0.16);
}

* {
  box-sizing: border-box;
}

body.amar-form-page {
  margin: 0;
  min-height: 100vh;
  color: var(--amar-text);
  background:
    linear-gradient(112deg, rgba(243, 102, 6, 0.1) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(98, 21, 135, 0.065) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #ffffff 0%, #fbfcfc 48%, #f8f4fa 100%);
  font-family: "Nunito", Arial, sans-serif;
}

.form-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  align-items: center;
}

.form-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.case-copy {
  position: relative;
  isolation: isolate;
  padding: 18px 0;
}

.case-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -42px;
  left: -42px;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(243, 102, 6, 0.14), rgba(98, 21, 135, 0.08));
  transform: rotate(-10deg);
}

.case-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 18%;
  bottom: -34px;
  width: 156px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
  opacity: 0.22;
}

.case-copy h1 {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--amar-purple-deep);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.case-copy > p {
  max-width: 590px;
  margin: 0 0 26px;
  color: var(--amar-text);
  font-size: 19px;
  line-height: 1.58;
}

.case-panel {
  max-width: 620px;
  border-left: 6px solid var(--amar-orange);
  border-radius: 8px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 44px rgba(35, 9, 47, 0.08);
}

.case-panel p {
  margin: 0;
  color: var(--amar-text);
  font-size: 16px;
  line-height: 1.62;
}

.lead-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(98, 21, 135, 0.13);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--amar-shadow);
}

.lead-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
}

.lead-panel-header {
  margin-bottom: 22px;
}

.lead-panel-header span {
  display: block;
  margin-bottom: 10px;
  color: var(--amar-orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lead-panel-header h2 {
  margin: 0 0 10px;
  color: var(--amar-purple-deep);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.lead-panel-header p {
  margin: 0;
  color: var(--amar-muted);
  font-size: 16px;
  line-height: 1.5;
}

.lead-grid {
  display: grid;
  gap: 15px;
}

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

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

.field label {
  color: var(--amar-purple-deep);
  font-size: 14px;
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--amar-line);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--amar-purple-deep);
  background: var(--amar-white);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--amar-purple);
  box-shadow: 0 0 0 4px rgba(98, 21, 135, 0.1);
}

.field input[aria-invalid="true"] {
  border-color: #c93232;
}

.field-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  color: var(--amar-white);
  background: linear-gradient(135deg, #ff760d 0%, var(--amar-orange) 58%, #d64e00 100%);
  box-shadow:
    0 18px 34px rgba(243, 102, 6, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.lead-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(243, 102, 6, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.lead-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin-top: 18px;
  color: var(--amar-muted);
  font-weight: 800;
  line-height: 1.4;
}

.form-status[data-type="success"] {
  color: #16723a;
}

.form-status[data-type="error"] {
  color: #b42318;
}

.thank-shell {
  justify-items: center;
}

.thank-panel {
  position: relative;
  isolation: isolate;
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(98, 21, 135, 0.13);
  border-radius: 8px;
  padding: clamp(34px, 6vw, 56px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--amar-shadow);
  text-align: center;
}

.thank-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--amar-purple), var(--amar-orange));
}

.thank-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 34px;
  left: 38px;
  width: 116px;
  height: 116px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(243, 102, 6, 0.12), rgba(98, 21, 135, 0.08));
  transform: rotate(-10deg);
}

.thank-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  color: var(--amar-white);
  background: linear-gradient(135deg, var(--amar-purple), var(--amar-orange));
  box-shadow: 0 18px 34px rgba(243, 102, 6, 0.22);
}

.thank-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}

.thank-panel span {
  display: block;
  margin-bottom: 10px;
  color: var(--amar-orange);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.thank-panel h1 {
  margin: 0 0 14px;
  color: var(--amar-purple-deep);
  font-family: "Dosis", "Nunito", Arial, sans-serif;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.thank-panel p {
  max-width: 470px;
  margin: 0 auto;
  color: var(--amar-text);
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .form-shell {
    padding: 30px 0;
  }

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

  .case-copy h1 {
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  .form-shell {
    width: min(100% - 28px, 1120px);
    padding: 20px 0;
  }

  .case-copy::before,
  .case-copy::after {
    display: none;
  }

  .case-copy h1 {
    font-size: clamp(40px, 13vw, 54px);
  }

  .case-copy > p {
    font-size: 17px;
  }

  .lead-panel {
    padding: 26px 20px;
  }

  .thank-panel {
    padding: 34px 22px;
  }

  .thank-panel::after {
    display: none;
  }
}
