/* Additional styles for email workflow features */

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  grid-column: 1 / -1;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--petra-charcoal);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--petra-gold);
}

.checkbox-label span {
  flex: 1;
}

/* Confirmation Bar */
.confirmation-bar {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  border-left: 3px solid #10B981;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.confirmation-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confirmation-content::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #10B981;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.confirmation-bar span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #065F46;
  line-height: 1.5;
}

.confirmation-bar.error {
  background: #FEF2F2;
  border-color: #FCA5A5;
  border-left-color: #EF4444;
}

.confirmation-bar.error .confirmation-content::before {
  content: "!";
  background: #EF4444;
}

.confirmation-bar.error span {
  color: #991B1B;
}

/* Advisor Followup */
.advisor-followup {
  text-align: center;
  padding: var(--space-3);
  margin: var(--space-4) 0;
  background: var(--petra-warm-100);
  border-radius: var(--radius-md);
  border: 1px solid var(--petra-warm-200);
}

.advisor-followup p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--petra-warm-600);
  font-style: italic;
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-field.full-width {
    grid-column: 1;
  }
}
/* ============================================================================
   HERO SECTION VISUAL REFINEMENTS
   Paste this at the bottom of style-additions.css or in a new section
   ============================================================================ */

/* 1. HEADER CONTAINER - Reduce top spacing by ~40% */
/* ============================================================================
   HERO IMAGE (replaces logo + title stack)
   ============================================================================ */

.petra-hero-image {
  display: block;
  max-width: 800px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

/* Header container - simplified for single image */
.petra-header.page-hero {
  padding: var(--space-2) 0 var(--space-1);
  margin-bottom: 8px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .petra-header.page-hero {
    padding: var(--space-1) 0 var(--space-1);
    margin-bottom: 8px;
  }

  .petra-hero-image {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .petra-header.page-hero {
    padding: var(--space-1) 0 0;
    margin-bottom: 8px;
  }

  .petra-hero-image {
    max-width: 100%;
  }
}
/* 6. ASSESSMENT OPTIONS CARD - Reduce top margin by ~35% */
#couplesSetup.section {
  margin-top: var(--space-2);     /* closer to the title block */
  padding: var(--space-5) var(--space-5);
}


/* Also apply to clientInfoSection if visible */
#clientInfoSection.section {
  margin-top: var(--space-3);
  padding: var(--space-5) var(--space-5);
}

/* 7. BUTTON REFINEMENTS - Better vertical centering and hover effects */
.mode-btn,
.mode-btn-primary,
.mode-btn-secondary,
.begin-btn,
.calculate-btn,
.partner-start-btn,
.print-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;  /* Increased vertical from 13px to 15px */
  line-height: 1;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* White/Secondary button - Add subtle shadow and gold border on hover */
.mode-btn-secondary {
  box-shadow: 0 1px 3px rgba(37, 40, 42, 0.08), inset 0 0 0 1px rgba(37, 40, 42, 0.04);  /* Subtle depth */
}

.mode-btn-secondary:hover {
  background: var(--petra-warm-50);
  border-color: #A88F2F;  /* Softer gold on hover */
  color: var(--petra-charcoal);
  box-shadow: 0 2px 8px rgba(154, 118, 17, 0.15), inset 0 0 0 1px #A88F2F;  /* Gold glow */
  transform: translateY(-1px);
}

/* Gold button hover enhancement */
.mode-btn-primary:hover,
.begin-btn:hover,
.calculate-btn:hover,
.partner-start-btn:hover {
  background: #876809;  /* Slightly darker gold on hover */
  border-color: #876809;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(154, 118, 17, 0.3);
}

/* 8. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .petra-header.page-hero {
    padding: var(--space-3) 0 var(--space-2);  /* Proportional reduction */
    margin-bottom: var(--space-2);
  }
  
  .petra-logo {
    max-width: 260px;  /* Proportional scaling */
    margin-bottom: var(--space-1);
  }
  
  .main-heading.center {
    font-size: 2rem;  /* Slightly smaller on tablets */
    margin-bottom: var(--space-1);
  }
  
  .subhead {
    font-size: 0.8125rem;
    margin-bottom: var(--space-1);
  }
  
  #couplesSetup.section,
  #clientInfoSection.section {
    margin-top: var(--space-2);
    padding: var(--space-4) var(--space-3);
  }
  
  .mode-btn,
  .mode-btn-primary,
  .mode-btn-secondary {
    padding: 14px 24px;  /* Slightly smaller on mobile */
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .petra-header.page-hero {
    padding: var(--space-2) 0 var(--space-1);
  }
  
  .petra-logo {
    max-width: 220px;
  }
  
  .main-heading.center {
    font-size: 1.75rem;  /* Further reduction on small phones */
  }
  
  .subhead {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
  
  #couplesSetup.section,
  #clientInfoSection.section {
    padding: var(--space-3) var(--space-2);
  }
}

