:root {
  color-scheme: light;
  --ink: #3d3d3d;
  --muted: #747474;
  --line: #efc7cd;
  --paper: #ffffff;
  --field-bg: #fffafa;
  --accent: #ec515e;
  --accent-strong: #ad1a27;
  --dark: #3d3d3d;
  --danger: #ad1a27;
  --success-bg: #ebfaea;
  --soft: #fdeef0;
  --focus: rgba(236, 81, 94, 0.24);
  --wg-gradient: linear-gradient(90deg, #ec8a6c 0%, #ee8a7e 22%, #ec6f95 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family:
    Onest, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.page {
  width: min(100%, 660px);
  margin: 0 auto;
  padding: 6px 16px 24px;
}

form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin: 0 auto;
  background: var(--paper);
}

form > * {
  min-width: 0;
}

.form-heading {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  justify-items: center;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  max-width: 560px;
}

.form-heading p strong {
  color: var(--ink);
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

input,
textarea,
button {
  font: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--field-bg);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

input {
  min-height: 40px;
}

textarea {
  min-height: 64px;
  resize: vertical;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover {
  border-color: #e8aeb6;
  background: #ffffff;
}

input:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--accent);
}

#websiteTrap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice-group {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin: 0;
  padding: 10px 0 4px;
  border: 0;
  border-top: 1px solid rgba(244, 190, 195, 0.7);
}

.choice-group legend {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.choice input {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent-field {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.consent-choice {
  line-height: 1.45;
}

.actions {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 8px;
  margin-top: 10px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 28px;
  color: #fff;
  background: var(--wg-gradient);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(236, 81, 94, 0.22);
}

button:hover {
  background: var(--dark);
}

button[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.error {
  min-height: 16px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.35;
}

#form-status {
  min-height: 18px;
  margin: 0;
}

.success-banner {
  display: grid;
  grid-column: 1 / -1;
  gap: 4px;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--success-bg);
}

.success-banner strong {
  color: var(--ink);
}

.success-banner span {
  color: var(--muted);
}

@media (max-width: 720px) {
  .page {
    padding: 12px 12px 24px;
  }

  form {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  button {
    width: 100%;
  }

  h1 {
    font-size: 26px;
  }
}
