/**
 * Personalized Skin Health Questionnaire & Self-Assessment Stylesheet
 * PCOS Ferticure Clinic — PF-208 Dedicated Tool
 * Unified with PCOS Exercise Planner Design Standards
 */

/* ==========================================================================
   Design System Tokens & Palette (Exercise Planner Brand Sync)
   ========================================================================== */
:root {
  --sq-primary: #b03a66;
  --sq-primary-dark: #8c2b50;
  --sq-primary-light: #fdf2f5;
  --sq-primary-subtle: #f2e4ea;
  --sq-border: #eedee4;
  --sq-border-light: #f2e4ea;
  --sq-slate-dark: #1a202c;
  --sq-slate-text: #2d3748;
  --sq-slate-muted: #718096;
  --sq-slate-light: #4a5568;
  --sq-card-bg: #ffffff;
  --sq-card-tint: #fdfafb;
  --sq-radius: 12px;
  --sq-radius-lg: 16px;
  --sq-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.03);
  --sq-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Base Layout & Container (Exact match to Exercise Planner)
   ========================================================================== */
.planner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: inherit;
  color: var(--sq-slate-text);
  box-sizing: border-box;
}

.planner-header-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.planner-breadcrumb {
  font-size: 0.875rem;
  color: var(--sq-slate-muted);
  margin-bottom: 1rem;
}

.planner-breadcrumb a {
  color: var(--sq-primary);
  text-decoration: none;
  font-weight: 500;
}

.planner-breadcrumb a:hover {
  text-decoration: underline;
}

.planner-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sq-primary);
  background: var(--sq-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--sq-border-light);
}

.planner-header-section h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sq-slate-dark);
  margin: 0 0 1rem;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.planner-header-section .lead-text {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--sq-slate-light);
  margin-bottom: 1.75rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sq-primary);
  color: #ffffff !important;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px 0 rgba(176, 58, 102, 0.35);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  margin-bottom: 1.5rem;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus-visible {
  background: var(--sq-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(176, 58, 102, 0.45);
  outline: 3px solid rgba(176, 58, 102, 0.3);
}

/* Trust Highlights Grid */
.trust-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem;
  text-align: left;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #ffffff;
  border: 1px solid #f0e1e7;
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: var(--sq-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--sq-primary);
  box-shadow: 0 4px 12px rgba(176, 58, 102, 0.12);
}

.trust-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.trust-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sq-slate-dark);
  margin-bottom: 0.25rem;
}

.trust-card span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--sq-slate-muted);
}

/* Clinical Disclaimer Callout */
.clinical-disclaimer-box {
  background: #fcf9fa;
  border-left: 4px solid var(--sq-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sq-slate-light);
}

.clinical-disclaimer-box p {
  margin: 0;
}

/* Main Interactive Tool Master Container */
.planner-app-container {
  background: #ffffff;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--sq-shadow);
  margin-bottom: 3.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   Questionnaire Progress Bar
   ========================================================================== */
.step-progress-wrapper {
  margin-bottom: 2.25rem;
}

.step-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

.step-heading-title {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--sq-primary);
  margin: 0;
}

.step-progress-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sq-slate-muted);
}

.step-progress-track {
  height: 8px;
  background: #f1e2e8;
  border-radius: 4px;
  overflow: hidden;
}

.step-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b03a66, #d25081);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ==========================================================================
   Question Cards & Options Grid
   ========================================================================== */
.step-questions-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.question-card {
  background: var(--sq-card-tint);
  border: 1px solid var(--sq-border-light);
  border-radius: var(--sq-radius);
  padding: 1.5rem;
  margin: 0 0 1.5rem 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.question-card:focus-within {
  border-color: var(--sq-primary);
  box-shadow: 0 0 0 3px rgba(176, 58, 102, 0.12);
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.question-num-badge {
  background: var(--sq-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.question-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sq-slate-dark);
  margin: 0;
  line-height: 1.35;
  padding: 0;
  border: none;
  width: 100%;
}

/* Options Container (Grid of clickable option cards) */
.options-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* Scoped Option Card Button — isolated from global .button overrides */
.sq-option-card {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.85rem 1rem !important;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  color: var(--sq-slate-text) !important;
  transition: all 0.15s ease-in-out;
  user-select: none;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  outline: none;
}

.sq-option-card:hover {
  border-color: var(--sq-primary) !important;
  background: #fffbfa !important;
  transform: translateY(-1px);
}

.sq-option-card[aria-pressed="true"],
.sq-option-card.is-selected {
  border-color: var(--sq-primary) !important;
  background: var(--sq-primary-light) !important;
  color: var(--sq-primary-dark) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(176, 58, 102, 0.12);
}

.option-bullet {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #ffffff;
}

.sq-option-card[aria-pressed="true"] .option-bullet,
.sq-option-card.is-selected .option-bullet {
  border-color: var(--sq-primary);
  background: var(--sq-primary);
  box-shadow: inset 0 0 0 3px #ffffff;
}

.option-text {
  font-size: 0.925rem;
  line-height: 1.4;
}

/* ==========================================================================
   Clinical Results & Assessment Status Card
   ========================================================================== */
.sq-status-box {
  background: var(--sq-card-tint);
  border: 1.5px solid var(--sq-border-light);
  border-radius: var(--sq-radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 2rem;
  transition: all 0.2s ease;
}

.sq-status-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--sq-slate-dark);
  margin: 0 0 1rem;
}

/* Generated Dynamic Results Card */
.sq-results-card {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--sq-border-light);
  animation: fadeIn 0.3s ease;
}

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