/* 9. ENSURE SMOOTH TRANSITIONS */
.petra-logo,
.mode-btn,
.mode-btn-primary,
.mode-btn-secondary {
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ============================================================================
   SPLASH SCREEN
   ============================================================================ */

/* Full-screen splash overlay */
.petra-splash {
  position: fixed;
  inset: 0;
  background: var(--petra-warm-10, #f8f7f4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Centered splash image with fade-in and fade-out */
.petra-splash-img {
  max-width: 640px;  /* DOUBLED from 320px */
  width: 80%;
  height: auto;
  opacity: 0;
  animation: petra-splash-fade 6s ease-in-out forwards;  /* Changed from 1.2s to 6s */
}

/* Fade-in, hold, then fade-out animation */
@keyframes petra-splash-fade {
  0% { 
    opacity: 0; 
    transform: translateY(8px); 
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-8px); 
  }
}

/* Hidden utility (if not already defined) */
.hidden {
  display: none !important;
}
/* ============================================================================
   HERO SHELL - Warm tinted band across top
   ============================================================================ */

/* Hero header with soft warm tint 
.petra-header.page-hero {
  padding: var(--space-4) 0 var(--space-3);
  margin-bottom: 0;  /* Remove gap - cards will handle spacing
  text-align: center;
  background: linear-gradient(to bottom, #FAF8F2 0%, #F8F6F0 100%);  /* Soft warm gradient */
  /*rder-bottom: 1px solid rgba(154, 118, 17, 0.08);  /* Subtle gold separation */

/* Extend tint to first card(s) so they feel unified */
#couplesSetup.section,
#clientInfoSection.section {
  background: #F8F6F0;  /* Match hero tint */
  margin-top: 0;  /* No gap from header */
  padding: var(--space-5) var(--space-5) var(--space-6);
  box-shadow: 0 4px 20px rgba(37, 40, 42, 0.06), 
              0 1px 4px rgba(37, 40, 42, 0.04);  /* Soft, wide, premium shadow */
  border-radius: 12px;  /* Gentle corners */
  margin-bottom: var(--space-5);  /* Space before questionnaire starts */
}

/* Ensure questionnaire sections below use normal background */
#questionnaire,
#results,
.question-block,
.section:not(#couplesSetup):not(#clientInfoSection) {
  background: var(--petra-warm-10, #FEFDFB);  /* Return to normal page background */
}

/* ============================================================================
   PREMIUM CARD SHADOWS
   ============================================================================ */

/* Apply consistent soft shadow to cards throughout */
/*ection,
.card,
.question-block {
  box-shadow: 0 4px 20px rgba(37, 40, 42, 0.06), 
              0 1px 4px rgba(37, 40, 42, 0.04);  /* Lighter, wider, softer */
/*border-radius: 12px;  /* Gentle Petra-style corners */
/*

/* Results cards get same treatment */
/*sults .section,
.results-card,
.score-card {
  box-shadow: 0 4px 20px rgba(37, 40, 42, 0.06), 
              0 1px 4px rgba(37, 40, 42, 0.04);
  border-radius: 12px;
}*/
/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .petra-header.page-hero {
    padding: var(--space-3) 0 var(--space-2);  /* Less vertical padding on tablets */
  }
  
  #couplesSetup.section,
  #clientInfoSection.section {
    padding: var(--space-4) var(--space-4) var(--space-5);
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 480px) {
  .petra-header.page-hero {
    padding: var(--space-2) 0 var(--space-1);  /* Minimal padding on mobile */
  }
  
  #couplesSetup.section,
  #clientInfoSection.section {
    padding: var(--space-3) var(--space-3) var(--space-4);
    margin-bottom: var(--space-3);
    border-radius: 10px;  /* Slightly smaller radius on mobile */
  }
}

/* ============================================================================
   SMOOTH TRANSITIONS
   ============================================================================ */

/* Subtle hover enhancement on interactive cards */
#couplesSetup.section,
#clientInfoSection.section {
  transition: box-shadow 200ms ease-out, transform 200ms ease-out;
}

/* Very subtle lift on focus (when user interacts with form fields inside) */
#couplesSetup.section:focus-within,
#clientInfoSection.section:focus-within {
  box-shadow: 0 6px 24px rgba(37, 40, 42, 0.08), 
              0 2px 6px rgba(37, 40, 42, 0.05);
  transform: translateY(-1px);
}
/* ============================================================================
   QUIZ PROGRESS BAR
   ============================================================================ */

