/* Ishwa IVF — Shared Stylesheet
 * Brand palette: established from earlier brand work
 * Primary: #5B2682 (deep purple)
 * Accent:  #D6336C (magenta)
 * Deep:    #2E1342 (doctor section bg)
 * BG:      #F8F4ED (warm ivory)
 */

:root {
  --ishwa-primary: #5B2682;
  --ishwa-primary-hover: #4A1F6B;
  --ishwa-accent: #D6336C;
  --ishwa-accent-hover: #B82A5C;
  --ishwa-deep: #2E1342;
  --ishwa-bg: #F8F4ED;
  --ishwa-bg-alt: #FFFFFF;
  --ishwa-text: #1A1A1A;
  --ishwa-text-muted: #555555;
  --ishwa-text-light: #888888;
  --ishwa-border: #E5DDD0;
  --ishwa-success: #2D7A3E;
  --ishwa-error: #C0392B;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(46, 19, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(46, 19, 66, 0.10);
  --shadow-lg: 0 16px 48px rgba(46, 19, 66, 0.14);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ishwa-bg);
  color: var(--ishwa-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TOP BAR === */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 237, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ishwa-border);
  padding: 12px 24px;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ishwa-text);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Legacy classes kept for safe fallback if logo image fails to load */
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ishwa-primary) 0%, var(--ishwa-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Fraunces', Georgia, serif;
}

.logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-left: 12px;
}

.logo-text .accent {
  color: var(--ishwa-accent);
}

.top-bar-cta {
  background: var(--ishwa-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.top-bar-cta:hover {
  background: var(--ishwa-primary-hover);
}

/* === TRUST BAR === */
.trust-bar {
  background: var(--ishwa-deep);
  color: white;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.trust-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.trust-bar-item::before {
  content: "✓";
  color: var(--ishwa-accent);
  font-weight: 700;
}

/* === HERO === */
.hero {
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(91, 38, 130, 0.08);
  color: var(--ishwa-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ishwa-deep);
}

.hero h1 .accent {
  color: var(--ishwa-accent);
  font-style: italic;
}

.hero-sub {
  font-size: 18px;
  color: var(--ishwa-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ishwa-primary);
  color: white;
  padding: 18px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
}

.hero-cta:hover {
  background: var(--ishwa-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.hero-cta-sub {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ishwa-text-light);
}

.hero-credibility-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ishwa-border);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--ishwa-text-muted);
}

.hero-credibility-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-credibility-item::before {
  content: "•";
  color: var(--ishwa-accent);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--ishwa-bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ishwa-border);
}

.hero-card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ishwa-deep);
}

.hero-card-list {
  list-style: none;
}

.hero-card-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ishwa-border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.hero-card-list li:last-child {
  border-bottom: none;
}

.hero-card-list .num {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: var(--ishwa-accent);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === SECTIONS === */
.section {
  padding: 64px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
  color: var(--ishwa-deep);
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--ishwa-text-muted);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* === HOW IT WORKS === */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--ishwa-bg-alt);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--ishwa-border);
}

.step-num {
  display: inline-flex;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--ishwa-primary) 0%, var(--ishwa-accent) 100%);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ishwa-deep);
}

.step-desc {
  font-size: 15px;
  color: var(--ishwa-text-muted);
}

/* === OPTIONS TABLE === */
.options-section {
  background: var(--ishwa-bg-alt);
}

.options-table {
  margin-top: 32px;
  background: var(--ishwa-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--ishwa-border);
}

.options-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ishwa-border);
  gap: 24px;
  align-items: start;
}

.options-row:last-child {
  border-bottom: none;
}

.options-row-label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ishwa-primary);
}

.options-row-desc {
  font-size: 15px;
  color: var(--ishwa-text-muted);
}

/* === MID CTA === */
.mid-cta {
  background: linear-gradient(135deg, var(--ishwa-deep) 0%, var(--ishwa-primary) 100%);
  color: white;
  text-align: center;
  padding: 60px 24px;
}

.mid-cta h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.mid-cta p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.mid-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ishwa-accent);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.mid-cta-btn:hover {
  background: var(--ishwa-accent-hover);
  transform: translateY(-1px);
}

/* === FAQ === */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--ishwa-bg-alt);
  border: 1px solid var(--ishwa-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--ishwa-deep);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--ishwa-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: var(--ishwa-text-muted);
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

/* === FINAL CTA === */
.final-cta {
  text-align: center;
  padding: 80px 24px;
}

.final-cta h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ishwa-deep);
  letter-spacing: -0.01em;
}

.final-cta p {
  font-size: 17px;
  color: var(--ishwa-text-muted);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* === FOOTER === */
footer {
  background: var(--ishwa-deep);
  color: white;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* === QUIZ === */
.quiz-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - 60px);
}

.progress-wrap {
  margin-bottom: 32px;
}

