:root {
  --blue: #2f6ea5;
  --blue-dark: #1f4d77;
  --green: #4e972e;
  --text: #21415d;
  --muted: #6d8397;
  --line: #dbe6ee;
  --shadow: 0 20px 60px rgba(18, 47, 72, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100%;
  color: var(--text);
}

body {
  background:
    radial-gradient(circle at top left, rgba(139, 180, 210, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(78, 151, 46, 0.10), transparent 30%),
    linear-gradient(180deg, #edf3f7 0%, #f8fbfd 100%);
}

.apply-page {
  min-height: 100vh;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px 42px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
}

.logo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  height: auto;
}

.main-logo {
  width: 240px;
  max-width: 42vw;
}

.summary-logo {
  width: 180px;
  margin-bottom: 22px;
}

.form-logo {
  width: 170px;
  margin-bottom: 14px;
}

.thank-logo {
  width: 180px;
  margin: 0 auto 14px;
}

.single-page-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  padding-top: 98px;
}

.apply-left {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.summary-box {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.eyebrow.blue {
  color: #dff0fb;
}

.summary-box h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.1rem);
  line-height: 1.05;
}

.summary-amount {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.summary-note {
  margin: 0;
  font-size: 1rem;
  opacity: 0.92;
}

.loan-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.loan-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 26px;
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: 0.2s ease;
}

.loan-card:hover,
.loan-card.active {
  transform: translateY(-2px);
  border-color: var(--green);
}

.loan-card span {
  display: block;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
}

.loan-card strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.loan-card small {
  color: var(--muted);
  font-size: 0.95rem;
}

.apply-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px 48px 20px;
}

.form-panel {
  width: 100%;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 36px;
}

.form-top h2 {
  margin: 0 0 22px;
  color: var(--blue-dark);
  font-size: 2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

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

label {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--blue-dark);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 1rem;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: white;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-row label {
  margin: 0;
  font-weight: 500;
  color: var(--muted);
}

.primary-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 18px;
  padding: 16px 26px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(47, 110, 165, 0.16);
}

.small-btn {
  min-width: 150px;
}

.full-btn {
  width: 100%;
}

.thank-you-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 43, 67, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 999;
}

.hidden {
  display: none;
}

.thank-you-card {
  width: min(100%, 420px);
  background: white;
  border-radius: 28px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
}

.thank-you-card h2 {
  margin: 0 0 10px;
  color: var(--blue-dark);
}

.thank-you-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .single-page-layout {
    grid-template-columns: 1fr;
  }

  .apply-left,
  .apply-right {
    padding: 120px 24px 32px;
  }

  .loan-selector,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 18px 20px;
  }

  .main-logo {
    width: 190px;
  }
}

@media (max-width: 640px) {
  .summary-box,
  .loan-card,
  .form-panel {
    border-radius: 24px;
  }

  .form-panel {
    padding: 24px;
  }
}
