:root {
  color-scheme: light;
  --bg: #f4f7f4;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: #ffffff;
  --text: #1a2e1a;
  --muted: #556055;
  --line: rgba(60, 100, 60, 0.18);
  --accent: #3a7d44; /* Oak green */
  --accent-strong: #2a5c32;
  --accent-light: rgba(58, 125, 68, 0.1);
  --shadow: 0 20px 50px rgba(30, 60, 30, 0.1);
  --radius-xl: 12px;
  --radius-lg: 10px;
  --radius-md: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background-color: #538c96;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: transparent;
  background-image: linear-gradient(45deg, #dc8818 0%, #538c96 35%);
  opacity: 0.88;
  transition:
    background 0.3s,
    border-radius 0.3s,
    opacity 0.3s;
}

/* ── Brand Header ── */
.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-strong);
  letter-spacing: -0.02em;
}

.brand-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Page shell ── */
.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

/* ── Cards ── */
.hero-card,
.form-card {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent-strong);
}

.intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.97rem;
}

/* ── Liability Box ── */
.liability-box {
  background: #fff8e1;
  border: 1px solid #f9c840;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  align-self: start;
}

.liability-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #7a5800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.liability-body {
  margin: 0;
  font-size: 0.9rem;
  color: #5a4000;
  line-height: 1.6;
}

/* ── Form card ── */
.form-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.status-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-strip p {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.full-width {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
}

label span {
  font-size: 0.92rem;
  color: var(--text);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  color: var(--text);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(58, 125, 68, 0.55);
  box-shadow: 0 0 0 4px rgba(58, 125, 68, 0.12);
  transform: translateY(-1px);
}

/* ── Actions ── */
.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted, #5b6472);
  min-height: 1.2em;
  margin-top: 24px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    box-shadow 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button[type="submit"] {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 28px rgba(58, 125, 68, 0.28);
  font-size: 1rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

/* ── Terms consent line ── */
.terms-consent {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.terms-link {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.terms-link:hover {
  color: var(--accent-strong);
}

/* ── Success panel ── */
.success-panel {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(58, 125, 68, 0.25);
  background: rgba(58, 125, 68, 0.07);
}

.success-panel h2 {
  margin: 0 0 10px;
  color: var(--accent-strong);
}

.success-panel p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.6;
}

.success-contact a {
  color: var(--accent);
  font-weight: 600;
}

/* ── Footer ── */
.page-footer {
  margin-top: 36px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.page-footer p {
  margin: 0;
  color: white;
}

.page-footer a {
  color: var(--accent);
}

.footer-copy {
  opacity: 0.7;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 30, 10, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-xl);
  width: min(640px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent-strong);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  padding: 0 4px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}

.close-btn:hover {
  color: var(--text);
  background: var(--accent-light);
  transform: none;
}

.modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  flex: 1;
}

.modal-body h3 {
  margin: 20px 0 8px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.modal-body p {
  margin: 0 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  text-align: right;
}

.modal-accept-btn {
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(58, 125, 68, 0.25);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
