/* ============================================================
   Solar Sentinel - public styles
   Theme palette only: dark #000, accent #8ECBDE, white, black.
   Body font minimum 16px throughout. Mobile-first.
   ============================================================ */

:root {
  --sol-dark: #000000;
  --sol-accent: #8ECBDE;
  --sol-accent-tint: rgba(142, 203, 222, 0.16);
  --sol-ink: #000000;            /* all journey text is black, never grey */
  --sol-white: #ffffff;
  --sol-line: #d6dde0;           /* neutral hairline for light cards */
  --sol-error: #b42318;          /* reserved for validation errors only */
  --sol-radius: 14px;
  --sol-font: inherit;           /* inherit the theme font where embedded */
}

/* ---------- STEP 0 WIDGET (embedded via shortcode) ---------- */
.sol-widget {
  font-family: var(--sol-font);
  max-width: 480px;
  margin: 0 auto;
  border-radius: var(--sol-radius);
  overflow: hidden;
  /* Solid dark background with subtle accent glow so it stands out */
  background:
    radial-gradient(circle at 86% 14%, rgba(142, 203, 222, 0.30), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(142, 203, 222, 0.18), transparent 40%),
    var(--sol-dark);
  color: var(--sol-white);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.sol-widget__inner { padding: 30px 26px; }
.sol-widget__heading {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--sol-white);
  margin: 0 0 10px;
}
.sol-widget__subheading {
  font-size: 17px;
  line-height: 1.55;
  color: var(--sol-white);
  margin: 0 0 22px;
}
.sol-widget__field { margin-bottom: 18px; }
.sol-widget__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--sol-white);
  margin: 0 0 10px;
}
.sol-widget input[type="email"] {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--sol-ink);
  background: var(--sol-white);
  box-sizing: border-box;
  -webkit-appearance: none;
}
.sol-widget input[type="email"]::placeholder { color: #4a4a4a; }
.sol-widget input[type="email"]:focus {
  outline: none;
  border-color: var(--sol-accent);
  box-shadow: 0 0 0 3px rgba(142, 203, 222, 0.45);
}

/* Radio cards inside the dark widget */
.sol-radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  margin-bottom: 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sol-radio:hover { border-color: rgba(142, 203, 222, 0.7); }
.sol-radio input {
  margin-top: 3px;
  width: 19px; height: 19px;
  accent-color: var(--sol-accent);
  flex: 0 0 auto;
}
.sol-radio span { font-size: 16px; color: var(--sol-white); line-height: 1.45; }
.sol-radio span strong { font-weight: 700; }
.sol-radio span small {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}
.sol-radio:has(input:checked) {
  border-color: var(--sol-accent);
  background: var(--sol-accent-tint);
  box-shadow: 0 0 0 1px var(--sol-accent) inset;
}

.sol-widget__error {
  display: none;
  font-size: 16px;
  color: var(--sol-ink);
  background: #fdecea;
  border: 1px solid var(--sol-error);
  border-radius: 9px;
  padding: 12px 14px;
  margin: 14px 0;
}
.sol-widget__btn-wrap { margin-top: 8px; }

/* Widget CTA: accent fill on the dark panel for contrast (theme accent colour) */
.sol-widget__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  background: var(--sol-accent);
  color: var(--sol-dark);
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
.sol-widget__cta:hover { filter: brightness(0.94); }
.sol-widget__cta:active { transform: translateY(1px); }
.sol-widget__cta:disabled { opacity: .65; cursor: not-allowed; }

/* ============================================================
   STANDALONE WIZARD PAGE (Screens 1-8) - light, black text
   ============================================================ */
.sol-body {
  margin: 0;
  background: var(--sol-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--sol-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.sol-header {
  background: var(--sol-white);
  border-bottom: 2px solid var(--sol-accent);
}
.sol-header__inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sol-header__logo img { max-height: 40px; width: auto; display: block; }
.sol-header__phone {
  color: var(--sol-ink);
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
}

.sol-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.sol-screen { display: none; animation: solFade .3s ease; }
.sol-screen--active { display: block; }
@keyframes solFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.sol-screen h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  margin: 4px 0 10px;
  color: var(--sol-ink);
}
.sol-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--sol-ink);   /* black, not grey */
  margin: 0 0 24px;
}
.sol-qblock { margin-bottom: 28px; }
.sol-qlabel {
  font-size: 16px;
  font-weight: 700;
  color: var(--sol-ink);
  margin: 0 0 13px;
}

