/* ── Google Font ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────── */
:root {
  --thq-green:      #7fb03a;
  --thq-green-dark: #5f8a28;
  --thq-dark:       #2e3243;
  --thq-gray:       #6b7280;
  --thq-light:      #f5f5f5;
  --thq-border:     #d1d5db;
  --thq-white:      #ffffff;
  --thq-radius:     10px;
  --thq-font:       'Outfit', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
#thq-wrapper *, #thq-wrapper *::before, #thq-wrapper *::after {
  box-sizing: border-box; margin:0; padding:0;
}

/* ── Wrapper ───────────────────────────────────────────────────────── */
#thq-wrapper {
  font-family: var(--thq-font);
  color: var(--thq-dark);
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  min-height: 300px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
}

/* ── Header ────────────────────────────────────────────────────────── */
.thq-header {
  background: var(--thq-dark);
  padding: 18px 28px;
  border-radius: var(--thq-radius) var(--thq-radius) 0 0;
}
.thq-logo {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--thq-white);
  letter-spacing: 1px;
  padding-left: 2rem;
}
.thq-logo span { color: var(--thq-green); }
.thq-tagline {
  font-size: 1.5rem;
  color: #aab;
  margin-top: 2px;
  padding-left: 2rem;
}

/* ── Welcome screen ────────────────────────────────────────────────── */
.thq-welcome-box {
/*   max-width: 500px; */
  margin: 60px auto;
  text-align: center;
  padding: 0 16px;
  display: block;
  margin-inline: auto;
  margin-top: 3rem;
}
.thq-welcome-title {
  font-size: 6rem;
  font-weight: 700;
  color: var(--thq-dark);
  margin-bottom: 6rem;
	margin-top: 6rem;
}
.thq-welcome-sub {
  font-size: 2rem;
  color: var(--thq-gray);
  margin-bottom: 28px;
}
.thq-note { margin-top: 14px; font-size: .9rem; color: var(--thq-gray); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.thq-btn {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 24px auto !important;
  padding: 10px 24px !important;
  font-family: var(--thq-font);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
  border: 2px solid black;
  border-radius: var(--thq-radius);
  transition: background .2s, transform .1s;
  text-align: center;
}
.thq-btn:active { transform: scale(.98); }
.thq-btn-dark {
  background: var(--thq-dark);
  color: var(--thq-white);
  border-color: var(--thq-dark);
}
.thq-btn-dark:hover { background: #1a2035; border-color: #1a2035; }
.thq-btn-outline {
  background: transparent;
  border-color: var(--thq-dark);
  color: var(--thq-dark);
}
.thq-btn-outline:hover { background: var(--thq-dark); color: #fff; }
.thq-btn-outline-dark {
  background: transparent;
  border-color: var(--thq-dark);
  color: var(--thq-dark);
}
.thq-btn-outline-dark:hover { background: var(--thq-dark); color: #fff; }

/* ── Section Tabs ──────────────────────────────────────────────────── */
.thq-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 20px 20px!important;
}
.thq-tab {
  flex: 1;
  padding: 12px 4px!important;
  background: var(--thq-light);
  border-radius: var(--thq-radius);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--thq-gray);
  text-align: center;
  line-height: 1;
  transition: background .2s, color .2s;
}
.thq-tab.active { background: var(--thq-green); color: var(--thq-white); }
.thq-tab.done   { background: #d4eaaa; color: var(--thq-green-dark); }

/* ── Progress bar ──────────────────────────────────────────────────── */
.thq-progress-wrap {
  position: relative;
  height: 7px;
  background: #e5e7eb;
  margin: 12px 20px 0;
  border-radius: 4px;
}
.thq-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--thq-green);
  border-radius: 4px;
  transition: width .4s ease;
}
.thq-progress-pct {
  position: absolute;
  right: 0;
  top: -22px;
  font-size: 1.5rem;
  color: var(--thq-gray);
  font-weight: 600;
}

/* ── Nav (Previous / Exit) ─────────────────────────────────────────── */
.thq-nav {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 0;
}
.thq-nav a {
  font-size: 1.5rem;          /* Bigger nav links */
  color: var(--thq-gray);
  text-decoration: underline;
}
.thq-nav a:hover { color: var(--thq-dark); }

/* ── Step / Question container ─────────────────────────────────────── */
.thq-step { display: none; }
.thq-step.active { display: block; }

.thq-question {
/*   max-width: 640px; */
  margin: 36px auto 0;        /* More top margin */
  padding: 0 20px 40px;       /* Bottom padding added */
}
.thq-question h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 32px;
  line-height: 1.4;
  color: var(--thq-dark);
}
.thq-hindi { font-size: 1rem; color: var(--thq-gray); }

