/* ============================================================
   LP5 Retirement Gap Assessment — lp5-style.css
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --lp5-navy:      #751521;
  --lp5-gold:      #d79b48;
  --lp5-light-gold:#F5E9C4;
  --lp5-cream:     #FDFAF4;
  --lp5-slate:     #4A5568;
  --lp5-light-gray:#F7F6F2;
  --lp5-white:     #FFFFFF;
  --lp5-green:     #1A6B4A;
  --lp5-green-lt:  #E8F5EF;
  --lp5-blue:      #1A4A6B;
  --lp5-blue-lt:   #E8F0F5;
  --lp5-brown:     #6B4A1A;
  --lp5-brown-lt:  #F5EFE8;
  --lp5-purple:    #4A1A6B;
  --lp5-purple-lt: #EFE8F5;
  --lp5-red-dark:  #6B1A1A;
  --lp5-red-lt:    #F5E8E8;
  --lp5-red:       #B91C1C;
  --lp5-amber:     #92700A;
}

/* --- App wrapper ------------------------------------------ */
#lp5-app {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: linear-gradient(160deg, var(--lp5-cream) 0%, #F0EDE4 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px;
  box-sizing: border-box;
}

/* --- Screens ---------------------------------------------- */
.lp5-screen { display: none; width: 100%; flex-direction: column; align-items: center;margin-bottom: 40px; }
.lp5-screen.active { display: flex; }

