/* ========================================
   STRESS CALCULATOR - MODERN DESIGN v2.1
   With Scale Labels Under Each Question
   ======================================== */

:root {
  --primary-color: #4A90E2;
  --primary-dark: #2E5C8A;
  --success-color: #27AE60;
  --warning-color: #F39C12;
  --danger-color: #E74C3C;
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E0E6ED;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
}

/* Container - Left Aligned */
#stress-calculator-v23 {
  max-width: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

/* Header Section */
.sc23-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 3em 2.5em;
  border-radius: 12px;
  color: white;
  margin-bottom: 2em;
  box-shadow: var(--shadow-lg);
  text-align: left;
}

.sc23-header h2 {
  font-size: 2.2em;
  margin: 0 0 0.3em 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sc23-header h3 {
  font-size: 1.4em;
  margin: 0 0 1em 0;
  font-weight: 400;
  opacity: 0.95;
}

.sc23-intro {
  font-size: 1.05em;
  line-height: 1.7;
  margin: 0.8em 0;
  opacity: 0.92;
}

.sc23-intro-highlight {
  background: rgba(255,255,255,0.15);
  padding: 1em 1.5em;
  border-radius: 8px;
  font-size: 1.1em;
  margin: 1.5em 0 0 0;
  border-left: 4px solid rgba(255,255,255,0.4);
}

/* Form Styling */
#sc-form {
  background: var(--bg-white);
  padding: 2.5em;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 2em;
}

/* Scale Explanation - Simplified at top */
.sc23-scale-explanation {
  background: #F0F4FF;
  padding: 1.2em 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
  border-left: 4px solid var(--primary-color);
  text-align: center;
}

.sc23-scale-explanation h4 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.1em;
}

/* Hide the old scale info since we're showing it under each question */
.sc23-scale-info {
  display: none;
}

/* Questions Section */
#sc-questions > div {
  margin-bottom: 2em;
  padding: 1.8em;
  background: var(--bg-light);
  border-radius: 10px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

#sc-questions > div:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 12px rgba(74, 144, 226, 0.12);
}

/* Question Text */
.question-text {
  display: block;
  font-weight: 600;
  margin-bottom: 1.2em;
  color: var(--text-dark);
  font-size: 1.08em;
  line-height: 1.5;
}

/* Radio Container - Horizontal Layout */
.radio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em;
  margin-top: 1em;
}

/* Individual Radio Option */
.radio-option {
  flex: 1 1 calc(20% - 0.8em);
  min-width: 110px;
}

.radio-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em 0.8em;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  height: 100%;
  min-height: 85px;
}

.radio-option label:hover {
  border-color: var(--primary-color);
  background: #F8FAFF;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(74, 144, 226, 0.15);
}

.radio-option input[type="radio"] {
  display: none;
}

/* Radio Number (0-4) */
.radio-number {
  display: block;
  font-size: 1.6em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.3em;
}

/* Radio Label (Aldrig, etc.) */
.radio-label {
  display: block;
  font-size: 0.85em;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.3;
}

/* Selected State */
.radio-option.selected label {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.radio-option.selected .radio-number,
.radio-option.selected .radio-label {
  color: white;
}

/* Email Section */
.sc23-email-section {
  margin: 2em 0 2em 0;
  padding: 1.5em;
  background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FF 100%);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.sc23-email-section > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.8em;
  color: var(--primary-dark);
  font-size: 1.05em;
}

.sc23-email-section input[type="email"],
.sc23-email-section input[type="tel"] {
  width: 100%;
  padding: 0.9em 1.2em;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
  background: white;
}

.sc23-email-section input[type="email"]:focus,
.sc23-email-section input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Newsletter Option - Always Visible */
.sc23-newsletter-option {
  margin-top: 1.5em;
  padding: 1.2em;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  border: 2px solid #E8F0FF;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  padding: 1em;
  margin: 0.8em 0;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkbox-label:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
  background: #F8FAFF;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 1em;
  margin-top: 0.2em;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-text {
  flex: 1;
}

.checkbox-text strong {
  display: block;
  margin-bottom: 0.3em;
  color: var(--text-dark);
}

.checkbox-text small {
  color: var(--text-light);
  line-height: 1.4;
}

/* GDPR Notice */
.gdpr-notice {
  margin-top: 1em;
  padding: 0.8em;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  text-align: center;
}

.gdpr-notice small {
  color: var(--text-light);
}

.gdpr-notice a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Subscription Success */
.subscription-success {
  background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
  padding: 1.5em;
  border-radius: 8px;
  border-left: 4px solid var(--success-color);
  margin: 1.5em 0;
  text-align: center;
}

.subscription-success p {
  margin: 0.5em 0;
  color: #2E7D32;
}

.subscription-success p:first-child {
  font-size: 1.1em;
}

/* Submit Button */
.sc23-submit-btn {
  width: 100%;
  padding: 1.2em 2em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.sc23-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.sc23-submit-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.3em;
}

/* Results Section */
#sc-result {
  background: white;
  padding: 2.5em;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-top: 2em;
  animation: slideIn 0.5s ease;
}

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