.progress-bar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, #FEFDFB 0%, #F8F6F0 100%);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(154, 118, 17, 0.12);
  box-shadow: 0 2px 8px rgba(37, 40, 42, 0.04);
}

.progress-bar-track {
  width: 100%;
  height: 6px;  /* Thin and elegant */
  background: rgba(154, 118, 17, 0.12);  /* Light gold tint */
  border-radius: 9999px;  /* Pill shape */
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #9A7611 0%, #B8904A 50%, #CCA054 100%);  /* Petra gold gradient */
  border-radius: 9999px;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);  /* Smooth animation */
  box-shadow: 0 0 8px rgba(154, 118, 17, 0.3);  /* Subtle glow */
}

.progress-bar-label {
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petra-gold);
  text-align: center;
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .progress-bar-container {
    padding: var(--space-2) var(--space-3);
  }
  
  .progress-bar-track {
    height: 5px;
  }
  
  .progress-bar-label {
    font-size: 0.7rem;
  }
}

/* ============================================================================
   QUIZ SECTION SEPARATION
   ============================================================================ */

/* Section containers - create visual chapters */
.question-section {
  position: relative;
  padding: var(--space-6) 0;
  margin-bottom: var(--space-4);
}

/* Alternating subtle background tints for depth */
.question-section:nth-child(odd) {
  background: linear-gradient(to bottom, #FEFDFB 0%, #FAF9F6 100%);
}

.question-section:nth-child(even) {
  background: linear-gradient(to bottom, #F8F7F4 0%, #F5F4F1 100%);
}

/* Section dividers - thin gold lines between sections */
.question-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(154, 118, 17, 0.3) 50%, 
    transparent 100%);
}

/* Remove divider from last section */
.question-section:last-child::after {
  display: none;
}

/* Section headers - make them more prominent */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-5);
  padding: 0 var(--space-3);
}

.section-header h2 {
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--petra-charcoal);
  margin-bottom: var(--space-3);
}

.section-header p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #5A5D62;
  margin: 0;
}

/* Question blocks within sections */
.question-section .question-block {
  max-width: 900px;
  margin: 0 auto var(--space-5);
  background: white;
  padding: var(--space-5) var(--space-4);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(37, 40, 42, 0.05),
              0 1px 4px rgba(37, 40, 42, 0.03);
}

/* Increase spacing around section content */
.question-section .question-block:first-of-type {
  margin-top: var(--space-5);
}

.question-section .question-block:last-of-type {
  margin-bottom: var(--space-6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .question-section {
    padding: var(--space-4) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-4);
  }

  .section-header h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .question-section .question-block {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
  }
  
  .question-section::after {
    width: 120px;
  }
}
/* ============================================================================
   MINIMAL TOP PROGRESS BAR
   ============================================================================ */

.top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 7px;
  background: #FAF9F6;
  z-index: 9999;
  overflow: hidden;
}

.top-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    to right,
    #6B7280 0%,        /* Conservative - cool gray */
    #7EADAD 25%,       /* Balanced - teal */
    #93A2BC 40%,       /* Balanced Growth - blue-gray */
    #CCA054 65%,       /* Growth - gold */
    #9A7611 85%,       /* Petra Gold */
    #8B6F5C 100%       /* Aggressive Growth - muted clay */
  );
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 4px rgba(154, 118, 17, 0.2);
}

/* Responsive - ensure full width on all devices */
@media (max-width: 768px) {
  .top-progress-bar {
    height: 6px;
  }
}

@media (max-width: 480px) {
  .top-progress-bar {
    height: 5px;
  }
}

/* ============================================================================
   SECTION VISIBILITY AND TRANSITIONS
   ============================================================================ */

