:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5f6775;
  --line: #d9dee7;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --navy: #17233a;
  --green: #098b68;
  --blue: #2458d3;
  --amber: #c47c13;
  --shadow: 0 24px 80px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(36, 88, 211, 0.08), transparent 36%),
    linear-gradient(250deg, rgba(9, 139, 104, 0.1), transparent 38%),
    #eef2f7;
}

input,
select,
textarea,
button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 28px;
}

.lead-panel,
.loan-form,
.thank-you-card {
  border: 1px solid rgba(217, 222, 231, 0.88);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lead-panel {
  min-height: 680px;
  padding: 34px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(23, 35, 58, 0.94), rgba(23, 35, 58, 0.82)),
    url("https://images.unsplash.com/photo-1563986768494-4dee2763ff3f?auto=format&fit=crop&w=1100&q=80")
      center/cover;
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.brand-name,
.brand-subtitle,
.eyebrow,
.intro,
.form-header p,
.legal-note,
.thank-you-card p {
  margin: 0;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.lead-copy {
  max-width: 560px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-panel .eyebrow {
  color: #ffd18a;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.98;
  max-width: 760px;
}

.intro {
  margin-top: 22px;
  max-width: 500px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  line-height: 1.7;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.summary-box div {
  min-height: 96px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 850;
}

.summary-label {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.trust-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.trust-list li {
  position: relative;
  padding-left: 24px;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd18a;
}

.form-panel {
  width: 100%;
}

.loan-form {
  padding: 30px;
  border-radius: 8px;
}

.form-header {
  margin-bottom: 24px;
}

.form-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.06;
}

.form-header p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.success-message {
  display: none;
  margin-bottom: 20px;
  border: 1px solid rgba(9, 139, 104, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  color: #0c5f4a;
  background: #ecfdf6;
  line-height: 1.55;
}

.success-message strong {
  display: block;
  margin-bottom: 2px;
}

.form-sent .success-message {
  display: block;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: #303746;
  font-size: 0.9rem;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field textarea {
  min-height: 118px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(36, 88, 211, 0.12);
}

.consent {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  color: #3c4554;
  font-size: 0.9rem;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.legal-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.submit-button,
.return-link {
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--blue));
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(36, 88, 211, 0.22);
}

.submit-button {
  width: 100%;
  margin-top: 22px;
}

.submit-button:hover,
.return-link:hover {
  filter: brightness(1.04);
}

.hidden-field {
  display: none;
}

.thank-you {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
}

.thank-you-card {
  width: min(560px, 100%);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
}

.thank-you-card .brand-mark {
  margin: 0 auto 22px;
}

.thank-you-card h1 {
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1;
}

.thank-you-card p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.return-link {
  width: 100%;
  margin-top: 26px;
}

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lead-panel {
    min-height: auto;
    gap: 34px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0;
  }

  .lead-panel,
  .loan-form,
  .thank-you-card {
    padding: 22px;
  }

  .summary-box,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .summary-box div {
    min-height: 78px;
  }
}