.sq-results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.sq-results-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--sq-slate-dark);
  margin: 0.75rem 0 0.5rem;
}

.sq-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sq-insight-box {
  background: #ffffff;
  border: 1.5px solid var(--sq-border-light);
  border-left: 4px solid var(--sq-primary);
  border-radius: 0 var(--sq-radius) var(--sq-radius) 0;
  padding: 1.35rem 1.25rem;
  box-shadow: var(--sq-shadow-sm);
}

.sq-insight-box h4 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--sq-slate-dark);
  margin: 0 0 0.5rem;
}

.sq-insight-box p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sq-slate-light);
  margin: 0;
}

.sq-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0 1rem;
}

.btn-step-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--sq-primary);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(176, 58, 102, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-step-next:hover {
  background: var(--sq-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(176, 58, 102, 0.35);
}

.btn-step-prev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
  color: var(--sq-slate-light);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: 1.5px solid #cbd5e0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step-prev:hover {
  background: #edf2f7;
  color: var(--sq-slate-dark);
}

/* ==========================================================================
   Page Bottom Components: Dermatology Insights, FAQs, Consultation, Tools
   ========================================================================== */
.sq-edu-section {
  margin-bottom: 3.5rem;
}

.sq-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.sq-edu-card {
  background: #ffffff;
  border: 1px solid var(--sq-border-light);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--sq-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sq-edu-card:hover {
  transform: translateY(-2px);
  border-color: var(--sq-primary);
}

.sq-edu-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--sq-slate-dark);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.sq-edu-card p {
  font-size: 0.925rem;
  color: var(--sq-slate-light);
  line-height: 1.6;
  margin: 0;
}

/* FAQs */
.sq-faq-section {
  background: #ffffff;
  border: 1px solid var(--sq-border);
  border-radius: var(--sq-radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--sq-shadow);
  margin-bottom: 3.5rem;
}

.sq-faq-item {
  border: 1px solid var(--sq-border-light);
  border-radius: 10px;
  background: var(--sq-card-tint);
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.sq-faq-item:last-child {
  margin-bottom: 0;
}

.sq-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--sq-slate-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sq-faq-question:hover {
  color: var(--sq-primary);
}

.sq-faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.95rem;
  color: var(--sq-slate-light);
  line-height: 1.6;
}

/* Consultation Box */
.sq-consultation-box {
  background: linear-gradient(135deg, #1b2a4a 0%, #2c3e6b 100%);
  color: #ffffff;
  border-radius: var(--sq-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.sq-consultation-box h2 {
  color: #ffffff;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.sq-consultation-box p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

.sq-consultation-btn {
  display: inline-block;
  background: var(--sq-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sq-consultation-btn:hover {
  background: var(--sq-primary-dark);
}

/* Related Tools */
.sq-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
  text-align: left;
}

.sq-tool-link-card {
  background: #ffffff;
  border: 1px solid var(--sq-border-light);
  border-radius: 12px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.sq-tool-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(176, 58, 102, 0.12);
  border-color: var(--sq-primary);
}

.sq-tool-link-card strong {
  font-size: 1rem;
  color: var(--sq-slate-dark);
  margin-bottom: 0.35rem;
  display: block;
}

.sq-tool-link-card span {
  font-size: 0.85rem;
  color: var(--sq-slate-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.sq-tool-link-card .sq-link-text {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sq-primary);
}

.sq-disclaimer-card {
  background: var(--sq-primary-light);
  border: 1px solid var(--sq-border-light);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  color: var(--sq-slate-muted);
  line-height: 1.55;
  text-align: center;
  margin-top: 3rem;
}

/* ==========================================================================
   Responsive Breakpoints (Desktop 1440px, Tablet 768px, Mobile 390px)
   ========================================================================== */
@media (max-width: 768px) {
  .planner-header-section h1 {
    font-size: 1.85rem;
  }
  .planner-app-container {
    padding: 1.5rem 1.25rem;
  }
  .options-container {
    grid-template-columns: 1fr;
  }
  .sq-option-card {
    min-height: 48px;
  }
  .btn-step-next,
  .btn-step-prev {
    width: 100%;
  }
}