.sc23-result-header {
  text-align: center;
  margin-bottom: 1.5em;
}

.sc23-result-header h3 {
  font-size: 1.8em;
  color: var(--text-dark);
  margin: 0;
}

/* Progress Bar */
#sc-progress-wrapper {
  position: relative;
  background: #E0E6ED;
  border-radius: 50px;
  height: 40px;
  overflow: hidden;
  margin: 2em 0;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

#sc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #27AE60, #2ECC71);
  transition: width 2s ease-out;
  border-radius: 50px;
  position: relative;
}

#sc-progress-bar.warning {
  background: linear-gradient(90deg, #F39C12, #F1C40F);
}

#sc-progress-bar.danger {
  background: linear-gradient(90deg, #E74C3C, #EC7063);
}

#sc-progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 1.1em;
  color: var(--text-dark);
  z-index: 10;
}

/* Score Display */
.sc23-score-display {
  text-align: center;
  margin: 2em 0;
}

.score-number {
  font-size: 4em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 0.2em;
}

.score-label {
  font-size: 1.2em;
  color: var(--text-light);
  font-weight: 500;
}

/* Tier Indicator */
.sc23-tier-indicator {
  text-align: center;
  margin: 2em 0;
}

.tier-badge {
  display: inline-block;
  padding: 0.7em 2em;
  border-radius: 50px;
  font-size: 1.3em;
  font-weight: 700;
  background: var(--success-color);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.tier-badge.warning {
  background: var(--warning-color);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.tier-badge.danger {
  background: var(--danger-color);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Result Content */
.sc23-result-content {
  background: var(--bg-light);
  padding: 2em;
  border-radius: 10px;
  margin: 2em 0;
  border-left: 4px solid var(--primary-color);
}

.sc23-result-content p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-dark);
}

/* Breakdown Section */
.sc23-breakdown {
  background: linear-gradient(135deg, #F0F4FF 0%, #E8F0FF 100%);
  padding: 1.8em;
  border-radius: 10px;
  margin: 2em 0;
}

.sc23-breakdown h4 {
  margin: 0 0 1.2em 0;
  color: var(--primary-dark);
  font-size: 1.3em;
}

.breakdown-items {
  display: grid;
  gap: 1em;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 1em 1.5em;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.breakdown-label {
  font-weight: 600;
  color: var(--text-dark);
}

.breakdown-value {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
}

/* CTA Button */
.sc23-cta {
  display: block;
  width: 100%;
  padding: 1.2em 2em;
  background: linear-gradient(135deg, #27AE60 0%, #2ECC71 100%);
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.2em;
  text-align: center;
  margin-top: 2em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.sc23-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sc23-header {
    padding: 2em 1.5em;
  }
  
  .sc23-header h2 {
    font-size: 1.6em;
  }
  
  .sc23-header h3 {
    font-size: 1.2em;
  }
  
  #sc-form {
    padding: 1.5em;
  }
  
  .radio-container {
    gap: 0.6em;
  }
  
  .radio-option {
    flex: 1 1 calc(50% - 0.6em);
    min-width: 0;
  }
  
  .radio-option label {
    min-height: 75px;
    padding: 0.8em 0.5em;
  }
  
  .radio-number {
    font-size: 1.4em;
  }
  
  .radio-label {
    font-size: 0.8em;
  }
  
  .score-number {
    font-size: 3em;
  }
  
  #sc-result {
    padding: 1.5em;
  }
}

@media (max-width: 480px) {
  .sc23-header h2 {
    font-size: 1.4em;
  }
  
  #sc-questions > div {
    padding: 1.2em;
  }
  
  .question-text {
    font-size: 1em;
  }
  
  .radio-container {
    flex-direction: column;
  }
  
  .radio-option {
    flex: 1 1 100%;
  }
  
  .radio-option label {
    flex-direction: row;
    justify-content: flex-start;
    min-height: auto;
    padding: 1em;
    gap: 1em;
  }
  
  .radio-number {
    font-size: 1.5em;
    margin-bottom: 0;
  }
  
  .radio-label {
    font-size: 0.95em;
    text-align: left;
  }
  
  .breakdown-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
  }
}
