@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --purple: #6b4ff2;
  --purple-dark: #5b3fe0;
  --footer-navy: #2b2a5c;
  --form-bg: #e8e5f8;
  --text-dark: #2f2b52;
  --text-muted: #6b6785;
  --border: #d9d5ef;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--footer-navy);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  position: relative;
  background-image: linear-gradient(180deg, rgba(150, 150, 210, 0.15), rgba(150, 130, 200, 0.25)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 64px 24px 72px;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.wordmark {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 36px;
}

.wordmark svg,
.wordmark img {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.hero-text {
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.35;
  margin: 0 0 30px;
  text-shadow: 0 2px 12px rgba(40, 20, 80, 0.25);
}

.hero-text strong {
  font-weight: 900;
}

.hero-lead {
  color: #fff;
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 22px;
  text-shadow: 0 2px 12px rgba(40, 20, 80, 0.25);
}

.hero-lead strong {
  font-weight: 800;
}

.hero-amount {
  color: #fff;
  font-weight: 900;
  font-size: 42px;
  margin: 0 0 22px;
  text-shadow: 0 2px 12px rgba(40, 20, 80, 0.25);
}

.hero-sub {
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
  text-shadow: 0 2px 12px rgba(40, 20, 80, 0.25);
}

/* form section */
.form-section {
  background: var(--form-bg);
  padding: 48px 24px 56px;
}

.form-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.form-title {
  color: var(--purple);
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 22px;
}

.field-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin: 0 0 10px;
}

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.field-row input {
  flex: 1;
  min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

input::placeholder {
  color: #9a96b5;
  font-weight: 600;
}

input:focus {
  border-color: var(--purple);
}

.was-validated input:invalid {
  border-color: #e0455c;
  background: #fff3f4;
}

.was-validated .consent:has(input:invalid) {
  color: #e0455c;
}

.was-validated .consent:has(input:invalid) span {
  color: #e0455c;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 6px 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  padding: 16px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn-outline:hover {
  background: rgba(107, 79, 242, 0.08);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.btn-outline .btn-spinner {
  border-color: rgba(107, 79, 242, 0.3);
  border-top-color: var(--purple);
}

.btn.is-loading {
  cursor: progress;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 640px;
}

.consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--purple);
  flex: none;
}

.consent a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* footer */
.site-footer {
  background: var(--footer-navy);
  color: #cfcce8;
  padding: 28px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.6;
}

.footer-inner p {
  margin: 0 0 12px;
}

.footer-inner p:last-child {
  margin-bottom: 0;
}

.footer-inner a {
  text-decoration: underline;
}

/* thanks page specific */
.thanks-hero {
  flex: 1;
  display: flex;
  align-items: center;
}

.thanks-hero .hero-inner {
  padding: 40px 0;
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 20px 44px;
  }

  .wordmark {
    max-width: 320px;
    margin-bottom: 22px;
  }

  .hero-text {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero-amount {
    font-size: 28px;
    margin-bottom: 14px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .form-section {
    padding: 32px 20px 40px;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  .field-row {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    padding: 22px 20px;
  }
}
