/* ================================================
   QUIZ CONFIRMATION PAGE - TIGHTENED CSS
   ================================================ */

/* Main Container */
.eci-simple-results {
  max-width: 750px;
  margin: 30px auto;
  padding: 20px;
}

/* Page Title */
.eci-simple-results h2 {
  color: #2C3E50;
  font-size: 32px;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}

/* Intro Text */
.eci-simple-results > p {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 35px;
}

/* Result Stage Box */
.result-stage-box {
  background: #ECF0F1;
  padding: 30px;
  border-radius: 8px;
  margin: 0 0 30px 0;
  border-left: 5px solid #3498DB;
  text-align: center;
}

.stage-title {
  color: #2C3E50;
  font-size: 26px;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.stage-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Total Score Display */
.total-score-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 35px 40px;
  border-radius: 10px;
  margin: 0 0 30px 0;
}

.score-number {
  font-size: 64px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.score-label {
  font-size: 20px;
  margin: 12px 0 0 0;
  opacity: 0.95;
}

/* Dimensions Overview */
.dimensions-overview {
  background: #F8F9FA;
  padding: 30px;
  border-radius: 8px;
  margin: 0 0 35px 0;
}

.dimensions-overview h3 {
  color: #2C3E50;
  font-size: 22px;
  margin: 0 0 20px 0;
  font-weight: 600;
}

.dimension-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #E0E0E0;
}

.dimension-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dimension-row:first-of-type {
  padding-top: 0;
}

.dimension-name {
  font-size: 16px;
  color: #555;
  font-weight: 400;
}

.dimension-score {
  font-size: 18px;
  color: #27AE60;
  font-weight: 600;
}

.dimension-score strong {
  font-size: 26px;
  font-weight: 700;
}

/* Comprehensive CTA Box */
.comprehensive-cta {
  margin: 40px 0 0 0;
}

.cta-box {
  background: #FFF8DC;
  border: 2px solid #F4D03F;
  padding: 35px 40px;
  border-radius: 10px;
  text-align: center;
}