/* --- Header ----------------------------------------------- */
.lp5-header {
    background: #ffffff;
    width: 100%;
    padding: 0px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lp5-logo-text {
  color: var(--lp5-gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  padding:10px;
  background:white;
  width:32%;
  border-radius:5px;

}

.lp5-logo-text img{
    width:100%;
}

.lp5-logo-sub {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.lp5-badge {
    background: rgb(196 34 34 / 15%);
    border: 1px solid #751521;
    color: #751521;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
}

/* --- Progress bar ----------------------------------------- */
.lp5-progress-bar {
  width: 100%;
  max-width: 680px;
  height: 4px;
  background: rgba(15,39,68,0.1);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}
.lp5-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lp5-gold), #E8B84B);
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* --- Card ------------------------------------------------- */
.lp5-card {
  background: var(--lp5-white);
  border-radius: 16px;
  padding: 40px 48px;
  width: 100%;
  max-width: 780px;
  box-shadow: 0 4px 32px rgba(15,39,68,0.08);
  box-sizing: border-box;
}
.lp5-card-center { text-align: center; padding: 32px 48px; }

/* --- Typography helpers ----------------------------------- */
.lp5-label-gold {
  font-size: 13px;
  color: var(--lp5-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lp5-title {
  font-size: 36px;
  color: var(--lp5-navy);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 16px;
}
.lp5-gold { color: var(--lp5-gold); }
.lp5-red  { color: var(--lp5-red); }
.lp5-amber{ color: var(--lp5-amber); }
.lp5-slate{ color: var(--lp5-slate); }

.lp5-divider {
  width: 60px; height: 2px;
  background: var(--lp5-gold);
  margin: 0 auto 28px;
}
.lp5-intro-text {
  font-size: 16px; color: var(--lp5-slate);
  line-height: 1.8; 
  margin: 0 auto 12px;
}
.lp5-intro-italic {
  font-size: 16px; color: var(--lp5-slate);
  line-height: 1.8; max-width: 650px;
  margin: 0 auto 36px; font-style: italic;
}
.lp5-footnote {
  font-size: 12px; color: #9CA3AF;
  margin-top: 20px; text-align: center;
  margin-bottom:0px;
}

/* --- Pillar chips (intro) --------------------------------- */
.lp5-pillar-chips {
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.lp5-chip {
  border-radius: 6px; padding: 6px 14px;
  font-size: 13px; font-weight: 700;
}
.chip-1 { background: var(--lp5-green-lt);  color: var(--lp5-green);  }
.chip-2 { background: var(--lp5-blue-lt);   color: var(--lp5-blue);   }
.chip-3 { background: var(--lp5-brown-lt);  color: var(--lp5-brown);  }
.chip-4 { background: var(--lp5-purple-lt); color: var(--lp5-purple); }
.chip-5 { background: var(--lp5-red-lt);    color: var(--lp5-red-dark);}

/* --- Pillar tag ------------------------------------------- */
.lp5-pillar-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 24px; padding: 6px 18px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 20px;
}

/* --- Question & subtext ----------------------------------- */
.lp5-question {
  font-size: 22px; color: var(--lp5-navy);
  line-height: 1.5; font-weight: 400; margin-bottom: 12px;
}
.lp5-subtext {
  font-size: 14px; color: var(--lp5-slate);
  margin-bottom: 32px; line-height: 1.6;
  border-left: 3px solid var(--lp5-light-gold);
  padding-left: 14px;
}

/* --- Option buttons --------------------------------------- */
.lp5-option-row {
  display: flex; gap: 12px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.lp5-option-btn {
  flex: 1; min-width: 140px;
  padding: 16px 12px; border-radius: 10px;
  border: 1px solid #E0D9CC;
  background: var(--lp5-light-gray);
  color: var(--lp5-navy);
  font-size: 16px; font-family: Georgia, serif;
  cursor: pointer; text-align: center;
  transition: all 0.2s ease;
}
.lp5-option-btn.selected-yes {
  border: 2px solid var(--lp5-green);
  background: var(--lp5-green-lt);
  color: var(--lp5-green); font-weight: 700;
}
.lp5-option-btn.selected-no {
  border: 2px solid var(--lp5-red);
  background: #FEF2F2;
  color: var(--lp5-red); font-weight: 700;
}
.lp5-option-btn.selected-ns {
  border: 2px solid var(--lp5-gold);
  background: var(--lp5-light-gold);
  color: var(--lp5-amber); font-weight: 700;
}

/* --- Dots ------------------------------------------------- */
.lp5-dots {
  display: flex; gap: 8px; margin-top: 24px;
}
.lp5-dot {
  width: 32px; height: 4px; border-radius: 2px;
  background: #D1C9BB;
  transition: background 0.3s;
}
.lp5-dot.done    { background: var(--lp5-gold); }
.lp5-dot.current { background: var(--lp5-navy); }

/* --- Nav row ---------------------------------------------- */
.lp5-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

/* --- Buttons ---------------------------------------------- */
.lp5-btn-primary {
  background: var(--lp5-navy); color: var(--lp5-white);
  border: none; border-radius: 8px;
  padding: 12px 32px; font-size: 15px;
  font-family: Georgia, serif; cursor: pointer;
  letter-spacing: 0.5px; transition: opacity 0.2s;
}
.lp5-btn-primary:disabled { opacity: 0.4; cursor: default; }

.lp5-btn-secondary {
  background: transparent; color: var(--lp5-slate);
  border: 1px solid #D1C9BB; border-radius: 8px;
  padding: 12px 24px; font-size: 15px;
  font-family: Georgia, serif; cursor: pointer;
}
.lp5-btn-gold {
  background: var(--lp5-gold); color: var(--lp5-white);
  border: none; border-radius: 8px;
  padding: 14px 36px; font-size: 16px;
  font-family: Georgia, serif; cursor: pointer;
  font-weight: 700; letter-spacing: 0.5px;
}
.lp5-btn-lg { font-size: 17px; padding: 16px 48px; }

/* --- Practical reality ------------------------------------ */
.lp5-section-title {
  font-size: 26px; color: var(--lp5-navy);
  font-weight: 400; margin: 0 0 8px;
}
.lp5-pq-block {
  border-bottom: 1px solid #EDE9E0;
  padding-bottom: 20px; margin-bottom: 20px;
}
.lp5-pq-label {
  font-size: 15px; color: var(--lp5-navy);
  font-weight: 700; margin-bottom: 10px;
}
.lp5-radio-group {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.lp5-radio-group label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; cursor: pointer;
  background: var(--lp5-light-gray);
  border: 1px solid #E0D9CC;
  font-size: 14px; color: var(--lp5-navy);
  transition: all 0.2s;
}
.lp5-radio-group input[type="radio"] { display: none; }
.lp5-radio-group label.selected {
  background: var(--lp5-light-gold);
  border: 1.5px solid var(--lp5-gold);
  color: var(--lp5-amber); font-weight: 700;
}

/* --- Results ---------------------------------------------- */
.lp5-gap-circle {
  display: inline-flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100px; height: 100px;
  border-radius: 50%; margin-bottom: 16px;
  border: 3px solid currentColor;
}
.lp5-gap-circle span:first-child { font-size: 36px; font-weight: 700; }
.lp5-gap-label-text { font-size: 11px; letter-spacing: 1px; }

.lp5-urgency-label { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.lp5-urgency-msg {
  font-size: 15px; color: var(--lp5-slate);
  line-height: 1.6; max-width: 480px; margin: 0 auto;
}

/* urgency colours applied via JS */
.lp5-urgency-low    { color: var(--lp5-green); background: var(--lp5-green-lt); }
.lp5-urgency-mod    { color: var(--lp5-amber); background: var(--lp5-light-gold); }
.lp5-urgency-high   { color: var(--lp5-red);   background: #FEF2F2; }

.lp5-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 28px;
}
.lp5-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 8px;
}
.lp5-result-icon { font-size: 18px; width: 24px; text-align: center; }
.lp5-result-name { font-size: 13px; font-weight: 700; color: var(--lp5-navy); }
.lp5-result-ans  { font-size: 11px; }

/* --- CTA box ---------------------------------------------- */
.lp5-cta-box {
  background: var(--lp5-navy); border-radius: 12px;
  padding: 28px 32px; text-align: center; margin-bottom: 24px;
}
.lp5-cta-text {
  color: var(--lp5-white); font-size: 18px;
  line-height: 1.5; margin-bottom: 16px;
}
.lp5-cta-contact {
  color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 20px;
}
.lp5-cta-quote {
  font-size: 13px; color: var(--lp5-gold); font-style: italic;
}

/* --- Print ------------------------------------------------ */
@media print {
  .lp5-header, .lp5-progress-bar, .lp5-dots,
  .lp5-btn-primary, .lp5-btn-secondary, .lp5-btn-gold { display: none !important; }
  .lp5-card { box-shadow: none; }
  #lp5-app { background: white; }
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 600px) {
  .lp5-card { padding: 28px 20px; }
  .lp5-title { font-size: 26px; }
  .lp5-question { font-size: 18px; }
  .lp5-results-grid { grid-template-columns: 1fr; }
  .lp5-header { padding: 14px 16px; }
}

/* --- Footer ----------------------------------------------- */
.lp5-footer {
    font-weight: 700;
    background: #ffffff;
    width: 100%;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: auto; /* This pushes it to the bottom of the screen */
    color: #000000;
    font-size: 17px;
    letter-spacing: 1px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.15);
}

.lp5-footer-highlight {
  color: var(--lp5-gold);
  font-weight: 700;
  margin-left: 5px;
}