/* ── Text inputs ───────────────────────────────────────────────────── */
.thq-field-wrap { margin-bottom: 28px; }
.thq-text-input {
  width: 100%;
  padding: 16px 4px;
  border: none;
  border-bottom: 2px solid var(--thq-green);
  border-radius: 0;
  font-family: var(--thq-font);
  font-size: 1.5rem;
  color: var(--thq-dark);
  background: transparent;
  outline: none;
  transition: border-color .2s;
}
.thq-text-input:focus { border-bottom-color: var(--thq-green-dark); }
.thq-text-input::placeholder { color: #aaa; }

.thq-phone-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--thq-green);
  padding-bottom: 2px;
}
.thq-country-code {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--thq-dark);
  margin-right: 10px;
  white-space: nowrap;
}
.thq-phone-row .thq-text-input { border-bottom: none; padding-left: 0; }

/* ── OTP boxes ─────────────────────────────────────────────────────── */
.thq-otp-boxes { display: flex; gap: 12px; margin-bottom: 14px; }
.thq-otp-box {
  flex: 1;
  min-width: 0;
  height: 60px;               /* Bigger OTP boxes */
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--thq-font);
  border: 2px solid var(--thq-border);
  border-radius: var(--thq-radius);
  background: var(--thq-white);
  color: var(--thq-dark);
  outline: none;
  transition: border-color .2s;
}
.thq-otp-box:focus { border-color: var(--thq-green); box-shadow: 0 0 0 3px rgba(127,176,58,.15); }
.thq-otp-box.filled { border-color: var(--thq-green); background: #f0f8e8; }
.thq-sub { font-size: 1rem; color: var(--thq-gray); margin-bottom: 24px; }
.thq-resend { text-align: center; font-size: .95rem; color: var(--thq-gray); margin-top: 18px; }
.thq-resend a { color: var(--thq-green); font-weight: 600; }
.thq-otp-hint { font-size: .85rem; color: #e07020; font-weight: 600; margin-top: 8px; padding: 8px 12px; background: #fff8f0; border-radius: 6px; }

/* ── Radio option lists ────────────────────────────────────────────── */
.thq-option-list { display: flex; flex-direction: column; gap: 0; }
.thq-option-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;          /* More padding = bigger rows */
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 1.5rem;             /* Bigger option text */
  transition: background .15s;
  border-radius: 6px;
}
.thq-option-row:last-child { border-bottom: none; }
.thq-option-row:hover { background: #f7faf0; }
.thq-option-row input[type="radio"] {
  accent-color: var(--thq-green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
}
.thq-option-row.selected { background: #f0f8e6; font-weight: 600; }

/* ── 2-col option grid (gender) ────────────────────────────────────── */
.thq-option-grid { display: grid; gap: 14px; }
.thq-col2 { grid-template-columns: 1fr 1fr; }
.thq-option-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px 16px!important;          /* More padding */
  border: 2px solid var(--thq-border);
  border-radius: var(--thq-radius);
  cursor: pointer;
  font-size: 1.6rem!important;           /* Bigger gender text */
  font-weight: 600;
  transition: all .2s;
	margin-top: 40px;
}
.thq-option-card:hover { border-color: var(--thq-green); background: #f7faf0; }
.thq-option-card input { display: none; }
.thq-option-card.selected { border-color: var(--thq-green); background: #f0f8e6; color: var(--thq-green-dark); }

/* ── Hair stage grid ───────────────────────────────────────────────── */
.thq-stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.thq-stage-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 2px solid var(--thq-border);
  border-radius: var(--thq-radius);
  cursor: pointer;
  transition: all .2s;
}
.thq-stage-card:hover { border-color: var(--thq-green); background: #f7faf0; }
.thq-stage-card input { display: none; }
.thq-stage-card.selected { border-color: var(--thq-green); background: #f0f8e6; }
.thq-stage-icon { font-size: 1.6rem; flex-shrink: 0; }
.thq-stage-info { display: flex; flex-direction: column; gap: 2px; }
.thq-stage-label { font-size: 1.5rem; font-weight: 700; color: var(--thq-dark); }
.thq-stage-desc  { font-size: 1rem; color: var(--thq-gray); }

/* ── SCALP PHOTO UPLOAD STEP ───────────────────────────────────────── */
.thq-scalp-sample {
  background: #fdf8f3;
  border: 2px dashed #dcc;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 28px;
}
.thq-scalp-img-wrap {
  position: relative;
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.thq-scalp-svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  border-radius: 12px;
}
.thq-expert-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.95);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--thq-dark);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.thq-expert-avatar { font-size: 1.2rem; }
.thq-scalp-hint {
  margin-top: 16px;
  font-size: .95rem;
  color: var(--thq-gray);
}

/* Preview */
.thq-scalp-preview-img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
  margin: 0 auto 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  border: 3px solid var(--thq-green);
}
.thq-scalp-remove-btn {
  display: block;
  margin: 0 auto 20px;
  background: none;
  border: 1px solid #dc2626;
  color: #dc2626;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
  font-family: var(--thq-font);
}
.thq-scalp-remove-btn:hover { background: #fff5f5; }

/* Two upload buttons side by side */
.thq-scalp-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.thq-scalp-btns .thq-btn { max-width: 100%; margin: 0; font-size: .9rem; padding: 15px 10px; }

.thq-skip-link {
  text-align: center;
  margin-top: 18px;
  font-size: .9rem;
}
.thq-skip-link a { color: var(--thq-gray); text-decoration: underline; }
.thq-skip-link a:hover { color: var(--thq-dark); }

/* ── Errors ────────────────────────────────────────────────────────── */
.thq-error {
  font-size: 1.5rem;
  color: #dc2626;
  margin-top: 8px;
  min-height: 18px;
}

/* ── Disclaimer ────────────────────────────────────────────────────── */
.thq-disclaimer {
  font-size: 1.1rem;
  color: #9ca3af;
  margin-top: 20px;
  line-height: 1.55;
}
.thq-disclaimer a { color: var(--thq-green); }

/* ── Thank you screen ──────────────────────────────────────────────── */
.thq-thankyou { text-align: center; padding-top: 20px; }
.thq-ty-icon { font-size: 4rem; margin-bottom: 20px; }
.thq-thankyou h2 { font-size: 2rem; margin-bottom: 14px; }
.thq-thankyou p { color: var(--thq-gray); margin-bottom: 36px; font-size: 1.05rem; line-height: 1.7; }
.thq-ty-stats { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.thq-ty-stat {
  background: var(--thq-light);
  border-radius: var(--thq-radius);
  padding: 20px 28px;
  text-align: center;
  min-width: 110px;
}
.thq-ty-stat strong { display: block; font-size: 1.5rem; color: var(--thq-dark); }
.thq-ty-stat span   { font-size: .85rem; color: var(--thq-gray); margin-top: 3px; display: block; }

/* ── Loader ────────────────────────────────────────────────────────── */
#thq-loader {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: var(--thq-radius);
}
.thq-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--thq-green);
  border-radius: 50%;
  animation: thq-spin .7s linear infinite;
}
@keyframes thq-spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #thq-wrapper { font-size: 15px; }
  .thq-tabs { gap: 5px; padding: 14px 12px 0; }
  .thq-tab  { font-size: .78rem; padding: 10px 5px; }
  .thq-question { padding: 0 14px 32px; margin-top: 28px; }
  .thq-question h2 { font-size: 1.18rem; margin-bottom: 24px; }
  .thq-welcome-title { font-size: 2rem; }
  .thq-stage-grid { grid-template-columns: 1fr 1fr; }
  .thq-otp-box { height: 50px; font-size: 1.3rem; }
  .thq-otp-boxes { gap: 7px; }
  .thq-scalp-btns { grid-template-columns: 1fr; }
  .thq-scalp-btns .thq-btn { font-size: .95rem; }
  .thq-ty-stats { gap: 12px; }
  .thq-col2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .thq-stage-grid { grid-template-columns: 1fr; }
  .thq-col2 { grid-template-columns: 1fr; }
  .thq-otp-boxes { gap: 5px; }
  .thq-otp-box { height: 44px; font-size: 1.1rem; }
}
.thq-question h2 {
    text-align: left;
    margin-bottom: 40px !important;
    margin-top: 30px !important;
    font-size: 24px;
}