:root {
  --lotus: #FFDD00;
  --sunrise: #FFC600;
  --blossom: #FFA400;

  --ink: #23201B;
  --ink-soft: #5C5852;
  --ink-faint: #8A857D;

  --page: #EFF2F4;
  --surface: #FFFFFF;
  --line: #DCE0E4;
  --line-soft: #E9ECEF;

  --focus: #1B62C4;
  --error: #B3261E;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.brandbar {
  height: 4px;
  background: linear-gradient(90deg, var(--lotus) 0%, var(--sunrise) 55%, var(--blossom) 100%);
}

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.logo {
  display: block;
  width: 172px;
  height: auto;
  margin-bottom: 28px;
}

h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.lede {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 38em;
}

/* Agent block */
.agent {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sunrise);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 26px;
}
.agent-name {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 2px;
}
.agent-role {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.agent-call {
  font-size: 15px;
  color: var(--ink-soft);
}
.agent-call a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--sunrise);
  padding-bottom: 1px;
}

/* Form */
form { margin: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
}

.row {
  display: flex;
  gap: 12px;
}
.row .field { flex: 1; min-width: 0; }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

input, select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  appearance: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%235C5852' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(27, 98, 196, 0.16);
}

input.invalid, select.invalid { border-color: var(--error); }

.err {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: 5px;
}
.err.show { display: block; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: var(--sunrise);
  border: none;
  border-radius: 8px;
  padding: 15px 18px;
  margin-top: 6px;
  cursor: pointer;
  transition: background .12s ease;
}
button:hover { background: var(--lotus); }
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
button[disabled] {
  background: #E4E6E8;
  color: var(--ink-faint);
  cursor: default;
}

.fineprint {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 14px;
}
.fineprint a { color: var(--ink-faint); }

.formerror {
  display: none;
  background: #FDECEA;
  border: 1px solid #F3C4BF;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--error);
  margin-bottom: 16px;
}
.formerror.show { display: block; }

/* Page 2 */
.check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sunrise);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.check svg { display: block; }

.next {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 30px;
}
.next p { margin: 0 0 12px; font-size: 15.5px; color: var(--ink-soft); }
.next p:last-child { margin-bottom: 0; }
.next strong { color: var(--ink); font-weight: 500; }

.rule {
  height: 1px;
  background: var(--line-soft);
  margin: 0 0 28px;
}

.optional-tag {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.body-copy {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.secondary {
  display: block;
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 14px 18px;
  text-decoration: none;
  transition: background .12s ease;
}
.secondary:hover { background: #F5F6F7; }
.secondary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.closing {
  font-size: 14.5px;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 14px;
}

.reveal {
  animation: rise .38s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  * { transition: none !important; }
}

@media (max-width: 380px) {
  h1 { font-size: 24px; }
  .row { flex-direction: column; gap: 0; }
}