.cta-box h3 {
  color: #856404;
  font-size: 24px;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.cta-box p {
  font-size: 16px;
  color: #856404;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

/* Button Styling */
.btn-primary {
  background: #27AE60;
  color: white;
  border: none;
  padding: 16px 45px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(39, 174, 96, 0.3);
}

.btn-primary:hover {
  background: #229954;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
  text-decoration: none;
  color: white;
}

.btn-large {
  padding: 18px 50px;
  font-size: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .eci-simple-results {
    padding: 15px;
  }
  
  .result-stage-box {
    padding: 25px 20px;
  }
  
  .total-score-display {
    padding: 30px 25px;
  }
  
  .score-number {
    font-size: 52px;
  }
  
  .dimensions-overview {
    padding: 25px 20px;
  }
  
  .dimension-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 15px 0;
  }
  
  .cta-box {
    padding: 30px 25px;
  }
  
  .btn-primary,
  .btn-large {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
  }
}

/* ================================================
   COMPREHENSIVE ANALYSIS PAGE - COMPLETE CSS
   ================================================ */

/* Print Button Section */
.print-action-section {
  text-align: center;
  margin: 30px auto 40px auto;
  padding: 25px 30px;
  background: #F0F8FF;
  border-radius: 10px;
  border: 2px solid #3498DB;
  max-width: 750px;
}

.btn-print-pdf {
  display: inline-block;
  background: #3498DB;
  color: white;
  text-decoration: none;
  padding: 16px 45px;
  font-size: 18px;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
  transition: all 0.3s ease;
}

.btn-print-pdf:hover {
  background: #2980B9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
  color: white;
  text-decoration: none;
}

.print-help {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Analysis Container */
.eci-comprehensive-analysis {
  max-width: 850px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: #333;
}

/* Section Styling */
.analysis-section {
  margin-bottom: 40px;
}

.analysis-section h2 {
  color: #2C3E50;
  font-size: 26px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid #3498DB;
  font-weight: 600;
}

.analysis-section h3 {
  color: #34495E;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.analysis-section h4 {
  color: #34495E;
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.analysis-section p {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 15px;
}

.analysis-section ul {
  margin: 12px 0;
  padding-left: 25px;
}

.analysis-section li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 15px;
}

/* Result Stage Boxes */
.result-stage-full {
  padding: 25px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 5px solid;
}

.stage-high {
  background: #D5F4E6;
  border-left-color: #27AE60;
}

.stage-medium {
  background: #FFF3CD;
  border-left-color: #F39C12;
}

.stage-low {
  background: #EBF5FB;
  border-left-color: #3498DB;
}

.result-stage-full h3 {
  margin-top: 0;
  color: #2C3E50;
  font-size: 22px;
  margin-bottom: 15px;
}

.result-stage-full h4 {
  color: #2C3E50;
  font-size: 17px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.result-stage-full p {
  line-height: 1.6;
  margin-bottom: 12px;
}

/* Reduced Score Box (Martina's request) */
.total-score-reduced {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 20px 25px;
  border-radius: 8px;
  margin: 20px 0 0 0;
}

.score-number-reduced {
  font-size: 42px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
}

.score-label-reduced {
  font-size: 15px;
  margin: 8px 0 0 0;
  opacity: 0.95;
}

/* Yellow Interpretation Box - MOVED TO TOP */
.interpretation-note-top {
  background: #FFF8DC;
  border: 2px solid #F4D03F;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.interpretation-note-top h4 {
  color: #856404;
  margin-top: 0;
  font-size: 17px;
  margin-bottom: 12px;
}

.interpretation-note-top p {
  color: #856404;
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 15px;
}

/* Dimensions with Alternating Backgrounds */
.dimension-full {
  padding: 25px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 4px solid #3498DB;
}

.dimension-white {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
}

.dimension-grey {
  background: #F8F9FA;
}

.dimension-full h3 {
  color: #2C3E50;
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.dimension-score-full {
  color: #27AE60;
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0;
}

.dimension-score-full strong {
  font-size: 24px;
  font-weight: 700;
}

.dimension-full h4 {
  color: #34495E;
  font-size: 16px;
  margin-top: 16px;
  margin-bottom: 10px;
}

.dimension-full p {
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: 15px;
}

/* Interpretation Note (old position - for compatibility) */
.interpretation-note {
  background: #FFF8DC;
  border: 2px solid #F4D03F;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.interpretation-note h4 {
  color: #856404;
  margin-top: 0;
  font-size: 17px;
}

.interpretation-note p {
  color: #856404;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Footer Section */
.footer-section {
  border-top: 2px solid #ddd;
  padding-top: 25px;
  margin-top: 40px;
}

.footer-info {
  background: #F8F9FA;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.footer-info p {
  margin: 12px 0;
  font-size: 14px;
}

.version-info {
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  text-align: center;
}

/* Development CTA Section */
.development-cta-section {
  max-width: 800px;
  margin: 50px auto 30px auto;
  padding: 40px;
  background: #F8F9FA;
  border-radius: 12px;
  border: 2px solid #E9ECEF;
}

.development-cta-section h2 {
  color: #2C3E50;
  font-size: 24px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
}

.development-cta-section p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

/* Hide print-only elements on screen */
.print-only {
  display: none;
}

.page-break {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .eci-comprehensive-analysis {
    padding: 15px;
  }
  
  .analysis-section h2 {
    font-size: 22px;
  }
  
  .result-stage-full,
  .dimension-full,
  .interpretation-note-top {
    padding: 20px 18px;
  }
  
  .score-number-reduced {
    font-size: 36px;
  }
  
  .print-action-section {
    padding: 20px 18px;
  }
  
  .development-cta-section {
    padding: 30px 20px;
    margin: 40px 20px 20px 20px;
  }
}

/* Print Styles */
@media print {
  .no-print,
  .print-action-section,
  .development-cta-section {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
  
  .page-break {
    display: block;
    page-break-after: always;
  }
  
  body {
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
  }
  
  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000;
  }
  
  .dimension-full,
  .result-stage-full,
  .interpretation-note-top {
    page-break-inside: avoid;
    background: none !important;
    border: 1px solid #ccc;
  }
  
  .total-score-reduced {
    background: #f5f5f5 !important;
    color: #000 !important;
    border: 2px solid #000;
  }
  
  .score-number-reduced {
    font-size: 32pt !important;
    color: #000 !important;
  }
  
  .score-label-reduced {
    font-size: 11pt;
    color: #000 !important;
  }
}

/* ================================================
   MOBILE FIX FOR GREEN BUTTON/BOX
   ================================================ */

/* Development CTA - Mobile Optimization */
@media (max-width: 768px) {
  .development-cta-section {
    margin: 40px 15px 30px 15px !important;
    padding: 30px 20px !important;
    border-radius: 8px !important;
  }
  
  .development-cta-section h2 {
    font-size: 22px !important;
  }
  
  .development-cta-section p {
    font-size: 14px !important;
  }
  
  /* Email Input Field */
  .development-cta-section input[type="email"],
  .development-cta-section .frm_form_field input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 12px !important;
    font-size: 16px !important;
  }
  
  /* Checkbox Container */
  .development-cta-section .frm_checkbox,
  .development-cta-section .consent-checkbox-group {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
  }
  
  .development-cta-section .frm_checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    min-width: 18px !important;
  }
  
  .development-cta-section .frm_checkbox label {
    font-size: 13px !important;
    line-height: 1.5 !important;
    flex: 1 !important;
  }
  
  /* Submit Button - Green Box Fix */
  .development-cta-section button[type="submit"],
  .development-cta-section .frm_submit,
  .development-cta-section .btn-development,
  .development-cta-section input[type="submit"] {
    width: 100% !important;
    padding: 16px 20px !important;
    font-size: 17px !important;
    background: #27AE60 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
  }
  
  /* Privacy Text */
  .development-cta-section > p:last-of-type {
    font-size: 12px !important;
    margin-top: 15px !important;
  }
}

/* Fix for any form elements extending beyond container */
.development-cta-section * {
  max-width: 100%;
  box-sizing: border-box;
}

.development-cta-section .frm_forms,
.development-cta-section .frm_form_fields {
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure green button doesn't overflow */
.btn-development,
button[type="submit"] {
  max-width: 100%;
  word-wrap: break-word;
}

/* General Mobile Improvements */
@media (max-width: 768px) {
  /* Print Button Mobile */
  .print-action-section {
    margin: 20px 15px 30px 15px !important;
    padding: 20px 15px !important;
  }
  
  #eci-pdf-button {
    width: 100% !important;
    padding: 14px 20px !important;
  }
  
  /* Analysis Container */
  .eci-comprehensive-analysis {
    padding: 15px !important;
  }
  
  /* Result Stage Box */
  .result-stage-full {
    padding: 20px 18px !important;
    margin: 15px 0 !important;
  }
  
  /* Score Box */
  .total-score-reduced {
    padding: 18px 20px !important;
  }
  
  .score-number-reduced {
    font-size: 36px !important;
  }
  
  /* Dimensions */
  .dimension-full {
    padding: 20px 18px !important;
    margin: 15px 0 !important;
  }
  
  /* Footer */
  .footer-section {
    padding: 20px 0 !important;
  }
  
  .footer-info {
    padding: 18px !important;
  }
  
  /* Prevent horizontal overflow */
  body {
    overflow-x: hidden !important;
  }
  
  .eci-comprehensive-analysis,
  .analysis-section,
  .development-cta-section {
    overflow-x: hidden !important;
  }
}

/* 480px and smaller screen sizes */
@media (max-width:480px){

	/* Eci button */
	#eci-pdf-button{
		width:76% !important;
		padding-top:0px !important;
		min-height:46px;
	}
	
	/* Strong Tag */
	#tve_editor .analysis-section strong{
		
	}
	
}