.progress-text {
  font-size: 13px;
  color: var(--ishwa-text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.progress-bar {
  height: 6px;
  background: var(--ishwa-border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--ishwa-primary), var(--ishwa-accent));
  transition: width 0.4s ease;
  width: 0%;
}

.question-card {
  background: var(--ishwa-bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--ishwa-border);
  animation: fadeIn 0.3s ease;
}

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

.question-label {
  font-size: 13px;
  color: var(--ishwa-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.question-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--ishwa-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.question-help {
  font-size: 14px;
  color: var(--ishwa-text-muted);
  margin-bottom: 28px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--ishwa-bg);
  border: 2px solid var(--ishwa-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  font-weight: 500;
}

.option:hover {
  border-color: var(--ishwa-primary);
  background: rgba(91, 38, 130, 0.03);
}

.option.selected {
  border-color: var(--ishwa-primary);
  background: rgba(91, 38, 130, 0.06);
  color: var(--ishwa-primary);
}

.option input[type="radio"],
.option input[type="checkbox"] {
  accent-color: var(--ishwa-primary);
  cursor: pointer;
}

.text-input,
.textarea-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--ishwa-border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  background: var(--ishwa-bg);
  transition: border-color 0.15s ease;
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--ishwa-primary);
  background: var(--ishwa-bg-alt);
}

.textarea-input {
  resize: vertical;
  min-height: 100px;
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ishwa-deep);
  margin-bottom: 8px;
}

.field-help {
  font-size: 13px;
  color: var(--ishwa-text-muted);
  margin-top: 6px;
}

.field-group {
  margin-bottom: 20px;
}

.field-error {
  color: var(--ishwa-error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field-error.show {
  display: block;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: var(--ishwa-bg);
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 13px;
  color: var(--ishwa-text-muted);
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  accent-color: var(--ishwa-primary);
  margin-top: 3px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Inline consent text below button (DPDP-compliant affirmative action via Continue click) */
.consent-inline {
  font-size: 12px;
  color: var(--ishwa-text-muted);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Horizontal pill layout for preferred contact method */
.contact-pref-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.option-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--ishwa-bg);
  border: 2px solid var(--ishwa-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 90px;
  position: relative;
}

.option-pill:hover {
  border-color: var(--ishwa-primary);
  background: rgba(91, 38, 130, 0.03);
}

.option-pill.selected {
  border-color: var(--ishwa-primary);
  background: rgba(91, 38, 130, 0.06);
}

.option-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-pill .contact-icon {
  width: 26px;
  height: 26px;
  color: var(--ishwa-text-muted);
  transition: color 0.15s ease;
}

.option-pill.selected .contact-icon {
  color: var(--ishwa-primary);
}

.option-pill .pill-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ishwa-text);
  transition: color 0.15s ease;
}

.option-pill.selected .pill-label {
  color: var(--ishwa-primary);
}

.option-pill .pill-label-only {
  font-size: 14px;
  font-weight: 600;
  color: var(--ishwa-text);
  transition: color 0.15s ease;
}

.option-pill.selected .pill-label-only {
  color: var(--ishwa-primary);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(91, 38, 130, 0.05);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ishwa-primary);
  font-weight: 500;
}

.privacy-note::before {
  content: "🔒";
  font-size: 14px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.btn-secondary {
  background: transparent;
  color: var(--ishwa-text-muted);
  border: 2px solid var(--ishwa-border);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--ishwa-primary);
  color: var(--ishwa-primary);
}

.btn-primary {
  background: var(--ishwa-primary);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover:not(:disabled) {
  background: var(--ishwa-primary-hover);
}

.btn-primary:disabled {
  background: #999;
  cursor: not-allowed;
  opacity: 0.7;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === THANK YOU === */
.thanks-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--ishwa-primary), var(--ishwa-accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  box-shadow: var(--shadow-lg);
}

.thanks-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--ishwa-deep);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.thanks-segment-msg {
  background: var(--ishwa-bg-alt);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--ishwa-border);
  margin: 32px 0;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.thanks-segment-msg h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  color: var(--ishwa-primary);
  margin-bottom: 12px;
}

.thanks-segment-msg p {
  color: var(--ishwa-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.thanks-next {
  background: linear-gradient(135deg, var(--ishwa-deep), var(--ishwa-primary));
  color: white;
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 24px;
}

.thanks-next h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  margin-bottom: 8px;
}

.thanks-next p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.thanks-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ishwa-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease;
}

.thanks-whatsapp-btn:hover {
  transform: translateY(-1px);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .top-bar {
    padding: 10px 16px;
  }

  .logo-img {
    height: 36px;
  }

  .logo-text {
    font-size: 17px;
  }

  .top-bar-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .trust-bar {
    padding: 8px 16px;
    font-size: 11px;
  }

  .trust-bar-inner {
    gap: 14px;
  }

  .section {
    padding: 48px 20px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
  }

  .options-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .question-card {
    padding: 28px 20px;
  }

  .question-text {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .thanks-title {
    font-size: 30px;
  }
}