.question-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.question-section.active {
  display: block;
  animation: fadeInUp 400ms ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-section.exiting {
  animation: fadeOutUp 300ms ease-in forwards;
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ============================================================================
   SECTION NAVIGATION BUTTONS
   ============================================================================ */

.section-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: var(--space-5) auto var(--space-3);
  padding: 0 var(--space-3);
}

.nav-btn {
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn-next {
  background: var(--petra-gold, #9A7611);
  color: white;
  padding: 14px 32px;
  box-shadow: 0 2px 8px rgba(154, 118, 17, 0.2);
}

.nav-btn-next:hover {
  background: #876809;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(154, 118, 17, 0.3);
}

.nav-btn-next:active {
  transform: translateY(0);
}

.nav-btn-back {
  background: transparent;
  color: #6B7280;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-btn-back:hover {
  color: var(--petra-gold);
  background: rgba(154, 118, 17, 0.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-navigation {
    margin: var(--space-4) auto var(--space-2);
  }
  
  .nav-btn-next {
    padding: 12px 28px;
    font-size: 0.875rem;
  }
  
  .nav-btn-back {
    font-size: 0.8125rem;
  }
}

/* ============================================================================
   HIDE DEFAULT CALCULATE BUTTON INITIALLY
   ============================================================================ */

.calculate-btn {
  max-width: 900px;
  margin: var(--space-4) auto;
}

/* ============================================================================
   COUPLE MODE: ORIENTATION MESSAGE & TABBED RESULTS
   ============================================================================ */

/* Orientation message at top of couple results */
.couple-orientation {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  margin-bottom: var(--space-4);
  background: linear-gradient(to bottom, #FAF8F2 0%, #F8F6F0 100%);
  border-radius: 12px;
  border: 1px solid rgba(154, 118, 17, 0.12);
}

.couple-orientation p {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--petra-charcoal);
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Tab buttons container */
.couple-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 auto var(--space-4);
  max-width: 600px;
  padding: 0 var(--space-3);
}

.couple-tab {
  flex: 1;
  max-width: 280px;
  font-family: 'brandon-grotesque', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 15px 24px;
  background: white;
  color: #6B7280;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(37, 40, 42, 0.08);
}

.couple-tab:hover:not(.active) {
  border-color: #D1D5DB;
  background: #F9FAFB;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 40, 42, 0.12);
}

.couple-tab.active {
  background: var(--petra-gold, #9A7611);
  color: white;
  border-color: var(--petra-gold, #9A7611);
  box-shadow: 0 2px 8px rgba(154, 118, 17, 0.25);
}

/* Tab content panels */
.couple-tab-content {
  position: relative;
  min-height: 400px;
}

.person-tab-panel {
  display: none;
  opacity: 0;
  animation: fadeIn 300ms ease-out forwards;
}

.person-tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .couple-tabs {
    flex-direction: column;
    max-width: 100%;
  }

  .couple-tab {
    max-width: 100%;
  }

  .couple-orientation p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .couple-orientation {
    padding: var(--space-3);
  }

  .couple-orientation p {
    font-size: 0.9375rem;
  }

  .couple-tab {
    padding: 12px 20px;
    font-size: 0.875rem;
  }
}

/* ============================================================================
   RESULTS MODE - DISTINCT PAGE FEEL
   ============================================================================ */

/* Results container when active - distinct page feel */
.results.results-active {
  min-height: calc(100vh - 100px);
  background: transparent;  /* Clean, no additional background - inherits page background */
  padding-top: var(--space-4);
}

/* Results header with edit link */
.results-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
}

.edit-responses-link {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--petra-warm-500);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.edit-responses-link::before {
  content: "\2190";  /* Left arrow */
  font-size: 1em;
}

.edit-responses-link:hover {
  color: var(--petra-gold);
  background: rgba(154, 118, 17, 0.08);
}

/* ============================================================================
   VIEWING RESULTS LABEL (COUPLES MODE)
   ============================================================================ */

.couple-tabs-wrapper {
  text-align: center;
  margin-bottom: var(--space-4);
}

.viewing-results-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petra-warm-500);
  margin-bottom: var(--space-2);
}

/* ============================================================================
   RISK SCALE VISUALIZATION - CENTERED & BALANCED
   ============================================================================ */

.risk-scale-visualization {
  max-width: 720px;
  margin: var(--space-5) auto;
  padding: 0 var(--space-2);
}

.risk-scale-visualization h4 {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--petra-charcoal);
  margin-bottom: var(--space-4);
}

.risk-scale-bar {
  display: flex;
  width: 100%;
  border-radius: 8px;
  overflow: visible;  /* Allow active segment to extend */
  background: var(--petra-warm-100, #F5F4F1);
  border: 1px solid var(--petra-warm-200, #E5E2DC);
}

.risk-scale-segment {
  flex: 1 1 0;  /* Equal width segments */
  min-width: 0;  /* Allow shrinking on small screens */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 6px;
  min-height: 88px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
}

.risk-scale-segment:first-child {
  border-radius: 7px 0 0 7px;
}

.risk-scale-segment:last-child {
  border-right: none;
  border-radius: 0 7px 7px 0;
}

/* Segment background colors using brand palette */
.risk-scale-segment.rs-very-cons {
  background: #E8B84E;
  color: #40434E;
}

.risk-scale-segment.rs-cons {
  background: #8B9DC3;
  color: #FFFFFF;
}

.risk-scale-segment.rs-balanced {
  background: #7EADAD;
  color: #FFFFFF;
}

.risk-scale-segment.rs-bal-growth {
  background: #6B8E7F;
  color: #FFFFFF;
}

.risk-scale-segment.rs-growth {
  background: #976491;
  color: #FFFFFF;
}

.risk-scale-segment.rs-agg-growth {
  background: #CD6969;
  color: #FFFFFF;
}

/* Risk scale text - improved spacing and readability */
.risk-scale-label {
  font-family: var(--font-heading, 'brandon-grotesque', Arial, sans-serif);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 6px;
  word-wrap: break-word;
  hyphens: auto;
}

.risk-scale-range {
  font-family: var(--font-heading, 'brandon-grotesque', Arial, sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.9;
}

/* Active segment styling - clean gold border emphasis */
.risk-scale-segment.active {
  z-index: 2;
  box-shadow:
    inset 0 0 0 3px var(--petra-gold, #9A7611),
    0 4px 12px rgba(154, 118, 17, 0.25);
  transform: scale(1.02);
}

.risk-scale-segment.active::after {
  content: "▲";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: var(--petra-gold, #9A7611);
}

.risk-scale-segment.active .risk-scale-label,
.risk-scale-segment.active .risk-scale-range {
  font-weight: 700;
}

/* Very Conservative active text needs darker color */
.risk-scale-segment.rs-very-cons.active .risk-scale-label,
.risk-scale-segment.rs-very-cons.active .risk-scale-range {
  color: #25282A;
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS FOR RESULTS MODE
   ============================================================================ */

@media (max-width: 768px) {
  .results-header {
    padding: var(--space-3) var(--space-2);
    margin-bottom: var(--space-4);
  }

  .edit-responses-link {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .risk-scale-visualization {
    padding: 0 var(--space-1);
  }

  .risk-scale-visualization h4 {
    font-size: 0.75rem;
    margin-bottom: var(--space-3);
  }

  .risk-scale-segment {
    padding: 14px 4px;
    min-height: 76px;
  }

  .risk-scale-label {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
  }

  .risk-scale-range {
    font-size: 0.5625rem;
  }

  .risk-scale-segment.active::after {
    bottom: -16px;
    font-size: 0.5rem;
  }
}

@media (max-width: 480px) {
  .risk-scale-visualization {
    padding: 0;
    margin: var(--space-4) auto;
  }

  .risk-scale-bar {
    border-radius: 6px;
  }

  .risk-scale-segment {
    padding: 12px 3px;
    min-height: 68px;
  }

  .risk-scale-segment:first-child {
    border-radius: 5px 0 0 5px;
  }

  .risk-scale-segment:last-child {
    border-radius: 0 5px 5px 0;
  }

  .risk-scale-label {
    font-size: 0.4375rem;
    line-height: 1.25;
    margin-bottom: 3px;
  }

  .risk-scale-range {
    font-size: 0.5rem;
  }

  .risk-scale-segment.active {
    transform: scale(1.01);
    box-shadow:
      inset 0 0 0 2px var(--petra-gold, #9A7611),
      0 2px 8px rgba(154, 118, 17, 0.2);
  }

  .risk-scale-segment.active::after {
    bottom: -14px;
    font-size: 0.4375rem;
  }
}

/* ============================================================================
   PDF EXPORT / PRINT STYLES
   ============================================================================ */

@media print {
  .results.results-active {
    padding: 0;
    min-height: auto;
  }

  .results-header {
    display: none;  /* Hide edit link in print */
  }

  .risk-scale-bar {
    box-shadow: none;
    border: 1px solid var(--petra-warm-300);
  }

  .risk-scale-segment {
    break-inside: avoid;
  }

  .insight-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================================================
   COUPLE EMAIL INPUT STYLING
   ============================================================================ */

/* Helper text explaining email behavior */
.couple-email-helper {
  font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: var(--space-4, 20px);
  padding-left: 2px;
}

/* Notice box when only one email provided */
.couple-email-notice {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: var(--space-4, 20px);
}

.couple-email-notice p {
  margin: 0;
  font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #92400e;
}

.couple-email-notice strong {
  font-weight: 600;
}

/* Ensure email inputs in couple mode match existing styling */
#coupleNames input[type="email"] {
  font-family: var(--font-body, 'Crimson Pro', Georgia, serif);
}

/* Section divider before email inputs */
#coupleNames h4:nth-of-type(2) {
  border-top: 1px solid #e5e7eb;
  padding-top: var(--space-4, 20px);
  margin-top: var(--space-5, 25px);
}