/*
 * subscribe-option.css — Toro Legal Marketing
 * Figma node: 921:8591 (Subscribe / Section / Option)
 *
 * White two-column band under the hero. Left column: section heading +
 * the subscribe form card (Gravity Forms id 4 — inputs/checkboxes/button
 * are styled by the shared forms.css; this module owns the card shell,
 * heading and fine-print). Right column: "From the inbox" eyebrow +
 * "Recent Marketing Matters" feed (subscribe-feed.css) + two ghost CTAs.
 *
 * Mobile: single column, form first then feed. Desktop: form left,
 * feed right, feed nudged down to align with the form card per Figma.
 */

.tlm-subscribe-option {
  background: var(--color-white);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-5xl);
}

.tlm-subscribe-option__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

/* ============================================
 * Left — heading + form card
 * ============================================ */

.tlm-subscribe-option__form-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tlm-subscribe-option__heading {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h4-mobile);        /* 28 mobile */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
  text-align: left;
  margin: 0;
}

.tlm-subscribe-option__card {
  background: var(--color-white);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .tlm-subscribe-option__card {
    padding: var(--space-xl) var(--space-lg);
  }
}

.tlm-subscribe-option__placeholder {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-navy-subtle);
  margin: 0;
}

/* ----- Checkbox choices: Figma two-line style (title + description) -----
   The GF choice labels carry <span class="tlm-choice-title"> +
   <span class="tlm-choice-desc"> (set on the form's choices). Scoped to
   this card so other Gravity Forms keep the shared single-line label. */
.tlm-subscribe-option__card .gfield_checkbox .gchoice label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

/* Breathing room under the "What are you interested in?" field title,
   before the first checkbox choice. */
.tlm-subscribe-option__card .gfield--type-checkbox > .gfield_label {
  margin-bottom: var(--space-xs);
}

.tlm-subscribe-option__card .tlm-choice-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);               /* match the field title (.gfield_label) */
  line-height: var(--leading-normal);
  color: var(--color-navy);
}

.tlm-subscribe-option__card .tlm-choice-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-navy-muted);
}

/* The checkbox sits a touch lower to align with the title line. */
.tlm-subscribe-option__card .gfield_checkbox .gchoice input[type="checkbox"] {
  margin-top: 4px;
}

.tlm-subscribe-option__fineprint {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-navy-muted);
  text-align: left;
  margin: var(--space-sm) 0 0;
}

/* ============================================
 * Right — feed head + CTAs
 * ============================================ */

.tlm-subscribe-option__feed-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.tlm-subscribe-option__feed-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tlm-subscribe-option__feed-title {
  font-family: var(--font-serif);
  font-weight: var(--weight-regular);
  font-size: var(--text-h2-mobile);        /* 32 */
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--color-navy);
  margin: 0;
}

.tlm-subscribe-option__ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  /* Pull the CTA up closer to the feed list (Paul 25/06). */
  margin-top: calc(-1 * var(--space-md));
}

/* Ghost CTAs go full-width in this column (override the inline-flex base). */
.tlm-subscribe-option__cta {
  width: 100%;
}

/* ============================================
 * Desktop (≥1024px) — two columns
 * ============================================ */

@media (min-width: 1024px) {
  .tlm-subscribe-option__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-5xl);
  }

  .tlm-subscribe-option__form-col {
    flex: 0 1 628px;
    align-items: stretch;
  }

  .tlm-subscribe-option__heading {
    font-size: var(--text-h4);             /* 32 — smaller, left-aligned (Paul 25/06) */
    text-align: left;
  }

  .tlm-subscribe-option__card {
    width: 100%;
  }

  .tlm-subscribe-option__feed-col {
    flex: 1 1 0;
    min-width: 0;
    /* Top-aligned with the left column so "Recent Insights" sits level
       with "Join 500+" (Paul 25/06). */
    padding-top: 0;
  }

  .tlm-subscribe-option__feed-title {
    font-size: var(--text-h4);             /* 32 — stays 32 on desktop per Figma H4 */
  }
}
