/* ============================================================
   RGA Editorial Split-Screen Layout — rga-style.css
   Live Summary UI
   ============================================================ */

:root {
  --rga-navy:      #0F172A;
  --rga-navy-light:#1E293B;
  --rga-gold:      #D79B48;
  --rga-cream:     #FAF9F6;
  --rga-white:     #FFFFFF;
  --rga-text:      #334155;
  --rga-border:    #E2E8F0;
  
  --rga-green:     #059669;
  --rga-red:       #DC2626;
  --rga-amber:     #D97706;

  --rga-font-serif: 'Georgia', 'Times New Roman', serif;
  --rga-font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --rga-ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

#rga-app {
  display: block; 
  min-height: 100vh;
  background: var(--rga-cream);
  font-family: var(--rga-font-sans);
  color: var(--rga-text);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
#rga-app * { box-sizing: border-box; }

/* --- ANIMATIONS --- */
@keyframes rgaSlideLeft { 0% { opacity: 0; transform: translateX(20px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes rgaFadeOut { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-15px); } }
@keyframes rgaSummaryPop { 0% { color: var(--rga-gold); transform: scale(1.05); } 100% { color: var(--rga-white); transform: scale(1); } }
@keyframes rgaFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.rga-screen { display: none; flex-direction: column; width: 100%; }
.rga-screen.active { display: flex; }
.rga-screen.rga-exiting { display: flex; animation: rgaFadeOut 0.3s var(--rga-ease) forwards; }

.rga-screen .rga-anim-1, .rga-screen .rga-anim-2, .rga-screen .rga-anim-3, .rga-screen .rga-anim-4 { opacity: 0; }
.rga-screen.active .rga-anim-1 { animation: rgaSlideLeft 0.5s var(--rga-ease) 0.05s forwards; }
.rga-screen.active .rga-anim-2 { animation: rgaSlideLeft 0.5s var(--rga-ease) 0.15s forwards; }
.rga-screen.active .rga-anim-3 { animation: rgaSlideLeft 0.5s var(--rga-ease) 0.25s forwards; }
.rga-screen.active .rga-anim-4 { animation: rgaSlideLeft 0.5s var(--rga-ease) 0.35s forwards; }

/* ================= LEFT SIDEBAR (FIXED) ================= */
.rga-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 320px; height: 100vh;
  background: var(--rga-navy); color: var(--rga-white); padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid rgba(255,255,255,0.05); z-index: 50; overflow-y: auto; 
}
.rga-sidebar::-webkit-scrollbar { width: 4px; }
.rga-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.rga-sidebar-top { margin-bottom: 32px; }
.rga-logo { max-width: 140px; margin-bottom: 20px; background: #FFFFFF; padding: 10px 14px; border-radius: 6px; display: block; }
.rga-badge-outline {
  display: inline-block; border: 1px solid rgba(215, 155, 72, 0.5); color: var(--rga-gold);
  padding: 6px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  background: rgba(215, 155, 72, 0.05);
}

/* Vertical Timeline */
.rga-timeline-wrapper { position: relative; flex: 1; padding-top: 16px; display: none; } 
.rga-timeline-line { position: absolute; left: 6px; top: 24px; bottom: 24px; width: 2px; background: rgba(255,255,255,0.1); }
.rga-timeline-fill { width: 100%; background: var(--rga-gold); height: 0%; transition: height 0.8s var(--rga-ease); box-shadow: 0 0 10px rgba(215, 155, 72, 0.4); }
.rga-timeline-steps { display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 2; }
.rga-step { display: flex; align-items: center; gap: 16px; opacity: 0.3; transition: opacity 0.4s; }
.rga-step.active { opacity: 1; }
.rga-step.done { opacity: 0.8; }
.rga-step-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rga-navy); border: 2px solid rgba(255,255,255,0.3); transition: all 0.4s; }
.rga-step.active .rga-step-dot { border-color: var(--rga-gold); background: var(--rga-gold); box-shadow: 0 0 10px rgba(215, 155, 72, 0.6); }
.rga-step.done .rga-step-dot { background: var(--rga-gold); border-color: var(--rga-gold); }
.rga-step-text { font-size: 14px; font-weight: 600; letter-spacing: 1px; }

