/**
 * sinopak/ab-cta block styles
 *
 * Template rules reproduced: .final-cta / .inquiry-panel (+ h2, p) and —
 * applied to the embedded sinopak/lead-form through composite selectors —
 * .form-grid / .form-field (+ input, select, textarea, .full) / .submit-row
 * (+ .cta, p), plus the 980 / 640 overrides.
 *
 * NOTE (faithful to the template, not a mistake): `.inquiry-panel p` is more
 * specific than `.label`, so the eyebrow inside the panel renders at 18px /
 * line-height 1.55 in the soft white panel colour rather than orange 13px.
 * Reproduced verbatim.
 */
@layer spk-block {
  .spk-x-ab-cta-band {
    padding: clamp(64px, 7vw, 96px) 0;
    background: #fff;
  }

  .spk-x-ab-cta-band__panel {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: clamp(34px, 5vw, 70px);
    padding: clamp(38px, 4.8vw, 62px);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(115deg, #08a8d2 0%, #087eae 34%, #064a7d 66%, #062b5c 100%);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16);
  }
  .spk-x-ab-cta-band__panel .spk-x-ab-label {
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.55;
  }

  .spk-x-ab-cta-band__heading {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(34px, 4.4vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.03em;
  }

  .spk-x-ab-cta-band__text {
    margin: 0;
  }
  .spk-x-ab-cta-band__text p {
    margin: 0 0 1em;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.55;
  }

  /* ── embedded sinopak/lead-form → template .form-grid ── */
  .spk-x-ab-cta-band .spk-x-lead-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .spk-x-ab-cta-band .spk-x-lead-form__field {
    display: grid;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  .spk-x-ab-cta-band .spk-x-lead-form input,
  .spk-x-ab-cta-band .spk-x-lead-form select,
  .spk-x-ab-cta-band .spk-x-lead-form textarea {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 10px;
    padding: 0 22px;
    background: #f8fafc;
    color: #142231;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }
  .spk-x-ab-cta-band .spk-x-lead-form textarea {
    min-height: 150px;
    padding-block: 20px;
    resize: vertical;
  }
  .spk-x-ab-cta-band .spk-x-lead-form__field--full {
    grid-column: 1 / -1;
  }
  /* .submit-row:模板是 gap:18px 的两行栅格;这里 CTA 与保证语是表单栅格的
     两个整行条目(row-gap 20px),用 -2px 抵到 18px。 */
  .spk-x-ab-cta-band .spk-x-lead-form__cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-height: 62px;
    gap: 12px;
    border-radius: 10px;
    padding: 0 30px;
    background: #f28a2e;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .spk-x-ab-cta-band .spk-x-lead-form__assurance {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 16px;
    line-height: 1.5;
  }
  .spk-x-ab-cta-band .spk-x-lead-form__status {
    grid-column: 1 / -1;
    margin: 0;
    color: #fff;
  }
}

@layer spk-responsive {
  @media (max-width: 980px) {
    .spk-x-ab-cta-band__panel {
      grid-template-columns: 1fr;
    }
  }
  @media (max-width: 640px) {
    .spk-x-ab-cta-band__panel {
      padding: 28px 18px;
      border-radius: 18px;
    }
    .spk-x-ab-cta-band .spk-x-lead-form {
      grid-template-columns: 1fr;
    }
  }
}
