/* PorchLight Tub — Quiz Widget Styles
   All classes prefixed with pl- to avoid conflicts with the parent page's CSS.
   Brand: warm amber #F5B841, deep navy #1B2A41, sage #9CAF88, off-white #FAF7F2.
*/

.pl-widget {
  --pl-gold: #F5B841;
  --pl-navy: #1B2A41;
  --pl-sage: #9CAF88;
  --pl-cream: #FAF7F2;
  --pl-charcoal: #2D2D2D;
  --pl-border: #E8E4DB;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;               /* senior-accessibility minimum */
  line-height: 1.6;
  color: var(--pl-charcoal);
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

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

/* --- Header / footer --- */
.pl-header {
  text-align: center;
  padding: 1rem 0 1.5rem;
  border-bottom: 3px solid var(--pl-gold);
  margin-bottom: 1.5rem;
}
.pl-brand {
  font-size: 1.1rem;
  color: var(--pl-navy);
}
.pl-logo {
  color: var(--pl-gold);
  margin-right: 6px;
  font-size: 1.3em;
}
.pl-subtitle {
  font-size: 0.875rem;
  color: #666;
  margin-top: 4px;
}
.pl-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--pl-border);
}

/* --- Card (used for intro, quiz, results, lead form) --- */
.pl-card {
  background: var(--pl-cream);
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(27, 42, 65, 0.04);
}
.pl-card h2 {
  color: var(--pl-navy);
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.pl-card h3 {
  color: var(--pl-navy);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.pl-card p {
  margin: 0 0 1rem;
}
.pl-lead {
  font-size: 1.05rem;
  color: #555;
}

/* --- Intro --- */
.pl-intro {
  text-align: center;
}
.pl-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  display: inline-block;
}
.pl-checklist li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #444;
}
.pl-checklist li::before {
  content: "✓";
  color: var(--pl-sage);
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 1.2em;
}
.pl-fineprint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

/* --- Progress bar --- */
.pl-progress {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.pl-progress-bar {
  height: 100%;
  background: var(--pl-gold);
  transition: width 0.3s ease;
}
.pl-progress-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
  text-align: right;
}

/* --- Quiz options --- */
.pl-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.25rem;
}
.pl-option {
  background: #fff;
  border: 2px solid var(--pl-border);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--pl-charcoal);
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.pl-option:hover {
  border-color: var(--pl-gold);
  background: #fffbf2;
}
.pl-option:active {
  transform: scale(0.99);
}
.pl-back {
  background: none;
  border: none;
  color: #666;
  margin-top: 1rem;
  padding: 8px 0;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.pl-back:hover {
  color: var(--pl-navy);
}

/* --- Buttons --- */
.pl-btn {
  display: inline-block;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.pl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27, 42, 65, 0.15);
}
.pl-btn:active {
  transform: translateY(0);
}
.pl-btn-primary {
  background: var(--pl-gold);
  color: var(--pl-navy);
}
.pl-btn-primary:hover {
  background: #e5a72e;
}
.pl-btn-secondary {
  background: #fff;
  color: var(--pl-navy);
  border: 2px solid var(--pl-border);
  padding: 10px 20px;
  font-size: 0.9rem;
}
.pl-btn-secondary:hover {
  border-color: var(--pl-gold);
}
.pl-btn-home-instead {
  background: var(--pl-navy);
  color: #fff;
}
.pl-btn-home-instead:hover {
  background: #0f1a2a;
}
.pl-btn-lg {
  width: 100%;
  padding: 18px 28px;
  font-size: 1.1rem;
  margin-top: 1rem;
}
.pl-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* --- Results: phase cards --- */
.pl-plan-title {
  font-size: 1.15rem;
  color: var(--pl-navy);
  font-weight: 500;
  margin: 0;
}
.pl-phase-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--pl-border);
}
.pl-phase-num {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--pl-navy);
}
.pl-phase-when {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}
.pl-phase-1 .pl-phase-num { color: var(--pl-sage); }
.pl-phase-2 .pl-phase-num { color: var(--pl-gold); }
.pl-phase-3 .pl-phase-num { color: var(--pl-navy); }

.pl-products {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.pl-products li {
  border-bottom: 1px solid var(--pl-border);
}
.pl-products li:last-child {
  border-bottom: none;
}
.pl-products a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  text-decoration: none;
  color: var(--pl-navy);
  gap: 12px;
}
.pl-products a:hover {
  color: #e5a72e;
}
.pl-price {
  color: #666;
  font-weight: 600;
  flex-shrink: 0;
}

/* --- CTA card (Porchlight) --- */
.pl-cta {
  background: linear-gradient(135deg, #fffbf2 0%, var(--pl-cream) 100%);
  border: 2px solid var(--pl-gold);
  text-align: center;
}
.pl-cta h3 {
  color: var(--pl-navy);
}

/* --- Email capture --- */
.pl-email-capture form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pl-email-capture input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 2px solid var(--pl-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.pl-email-capture input[type="email"]:focus {
  outline: none;
  border-color: var(--pl-gold);
}
.pl-email-sent {
  background: #f1f6ed;
  border-color: var(--pl-sage);
}

/* --- Lead form --- */
.pl-lead-form form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 1.25rem;
}
.pl-lead-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  gap: 6px;
}
.pl-lead-form input[type="text"],
.pl-lead-form input[type="email"],
.pl-lead-form input[type="tel"],
.pl-lead-form select {
  padding: 12px 14px;
  border: 2px solid var(--pl-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--pl-charcoal);
}
.pl-lead-form input:focus,
.pl-lead-form select:focus {
  outline: none;
  border-color: var(--pl-gold);
}
.pl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pl-form-row label {
  margin: 0;
}
.pl-tcpa {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  background: #fffbf2;
  border: 1px solid var(--pl-border);
  border-radius: 8px;
  font-size: 0.85rem !important;
  color: #444 !important;
  line-height: 1.5;
}
.pl-tcpa input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* --- Thanks page --- */
.pl-thanks {
  text-align: center;
  padding: 3rem 2rem;
}
.pl-thanks-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pl-sage);
  color: #fff;
  font-size: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* --- Disclaimers --- */
.pl-disclaimer {
  margin-top: 1rem;
  padding: 1.25rem;
  background: #f5f3ee;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}
.pl-disclaimer p {
  margin: 0 0 8px;
}
.pl-disclaimer p:last-child {
  margin-bottom: 0;
}
.pl-disclaimer strong {
  color: #444;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .pl-widget {
    padding: 0 0.5rem;
    font-size: 16px;
  }
  .pl-card {
    padding: 1.25rem;
    border-radius: 10px;
  }
  .pl-card h2 {
    font-size: 1.4rem;
  }
  .pl-form-row {
    grid-template-columns: 1fr;
  }
  .pl-option {
    padding: 14px 16px;
  }
  .pl-btn {
    width: 100%;
    padding: 16px;
  }
  .pl-email-capture form {
    flex-direction: column;
  }
  .pl-email-capture input[type="email"] {
    min-width: 0;
    width: 100%;
  }
}
