/* ==========================================================================
   SPINE ADDONS — 360 Study widget (sp-study)
   --------------------------------------------------------------------------
   Scoped version of 360/css/study.css: every rule lives under .sp-study so
   it cannot leak into the host page. body/html rules became .sp-study rules.
   ========================================================================== */

.sp-study {
  box-sizing: border-box;
  background: #000;
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sp-study *,
.sp-study *::before,
.sp-study *::after {
  box-sizing: border-box;
}
.sp-study a {
  color: #fff;
}
.sp-study a:hover {
  color: #cfe1ff;
}
.sp-study button {
  font-family: inherit;
}
/* Small uppercase mono label used for the badge and "Quick eligibility check" */
.sp-study .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8d96a6;
}
.sp-study .inner {
  margin: 0 auto;
}
/* Hide-until-JS-shows elements (.sp-form, .sp-ok, .sp-err) */
.sp-study [hidden] {
  display: none !important;
}
/* Keyboard focus ring shared by every control in the widget */
.sp-study :focus-visible {
  outline: 2px solid #7aa7ff;
  outline-offset: 2px;
}

/* ==========================================================================
   STUDY CARD
   ========================================================================== */

/* --- Study card: two columns (intro | eligibility) --------------------- */
.sp-study .study {
  border: 1px solid #262626;
  border-radius: 14px;
  background: #0b0b0c;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}
/* Left column: badge, heading, copy, buttons stacked */
.sp-study .study .l {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- "Now enrolling" badge --------------------------------------------- */
.sp-study .badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #2f3a4d;
  border-radius: 999px;
  color: #cfe1ff;
}
.sp-study .badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8fbaff;
}
.sp-study .study h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}
.sp-study .study .copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b4b4b4;
}

/* --- Buttons (Book Consultation / Learn More / Request Call Back) ------ */
.sp-study .btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sp-study .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid #262626;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.sp-study .btn:hover,
.sp-study .btn:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.sp-study .btn:disabled,
.sp-study .btn:disabled:hover {
  opacity: .4;
  cursor: not-allowed;
  background: #111;
  color: #fff;
  border-color: #262626;
}

/* ==========================================================================
   QUICK ELIGIBILITY CHECK (.elig)
   ========================================================================== */

/* Column container inside the card; the eligibility anchor is a jump-link target */
.sp-study .elig {
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-margin-top: 24px;
}

/* --- One question row: text on the left, Yes/No chips on the right ----- */
.sp-study .q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1c1c1c;
}
.sp-study .q > span {
  font-size: 13.5px;
  line-height: 1.5;
}
.sp-study .yn {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.sp-study .chip {
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #333;
  background: #141414;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.sp-study .chip:hover {
  border-color: #555;
  color: #fff;
}
/* Selected answer (aria-pressed is toggled by assets/js/study.js) */
.sp-study .chip[aria-pressed="true"] {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* --- Result panel: outcome headline + explanation ----------------------- */
.sp-study .res {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #10141c;
  border: 1px solid #1f2837;
}
.sp-study .res b {
  font-size: 14px;
  font-weight: 600;
  color: #dbe8ff;
}
.sp-study .res .rt {
  font-size: 12.5px;
  line-height: 1.6;
  color: #b4b4b4;
}

/* ==========================================================================
   CALL-BACK FORM (.form)
   ========================================================================== */
.sp-study .form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  animation: sp-rev .35s ease-out;
}
/* Phone + email side by side */
.sp-study .fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sp-study .form label.f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #8d96a6;
}
.sp-study .field {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #2c2c2c;
  background: #0e0e0e;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.sp-study .field:focus {
  outline: none;
  border-color: #8fbaff;
}
.sp-study .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.5;
  color: #a8a8a8;
  cursor: pointer;
}
.sp-study .consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex-shrink: 0;
  accent-color: #8fbaff;
}

/* --- Confirmation + error states --------------------------------------- */
.sp-study .ok {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #0f1a12;
  border: 1px solid #1f3a26;
  animation: sp-rev .35s ease-out;
}
.sp-study .ok span {
  font-size: 13px;
  line-height: 1.5;
  color: #d6f2de;
}
.sp-study .err {
  font-size: 12px;
  color: #ffb4a8;
}

/* --- Small print under the card ---------------------------------------- */
.sp-study .fine {
  font-size: 11px;
  line-height: 1.6;
  color: #8a8a8a;
}

/* Slide-down used by .form and .ok when they appear */
@keyframes sp-rev {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Mobile: single column
   ========================================================================== */
@media (max-width: 720px) {
  .sp-study .study {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px;
  }
  .sp-study .study h2 {
    font-size: 24px;
  }

  /*.sp-study .study .btns {*/
  /*  display: grid;*/
  /*  grid-template-columns: 1fr 1fr;*/
  /*}*/
  .sp-study .q {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: 16px;
  }
  .sp-study .q > span {
    font-size: 14px;
  }
  .sp-study .yn {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .sp-study .fields {
    grid-template-columns: 1fr;
  }
}
