:root {
  --pink: #ee879e;
  --green: #9fb68a;
  --dark: #1f2a23;
  --muted: #69756d;
  --border: #eadde1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #fffafa, #f6fbf2);
  color: var(--dark);
}
.page { max-width: 980px; margin: 0 auto; padding: 28px 16px; }
.hero, .card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(0,0,0,.07);
}
.hero { padding: 30px 24px; margin-bottom: 22px; text-align: center; }
.logo { max-width: 430px; width: 92%; height: auto; margin-bottom: 12px; }
h1 { margin: 0; font-size: 38px; }
.hero p { color: var(--muted); margin: 10px auto 0; line-height: 1.5; }
.progress-wrap { max-width: 680px; margin: 24px auto 0; }
.progress-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: bold;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #f3e6ea;
  overflow: hidden;
}
#progressFill {
  height: 100%;
  width: 16.66%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--pink));
  transition: width .25s ease;
}
.card { padding: 30px; }
.step { display: none; }
.step.active { display: block; }
h2 {
  margin: 0 0 20px;
  border-left: 6px solid var(--pink);
  padding-left: 12px;
  font-size: 24px;
}
h2 span { font-size: 13px; color: #777; font-weight: normal; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 7px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d8ccd0;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  background: white;
}
textarea { resize: vertical; }
fieldset {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-top: 18px;
}
legend { font-weight: bold; padding: 0 8px; }
fieldset label, .checkbox-line {
  display: block;
  font-weight: 500;
  margin: 10px 0;
}
fieldset input, .checkbox-line input { width: auto; margin-right: 8px; }
.helper { color: var(--muted); }
.signature-box {
  border: 2px dashed #d8ccd0;
  border-radius: 16px;
  background: white;
  overflow: hidden;
  margin: 12px 0;
}
#signatureCanvas {
  display: block;
  width: 100%;
  height: 190px;
  touch-action: none;
  background: white;
}
.clear-btn {
  width: auto;
  margin-bottom: 18px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: bold;
  cursor: pointer;
}
.button-row { display: flex; gap: 12px; margin-top: 28px; }
button {
  border: none;
  border-radius: 14px;
  padding: 15px 18px;
  background: var(--green);
  color: white;
  font-weight: bold;
  font-size: 17px;
  cursor: pointer;
  flex: 1;
}
button.secondary { background: #f1d2da; color: var(--dark); }
button:disabled { opacity: .55; cursor: not-allowed; }
.hidden { display: none; }
#status { text-align: center; font-weight: bold; margin-top: 18px; }
.success { color: #2f7d32; }
.error { color: #b00020; }
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .card, .hero { padding: 22px; }
  h1 { font-size: 30px; }
  .progress-info { flex-direction: column; text-align: left; }
  .button-row { flex-direction: column; }
}


.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.thank-you {
  max-width: 820px;
  margin: 80px auto 0;
}

.home-link {
  display: inline-block;
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: bold;
}