/* Live Summary Area (New) */
.rga-practical-summary { flex: 1; padding-top: 16px; animation: rgaFadeIn 0.5s ease; }
.rga-summary-title { font-size: 11px; font-weight: 700; color: var(--rga-gold); text-transform: uppercase; letter-spacing: 2px; margin: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.rga-summary-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.rga-summary-list li { display: flex; flex-direction: column; gap: 4px; }
.rga-summary-label { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.rga-summary-val { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.2); transition: color 0.3s; }
.rga-summary-val.populated { color: var(--rga-white); }
.rga-summary-val.just-updated { animation: rgaSummaryPop 0.4s ease; color: var(--rga-white); }

.rga-sidebar-bottom { font-size: 12px; color: rgba(255,255,255,0.5); padding-top: 32px; }
.rga-sidebar-bottom strong { color: var(--rga-gold); }

/* ================= RIGHT CONTENT AREA ================= */
.rga-content-area { margin-left: 320px; width: calc(100% - 320px); min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 40px; }
.rga-content-inner { width: 100%; max-width: 1000px; margin: auto 0; }

/* --- TYPOGRAPHY --- */
.rga-editorial-eyebrow { font-size: 12px; font-weight: 700; color: var(--rga-gold); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; display: inline-block; }
.rga-editorial-title { font-family: var(--rga-font-serif); font-size: 48px; color: var(--rga-navy); line-height: 1.1; margin: 0 0 20px; letter-spacing: -1px; } 
.rga-editorial-question { font-family: var(--rga-font-serif); font-size: 34px; color: var(--rga-navy); line-height: 1.3; margin: 0 0 20px; } 
.rga-gold-italic { color: var(--rga-gold); font-style: italic; }
.rga-editorial-divider { width: 60px; height: 3px; background: var(--rga-gold); margin-bottom: 24px; border-radius: 2px; }
.rga-editorial-lead { font-size: 18px; color: var(--rga-text); line-height: 1.6; margin-bottom: 24px; font-weight: 400; }
.rga-editorial-quote { font-family: var(--rga-font-serif); font-size: 18px; font-style: italic; color: var(--rga-navy); border-left: 4px solid var(--rga-gold); padding-left: 20px; margin: 0 0 32px; line-height: 1.6; background: rgba(215, 155, 72, 0.03); padding: 16px 20px; border-radius: 0 8px 8px 0; }

/* --- BUTTONS & ACTIONS --- */
.rga-action-block { display: flex; align-items: center; gap: 20px; }
.rga-btn-editorial { background: var(--rga-navy); color: var(--rga-white); border: none; padding: 16px 32px; border-radius: 6px; font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1); display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1); }
.rga-btn-editorial:hover:not(:disabled) { background: var(--rga-gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(215, 155, 72, 0.25); }
.rga-btn-editorial:disabled { opacity: 0.3; cursor: not-allowed; box-shadow: none; }
.rga-arrow { transition: transform 0.3s; }
.rga-btn-editorial:hover .rga-arrow { transform: translateX(4px); }
.rga-meta { font-size: 13px; color: #64748B; font-weight: 500; }
.rga-btn-back { background: transparent; border: none; font-size: 15px; font-weight: 600; color: #64748B; cursor: pointer; padding: 12px 0; transition: color 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.rga-btn-back:hover { color: var(--rga-navy); }
.rga-nav-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; border-top: 1px solid var(--rga-border); padding-top: 24px; }
.rga-center-flex { justify-content: center; gap: 40px; }
.rga-sidebar-top img{
    border-radius:10px!important;
}

/* --- PILLAR OPTIONS --- */
.rga-think-strip { background: var(--rga-white); padding: 16px 20px; border-left: 3px solid var(--rga-gold); font-size: 15px; color: var(--rga-text); margin-bottom: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); border-radius: 0 6px 6px 0; }
.rga-strip-label { font-weight: 700; color: var(--rga-navy); }
.rga-options-editorial { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; } 
.rga-opt-block { background: var(--rga-white); border: 1px solid var(--rga-border); padding: 16px 24px; border-radius: 8px; display: flex; align-items: center; gap: 20px; cursor: pointer; transition: all 0.3s ease; text-align: left; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
.rga-opt-block:hover { border-color: var(--rga-gold); transform: translateX(6px); box-shadow: 0 6px 20px rgba(215, 155, 72, 0.15); }
.rga-ob-icon { font-size: 20px; font-weight: bold; color: #CBD5E1; width: 30px; transition: color 0.3s; }
.rga-opt-block:hover .rga-ob-icon { color: var(--rga-gold); }
.rga-ob-text { font-size: 18px; font-weight: 600; color: var(--rga-navy); }
.rga-opt-block.selected-yes { border-color: var(--rga-green); background: #F0FDF4; transform: translateX(6px); box-shadow: 0 6px 16px rgba(5, 150, 105, 0.08); }
.rga-opt-block.selected-yes .rga-ob-icon { color: var(--rga-green); }
.rga-opt-block.selected-no { border-color: var(--rga-red); background: #FEF2F2; transform: translateX(6px); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.08); }
.rga-opt-block.selected-no .rga-ob-icon { color: var(--rga-red); }
.rga-opt-block.selected-ns { border-color: var(--rga-amber); background: #FFFBEB; transform: translateX(6px); box-shadow: 0 6px 16px rgba(217, 119, 6, 0.08); }
.rga-opt-block.selected-ns .rga-ob-icon { color: var(--rga-amber); }

/* --- PRACTICAL REALITY --- */
.rga-editorial-form { display: flex; flex-direction: column; gap: 24px; }
.rga-form-group { padding-bottom: 20px; border-bottom: 1px solid var(--rga-border); }
.rga-form-group:last-child { border: none; padding-bottom: 0; }
.rga-highlight-panel { background: var(--rga-navy); padding: 24px; border-radius: 12px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1); }
.rga-form-label { font-size: 16px; font-weight: 700; color: var(--rga-navy); margin-bottom: 14px; display: block; }
.rga-radio-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.rga-radio-tiles label { background: var(--rga-white); border: 1px solid var(--rga-border); padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--rga-text); cursor: pointer; transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.1); box-shadow: 0 1px 4px rgba(0,0,0,0.02); }
.rga-radio-tiles label:hover { border-color: var(--rga-gold); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(215, 155, 72, 0.1); color: var(--rga-navy); }
.rga-radio-tiles input[type="radio"] { display: none; }
.rga-radio-tiles label.selected { background: var(--rga-navy); color: var(--rga-white); border-color: var(--rga-navy); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15); transform: translateY(-1px); }
.rga-highlight-panel .rga-radio-tiles label.selected { background: var(--rga-gold); border-color: var(--rga-gold); box-shadow: 0 4px 12px rgba(215, 155, 72, 0.25); color: #FFF; }

/* --- RESULTS --- */
.rga-results-header { display: flex; align-items: center; gap: 32px; margin-bottom: 40px; }
.rga-editorial-chart { position: relative; width: 140px; height: 140px; flex-shrink: 0; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.04)); }
.rga-chart-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rga-chart-bg { fill: none; stroke: var(--rga-border); stroke-width: 2; }
.rga-chart-fill { fill: none; stroke: var(--rga-gold); stroke-width: 3; stroke-linecap: round; transition: stroke-dasharray 1.5s var(--rga-ease); }
.rga-chart-center { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rga-gap-number { font-family: var(--rga-font-serif); font-size: 48px; color: var(--rga-navy); line-height: 1; }
.rga-gap-label { font-size: 11px; font-weight: 700; color: var(--rga-text); letter-spacing: 2px; margin-top: 6px; }
.rga-editorial-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; border-top: 1px solid var(--rga-border); border-bottom: 1px solid var(--rga-border); padding: 32px 0; }
.rga-grid-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); border-radius: 8px; transition: background 0.2s; }
.rga-grid-row:hover { background: var(--rga-white); box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.rga-grid-row:last-child { border-bottom: none; }
.rga-gr-title { font-size: 16px; font-weight: 600; color: var(--rga-navy); }
.rga-gr-ans { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.rga-gr-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #FFF; font-size: 12px; }
.rga-cta-editorial { background: linear-gradient(135deg, var(--rga-navy-light) 0%, var(--rga-navy) 100%); padding: 40px; border-radius: 12px; color: var(--rga-white); text-align: center; margin-bottom: 40px; box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15); }
.rga-cta-editorial h3 { font-family: var(--rga-font-serif); font-size: 28px; color: var(--rga-gold); margin-bottom: 12px; }
.rga-cta-editorial p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 24px; }
.rga-contact-elegant { font-size: 16px; font-weight: 600; letter-spacing: 1px; border-top: 1px solid rgba(255,255,255,0.2); border-bottom: 1px solid rgba(255,255,255,0.2); padding: 12px 0; display: inline-block; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  #rga-app { display: flex; flex-direction: column; } 
  .rga-sidebar { position: relative; width: 100%; height: auto; padding: 24px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); z-index: 10; }
  .rga-sidebar-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; }
  .rga-logo { margin-bottom: 0; max-width: 120px; }
  .rga-timeline-wrapper, .rga-practical-summary, .rga-sidebar-bottom { display: none; }
  .rga-content-area { margin-left: 0; width: 100%; padding: 32px 20px; }
  .rga-editorial-title { font-size: 36px; }
  .rga-editorial-question { font-size: 28px; }
  .rga-action-block { flex-direction: column; align-items: flex-start; }
  .rga-results-header { flex-direction: column; text-align: center; gap: 24px; }
  .rga-btn-editorial { width: 100%; justify-content: center; }
  .rga-grid-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media print { 
  .rga-sidebar, .rga-nav-footer, .rga-action-block { display: none !important; } 
  #rga-app { background: white; display: block; }
  .rga-content-area { margin-left: 0; width: 100%; padding: 0; }
}