/* ==========================================================================
   JustChoice Lending — campaign landing + thank-you pages
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens and color variables from figma
   -------------------------------------------------------------------------- */

:root {
  /* brand */
  --jcl-blue: #0073ae;
  --jcl-teal: #58c6d2;

  --chip-bg: #58C6D2;
  --chip-border: #58c6d2;
  --chip-text: #fff;

  /* text */
  --text-body: #464040;
  --text-ink: #1a1a1a;
  --text-inverse: #ffffff;
  --text-muted: #888888;

  /* lines + surfaces */
  --rule: #ccc;
  --field-border: #b2b2b2;
  --surface-footer: #f7f7f7;
  --tint-rgb: 217, 234, 243; /* pale blue section wash */

  /* typography */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --page-max: 1440px;
  --gutter: 90px;
  --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

picture {
  display: contents;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

a {
  color: inherit;
}

.rule {
  width: 95px;
  height: 2px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

.rule--center {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--jcl-blue);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #005e8f;
}

/* --------------------------------------------------------------------------
   4. Header + footer
   -------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.site-header__logo {
  width: 159px;
  height: 75px;
  object-fit: contain;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  background: var(--surface-footer);
}

/* Fixed height, width from the SVG's own ratio. The mark ships with its fill
   baked in (#464040) because an external SVG in an <img> can't see currentColor. */
.site-footer__mark {
  width: auto;
  height: 88px;
  margin-bottom: 14px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Section shells
   -------------------------------------------------------------------------- */

.section--wash-down {
  background-image: linear-gradient(
    to bottom,
    rgba(var(--tint-rgb), 0) 0%,
    rgba(var(--tint-rgb), 0.85) 100%
  );
}

.section--wash-up {
  background-image: linear-gradient(
    to top,
    rgba(var(--tint-rgb), 0) 0%,
    rgba(var(--tint-rgb), 0.85) 100%
  );
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   6. Hero (both pages)
   -------------------------------------------------------------------------- */

.hero {
  padding-block: 72px 120px;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: 202px;
  padding-right: 197px;
}

.hero__copy {
  width: 520px;
  flex: 0 0 auto;
}

.hero__title {
  color: var(--jcl-blue);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.32;
}

.hero__copy .rule {
  margin-top: 20px;
}

.hero__copy p {
  margin-top: 26px;
  width: 100%;
  max-width: 520px;
  font-size: 16px;
  line-height: 24px;
}

.hero__copy p + p {
  margin-top: 24px;
}

.hero__copy .btn {
  margin-top: 24px;
}

.hero__copy p.hero__fine {
  margin-top: 19px;
}

.hero__media {
  flex: 0 0 auto;
}

.hero__media img {
  width: 520px;
  height: auto;
}

.hero__media--narrow img {
  width: 482px;
}

/* --------------------------------------------------------------------------
   7. "Ways we can help" photo band (landing)
   -------------------------------------------------------------------------- */

.band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 300px;
  padding: 66px 24px 44px;
  background-image: url("assets/band-home@1x.webp");
  background-image: image-set(
    url("assets/band-home@1x.avif") type("image/avif") 1x,
    url("assets/band-home.avif") type("image/avif") 2x,
    url("assets/band-home@1x.webp") type("image/webp") 1x,
    url("assets/band-home.webp") type("image/webp") 2x
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: var(--text-inverse);
}

.band__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  max-width: 733px;
}

.band .rule {
  margin-top: 24px;
}

.band p {
  margin-top: 24px;
  max-width: 676px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

/* --------------------------------------------------------------------------
   8. Split section
   -------------------------------------------------------------------------- */

.split {
  padding-block: 100px;
}
.split-tight {
  padding-top: 40px;
}
.split__inner {
  display: flex;
  align-items: center;
  gap: 132px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.split__media {
  flex: 0 0 auto;
}

.split__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.split__title {
  color: var(--jcl-blue);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.28;
}

.split__copy .rule {
  margin-top: 24px;
}

.checklist {
  margin-top: 24px;
  padding-left: 16px;
  list-style: disc;
}

.checklist li {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--text-body);
}

/* --------------------------------------------------------------------------
   9. FAQ
   -------------------------------------------------------------------------- */

.faq {
  padding-block: 100px;
}

.faq--tight {
  padding-bottom: 0;
}

.faq__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: 90px;
  padding-right: 126px;
}

.faq__title {
  color: var(--jcl-blue);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 46px;
}

.faq__list {
  margin-top: 33px;
}

.faq__item {
  padding: 40px 8px 40px 0;
  border-top: 1px solid var(--rule);
}

.faq__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq__q {
  color: var(--text-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.faq__a {
  margin-top: 24px;
  color: var(--text-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   10. "Get started" section + Mailchimp embed (landing)
   -------------------------------------------------------------------------- */

.form-section {
  padding-block: 75px 100px;
}

.form-section__inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: 418px;
  padding-right: 274px;
}

.form-section__title {
  color: var(--jcl-blue);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  line-height: 38.4px;
}

.form-section__intro {
  margin-top: 16px;
  max-width: 545px;
  font-size: 16px;
  line-height: 24px;
}

/* Embed shell ------------------------------------------------------------ */

#mc_embed_signup {
  width: auto;
  clear: none;
  background: transparent;
  font: inherit;
}

#mc_embed_signup form {
  margin: 0;
  padding: 0;
}

#mc_embed_signup_scroll {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 294px));
  gap: 20px 30px;
  align-items: start;
  margin-top: 24px;
}

#mc_embed_signup .indicates-required,
#mc_embed_signup .mc-field-group.input-group,
#mc_embed_signup .form-note,
#mc_embed_signup #mce-responses,
#mc_embed_signup .clear {
  grid-column: 1 / -1;
}

#mc_embed_signup .indicates-required {
  margin-bottom: 12px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 24px;
}

#mc_embed_signup .asterisk {
  color: inherit;
  font-weight: inherit;
}

