:root {
  --navy: #14213d;
  --green: #0e6b4f;
  --gray-bg: #e9e9e9;
  --text: #2b2b2b;
  --muted: #8a8a8a;
  --border: #c7c7c7;
  --red: #c0392b;
  --pink: #d6336c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.5;
}

/* ---------- Hero header ---------- */
.hero {
  display: flex;
  width: 100%;
  min-height: 130px;
}

.hero__text {
  flex: 1 1 45%;
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  padding: 24px 40px;
  border-top: 6px solid #1a1a1a;
}

.hero__text h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--navy);
  line-height: 1.2;
}

.hero__accent {
  flex: 1 1 55%;
  background: var(--green);
}

/* ---------- Content / form shell ---------- */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 40px 70px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin: 30px 0 22px;
}

.section-title:first-of-type {
  margin-top: 6px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  color: #1a1a1a;
}

.required-note {
  color: var(--red);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- Grid layout ---------- */
.grid {
  display: grid;
  gap: 18px 24px;
  margin-bottom: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: flex;
  flex-direction: column;
}

.field.full {
  margin-bottom: 22px;
}

.field label {
  font-size: 0.92rem;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.req {
  color: var(--red);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 9px 11px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #a8a8a8;
}

select {
  color: #6b6b6b;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.5' fill='none' fill-rule='evenodd'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(14, 107, 79, 0.15);
}

.error-text {
  color: var(--red);
  font-size: 0.82rem;
  margin: 6px 0 0;
}

/* ---------- Minor checkbox row ---------- */
.minor-check {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  margin: 4px 0 8px;
}

.inline-label {
  font-size: 0.92rem;
  margin: 0;
}

.radio-group {
  display: flex;
  gap: 40px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

.radio input {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

/* ---------- Legal block ---------- */
.legal-block {
  margin-top: 24px;
}

.legal-definitions p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.legal-definitions strong {
  color: var(--red);
}

.legal-definitions em {
  color: var(--muted);
  font-style: italic;
}

.legal-columns {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  margin: 20px 0;
  align-items: start;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.checkbox input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.legal-notes {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #444;
}

.legal-notes li {
  margin-bottom: 8px;
}

.policy-check {
  color: var(--pink);
  margin-top: 6px;
}

.policy-check span {
  color: var(--pink);
}

/* ---------- Submit ---------- */
.submit-row {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

button[type="submit"] {
  background: #0d0d0d;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

button[type="submit"]:hover {
  background: var(--green);
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .legal-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    flex-direction: column;
    min-height: unset;
  }
  .hero__text {
    padding: 20px 24px;
  }
  .hero__text h1 {
    font-size: 1.5rem;
  }
  .hero__accent {
    height: 40px;
  }
  .content {
    padding: 24px 20px 50px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .minor-check {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
