/* =========================================================
   House Buyer Dan - Landing Page Styles (CSS only)
   - Responsive two-column hero (desktop) / stacked (mobile)
   - Full-screen background image + dark overlay
   - Clean form card UI with accessible focus states
   ========================================================= */

/* ---------- Base / Reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.4;
  color: #111;
}

/* Visually pleasing default focus for keyboard users */
:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

/* ---------- Topbar / Brand ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 22px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 14px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ---------- Hero Background ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;

  /* Swap this URL to your house photo */
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.55)),
    url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 22% 35%, rgba(0,0,0,0.38), rgba(0,0,0,0) 55%),
    radial-gradient(900px 500px at 78% 40%, rgba(0,0,0,0.35), rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.62));
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  padding: 86px 0 48px;
}

/* ---------- Grid Layout ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

/* ---------- Card ---------- */
.card {
  background: rgba(255,255,255,0.97);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.35),
    0 2px 0 rgba(255,255,255,0.35) inset;
  border: 1px solid rgba(20,20,20,0.08);
  overflow: hidden;
}

.card-header {
  padding: 22px 22px 14px;
  text-align: center;
}

.card-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card-subtext {
  margin: 8px 0 0;
  color: rgba(17,17,17,0.70);
  font-size: 14px;
}

/* ---------- Form ---------- */
.lead-form {
  padding: 0 22px 22px;
}

.form-section {
  padding: 16px 0 18px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.form-section:first-of-type {
  border-top: none;
  padding-top: 6px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
}

.field {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

label {
  font-weight: 650;
  font-size: 14px;
  color: rgba(0,0,0,0.82);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  height: 44px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.20);
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,0.55) 50%),
    linear-gradient(135deg, rgba(0,0,0,0.55) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px,
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    2.5em 2.5em;
  background-repeat: no-repeat;
  padding-right: 42px;
}

input::placeholder { color: rgba(0,0,0,0.42); }

input:hover,
select:hover {
  border-color: rgba(0,0,0,0.34);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(0,0,0,0.50);
  box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.12);
}

/* ---------- Radio Groups ---------- */
.radio-group {
  margin: 14px 0 16px;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
}

.radio-group legend {
  padding: 0 6px;
  font-weight: 750;
  font-size: 14px;
  color: rgba(0,0,0,0.82);
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
}

.radio input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #111;
}

.radio span {
  font-size: 14px;
  color: rgba(0,0,0,0.80);
}

.radio:hover {
  background: rgba(0,0,0,0.05);
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* ---------- Checkbox Consent ---------- */
.checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
}

.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #111;
}

.checkbox-text {
  font-size: 13px;
  color: rgba(0,0,0,0.72);
}

/* ---------- Submit ---------- */
.form-submit {
  text-align: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(320px, 100%);
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #111;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
  background: #000;
}

.btn:active { transform: translateY(0px); }

.microcopy {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,0.55);
}

/* ---------- Hero Copy (Right side) ---------- */
.hero-copy {
  color: #fff;
  padding: 10px 6px;
  position: relative;
}

.kicker {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.hero-title {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-title .line1 {
  display: block;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 750;
}

.hero-title .line2 {
  display: block;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 900;
  margin-top: 6px;
}

.hero-title .line3 {
  display: block;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 750;
  margin-top: 6px;
}

/* Arrow */
.arrow-wrap {
  margin-top: 18px;
  display: inline-grid;
  gap: 8px;
  align-items: start;
}

.curved-arrow {
  width: min(280px, 78%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
  transform: rotate(-3deg);
  opacity: 0.95;
}

.arrow-caption {
  font-weight: 750;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.86);
  margin-left: 10px;
}

/* Benefits */
.benefits {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  max-width: 360px;
}

.benefits li {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.92);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.78);
  text-align: center;
  padding: 14px 18px;
  font-size: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  /* On tablet/mobile: hero copy first, form second */
  .hero-copy {
    order: 1;
    text-align: left;
    padding: 0 4px 4px;
    max-width: 520px;
  }

  .card {
    order: 2;
  }

  .container {
    padding-top: 82px;
    padding-bottom: 30px;
  }

  .hero-title .line1 {
    font-size: 24px;
  }

  .hero-title .line2 {
    font-size: 42px;
  }

  .hero-title .line3 {
    font-size: 24px;
  }

  .kicker {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .arrow-wrap {
    margin-top: 10px;
  }

  .curved-arrow {
    width: 180px;
    transform: rotate(18deg);
    transform-origin: left center;
  }

  .arrow-caption {
    font-size: 14px;
    margin-left: 6px;
    margin-top: -6px;
  }

  .benefits {
    margin-top: 14px;
    max-width: 100%;
  }

  .benefits li {
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 24px);
    padding-top: 72px;
    padding-bottom: 22px;
  }

  .hero-grid {
    gap: 14px;
  }

  .hero-copy {
    order: 1;
    padding: 0 2px;
  }

  .card {
    order: 2;
  }

  .kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .hero-title {
    line-height: 1.04;
    margin-bottom: 0;
  }

  .hero-title .line1 {
    font-size: 20px;
  }

  .hero-title .line2 {
    font-size: 34px;
    margin-top: 4px;
  }

  .hero-title .line3 {
    font-size: 19px;
    margin-top: 4px;
  }

  .arrow-wrap {
    margin-top: 6px;
    gap: 4px;
  }

  .curved-arrow {
    width: 130px;
    transform: rotate(38deg);
  }

  .arrow-caption {
    font-size: 12px;
    margin-left: 4px;
  }

  .benefits {
    gap: 8px;
    margin-top: 10px;
  }

  .benefits li {
    font-size: 13px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  .card-header h1 {
    font-size: 20px;
  }

  .radio-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 0 16px 18px;
  }

  .card-header {
    padding: 18px 16px 12px;
  }
}

@media (max-width: 420px) {
  .hero-title .line1 {
    font-size: 18px;
  }

  .hero-title .line2 {
    font-size: 30px;
  }

  .hero-title .line3 {
    font-size: 18px;
  }

  .curved-arrow {
    width: 110px;
    transform: rotate(42deg);
  }

  .arrow-caption {
    font-size: 11px;
  }

  .benefits li {
    font-size: 12px;
  }

  /* Hide arrow on very small screens */
  .arrow-wrap {
    display: none;
  }
}