:root {
  --lime: #93c01f;
  --lime-dark: #7eaa12;
  --teal: #14896f;
  --forest: #267850;
  --sage: #e1ece4;
  --sage-deep: #c9ddd0;
  --ink: #1c2a22;
  --muted: #5b6b62;
  --line: #d3e0d7;
  --white: #ffffff;
  --error: #c62828;
  --shadow: 0 18px 50px rgba(28, 42, 34, 0.1);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Manrope, "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(147, 192, 31, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(20, 137, 111, 0.12), transparent 28%),
    var(--sage);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  background: var(--white);
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(28, 42, 34, 0.06);
}

.logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.layout {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto 48px;
  display: grid;
  gap: 24px;
}

.intro {
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 800;
}

.lede {
  margin: 0 auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  color: var(--ink);
  background: #f8fbf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: #8a9a91;
}

select {
  appearance: none;
  cursor: pointer;
  padding-right: 42px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.phone-wrap {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f8fbf9;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 14px;
  font-weight: 700;
  color: var(--forest);
  background: #eef6f0;
  border-right: 1.5px solid var(--line);
  user-select: none;
}

.phone-wrap input {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.phone-wrap:hover {
  border-color: #b7cbbd;
}

.phone-wrap:focus-within {
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 137, 111, 0.14);
}

.phone-wrap input:hover,
.phone-wrap input:focus {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.field.is-invalid .phone-wrap {
  border-color: var(--error);
  background: #fff7f7;
}

.field.is-invalid .phone-wrap:focus-within {
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

input:hover,
select:hover {
  border-color: #b7cbbd;
}

input:focus,
select:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 137, 111, 0.14);
}

.field.is-invalid input,
.field.is-invalid select {
  border-color: var(--error);
  background: #fff7f7;
}

.field.is-invalid input:focus,
.field.is-invalid select:focus {
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.error {
  margin: 0;
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 600;
}

.submit,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.submit {
  width: 100%;
  margin-top: 22px;
  background: var(--lime);
  color: var(--ink);
  transition: background 0.15s ease, transform 0.15s ease;
}

.submit:hover {
  background: var(--lime-dark);
}

.submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-error {
  margin: 18px 0 0;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.submit:active {
  transform: translateY(1px);
}

.success {
  text-align: center;
  padding: 28px 8px 12px;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 800;
}

.success h2 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.success p {
  margin: 0 auto 22px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.55;
}

.ghost {
  min-width: 220px;
  padding: 0 18px;
  background: var(--sage);
  color: var(--forest);
}

.ghost:hover {
  background: var(--sage-deep);
}

@media (min-width: 720px) {
  .layout {
    margin-top: 40px;
  }

  .card {
    padding: 36px 40px 32px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