/* Option + checkbox cards on the light journey */
.sol-option, .sol-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--sol-line);
  border-radius: 11px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--sol-white);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.sol-option:hover, .sol-check:hover { border-color: var(--sol-accent); }
.sol-option input, .sol-check input {
  margin-top: 3px;
  width: 19px; height: 19px;
  accent-color: var(--sol-dark);
  flex: 0 0 auto;
}
.sol-option span, .sol-check span {
  font-size: 16px;
  color: var(--sol-ink);
  line-height: 1.45;
}
.sol-option span strong { font-weight: 700; }
.sol-option span small {
  display: block;
  margin-top: 3px;
  font-size: 16px;       /* min 16px, black (no grey subtext) */
  font-weight: 400;
  color: var(--sol-ink);
  line-height: 1.45;
}
.sol-option:has(input:checked),
.sol-check:has(input:checked) {
  border-color: var(--sol-accent);
  background: var(--sol-accent-tint);
  box-shadow: 0 0 0 1px var(--sol-accent) inset;
}

.sol-field { margin-bottom: 18px; }
.sol-field label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--sol-ink);
}
.sol-field input {
  width: 100%;
  margin-top: 7px;
  padding: 15px 16px;
  border: 1px solid var(--sol-line);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--sol-ink);
  box-sizing: border-box;
  -webkit-appearance: none;
}
.sol-field input:focus {
  outline: none;
  border-color: var(--sol-accent);
  box-shadow: 0 0 0 3px rgba(142, 203, 222, 0.40);
}
.sol-hint {
  font-size: 16px;
  color: var(--sol-ink);
  margin-top: 9px;
}

.sol-error {
  display: none;
  font-size: 16px;
  color: var(--sol-ink);
  background: #fdecea;
  border: 1px solid var(--sol-error);
  border-radius: 9px;
  padding: 12px 14px;
  margin: 14px 0;
}
.sol-field-error {
  display: none;
  font-size: 16px;
  color: var(--sol-error);
  margin: 7px 0 0;
}

/* Progressive reveal: stages hidden until the prior stage is answered */
.sol-stage-hidden { display: none !important; }

/* Buttons: primary uses the theme dark colour (#000) with white text */
.sol-btn-wrap {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.sol-next {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--sol-dark);
  color: var(--sol-white);
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, transform .05s;
}
.sol-next:hover { filter: brightness(1.25); }
.sol-next:active { transform: translateY(1px); }
.sol-next:disabled { opacity: .6; cursor: not-allowed; }

.sol-back {
  flex: 0 0 auto;
  padding: 16px 22px;
  background: var(--sol-white);
  color: var(--sol-ink);
  border: 1px solid var(--sol-line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.sol-back:hover { border-color: var(--sol-accent); }

/* OTP */
.sol-otp-sent { font-size: 16px; color: var(--sol-ink); margin: 0 0 18px; }
.sol-otp-field input {
  letter-spacing: .45em;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}
.sol-resend { font-size: 16px; color: var(--sol-ink); margin-top: 16px; }
.sol-resend a { color: var(--sol-ink); font-weight: 700; text-decoration: underline; }

/* Success */
.sol-success { text-align: center; padding-top: 34px; }
.sol-success__icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--sol-accent-tint);
  color: var(--sol-dark);
  font-size: 40px;
  line-height: 76px;
  border: 2px solid var(--sol-accent);
}
.sol-success p { font-size: 16px; line-height: 1.6; color: var(--sol-ink); }
.sol-success__sign {
  margin-top: 20px;
  font-weight: 700;
  color: var(--sol-ink);
}
.sol-success__more { margin-top: 22px; }
.sol-success__cta {
  display: inline-flex;
  flex: 0 0 auto;
  margin: 14px auto 6px;
  text-decoration: none;
}

@media (min-width: 560px) {
  .sol-screen h2 { font-size: 29px; }
  .sol-widget__heading { font-size: 32px; }
}