/* Fields ----------------------------------------------------------------- */

#mc_embed_signup .mc-field-group {
  display: flex;
  flex-direction: column;
}

#mc_embed_signup .mc-field-group > label {
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

#mc_embed_signup .mc-field-group input[type="text"],
#mc_embed_signup .mc-field-group input[type="email"],
#mc_embed_signup .mc-field-group input[type="tel"],
#mc_embed_signup .mc-field-group input[type="number"],
#mc_embed_signup .mc-field-group select {
  width: 100%;
  height: 48px;
  margin-top: 9px;
  padding: 0 20px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-pill);
  background-color: #fff;
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
}

#mc_embed_signup .mc-field-group input:focus-visible,
#mc_embed_signup .mc-field-group select:focus-visible {
  border-color: var(--jcl-blue);
  outline: 2px solid var(--jcl-blue);
  outline-offset: 1px;
}

#mc_embed_signup .mc-field-group select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23222' d='m18 9-6 6-6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 24px 24px;
}

/* Spinners sit badly inside a pill, and neither figure is stepped through. */
#mc_embed_signup .mc-field-group input[type="number"] {
  appearance: textfield;
}

#mc_embed_signup .mc-field-group input[type="number"]::-webkit-outer-spin-button,
#mc_embed_signup .mc-field-group input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

/* Radio groups, drawn as chips ------------------------------------------- */

#mc_embed_signup .input-group > strong {
  display: block;
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

#mc_embed_signup .input-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

#mc_embed_signup .input-group li {
  margin: 0;
}

/* Visually hidden, still focusable and still the accessible control. */
#mc_embed_signup .input-group input[type="radio"],
#mc_embed_signup .input-group input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#mc_embed_signup .input-group label {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#mc_embed_signup .input-group label:hover {
  border-color: var(--jcl-blue);
  color: var(--jcl-blue);
}

#mc_embed_signup .input-group input:checked + label {
  border-color: var(--jcl-blue);
  background: var(--jcl-blue);
  color: var(--text-inverse);
}

#mc_embed_signup .input-group input:focus-visible + label {
  outline: 2px solid var(--jcl-blue);
  outline-offset: 2px;
}

/* Disclaimers ------------------------------------------------------------ */

.form-note {
  color: var(--text-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

#mc_embed_signup .form-note + .form-note {
  margin-top: -4px;
}

/* Responses -------------------------------------------------------------- */

#mc_embed_signup #mce-responses {
  display: contents;
}

#mc_embed_signup .response {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

#mc_embed_signup #mce-error-response {
  background: #fdeaea;
  color: #8c1c1c;
}

#mc_embed_signup #mce-success-response {
  background: #e8f6ee;
  color: #1c6b3f;
}

/* Submit ----------------------------------------------------------------- */

#mc_embed_signup .clear {
  margin-top: 12px;
}

#mc_embed_signup input[type="submit"].button {
  display: inline-block;
  min-width: 140px;
  padding: 12px 40px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--jcl-blue);
  color: var(--text-inverse);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transition: background-color 0.15s ease;
}

#mc_embed_signup input[type="submit"].button:hover,
#mc_embed_signup input[type="submit"].button:focus-visible {
  background: #005e8f;
}

/* --------------------------------------------------------------------------
   11. "About JustChoice Lending" (thank-you page)
   -------------------------------------------------------------------------- */

.about {
  padding-block: 60px 94px;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 83px;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-left: 202px;
  padding-right: 189px;
}

.about__copy {
  width: 520px;
  flex: 0 0 auto;
}

.about__title {
  color: var(--jcl-blue);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.28;
}

.about__copy .rule {
  margin-top: 24px;
}

.about__copy p {
  margin-top: 24px;
  font-size: 16px;
  line-height: 24px;
}

.about__copy .btn {
  margin-top: 24px;
}

.about__media {
  flex: 0 0 auto;
}

.about__media img {
  width: 446px;
}

/* --------------------------------------------------------------------------
   12. Responsive / breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1300px) {
  .hero__inner {
    padding-inline: var(--gutter);
    gap: 48px;
  }

  .faq__inner {
    padding-inline: var(--gutter);
  }

  .form-section__inner {
    padding-inline: var(--gutter);
  }

  .about__inner {
    padding-inline: var(--gutter);
    gap: 56px;
  }

  .split__inner {
    gap: 64px;
  }

  .hero__media img,
  .hero__media--narrow img,
  .split__media img,
  .about__media img {
    width: 100%;
  }

  .hero__media,
  .split__media,
  .about__media {
    flex: 0 1 482px;
    min-width: 0;
  }

  .hero__copy,
  .about__copy {
    width: auto;
    flex: 1 1 420px;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 40px;
  }

  .hero {
    padding-block: 48px 64px;
  }

  .hero__inner,
  .split__inner,
  .about__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__media,
  .split__media,
  .about__media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 520px;
  }

  .split {
    padding-block: 64px;
  }

  .faq {
    padding-block: 64px;
  }

  .form-section {
    padding-block: 40px 64px;
  }

  .about {
    padding-block: 48px 64px;
  }

}

@media (max-width: 700px) {
  #mc_embed_signup_scroll {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .hero__title {
    font-size: 32px;
  }

  .split__title,
  .about__title {
    font-size: 32px;
  }

  .band__title,
  .faq__title,
  .form-section__title {
    font-size: 28px;
  }

  .band {
    padding-block: 48px;
  }

  .faq__q,
  .faq__a {
    font-size: 17px;
  }

  .faq__item {
    padding-block: 28px;
  }
}
