/* Frontend styles for Mood Assessment Wizard */

.maw-wrapper {
  font-family: inherit;
  font-size: var(--maw-base-font-size, 16px);
}

.maw-card {
  background: #ffffff;
  border-radius: var(--maw-card-radius, 20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  padding: var(--maw-card-padding, 30px);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* Header */
.maw-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.maw-header-icon {
  color: var(--maw-primary, #f97316);
  background: var(--maw-bg-light, #fff7ed);
  padding: 12px;
  border-radius: 12px;
  flex-shrink: 0;
}
.maw-title {
  margin: 0;
  color: var(--maw-primary-dark, #c2410c);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}
.maw-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #64748b;
}
.maw-divider {
  height: 1px;
  background: #e2e8f0;
  margin-bottom: 25px;
  width: 100%;
}

/* Steps */
.maw-steps-container {
  position: relative;
  min-height: 260px;
}
.maw-step {
  display: none;
  animation: mawFadeIn 0.35s ease;
}
.maw-step.active {
  display: block;
}
@keyframes mawFadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Question */
.maw-step-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--maw-primary, #f97316);
  background: var(--maw-bg-light, #fff7ed);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.maw-question {
  margin: 0 0 20px;
  font-size: var(--maw-question-font-size, 20px);
  color: var(--maw-gray, #334155);
  line-height: 1.4;
  font-weight: 700;
}

/* Options grid */
.maw-options-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0;
  width: 100%;
}

.maw-option-card {
  position: relative;
  cursor: pointer;
  display: block;
  width: 48%;
  flex: 0 0 48%;
  margin-bottom: var(--maw-option-gap, 15px);
}
@media (max-width: 500px) {
  .maw-option-card {
    width: 100%;
    flex: 0 0 100%;
  }
}
.maw-option-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.maw-opt-content {
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px;
  text-align: center;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: var(--maw-option-font-size, 16px);
  transition: all 0.2s ease;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Selected state */
.maw-option-card input:checked + .maw-opt-content {
  border-color: var(--maw-option-selected-border, var(--maw-primary, #f97316));
  background: var(--maw-option-selected-bg, #fff7ed);
  color: var(--maw-option-selected-color, var(--maw-primary-dark, #c2410c));
}

/* Footer & actions */
.maw-footer {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 16px;
}
.maw-error-msg {
  min-height: 18px;
  font-size: 0.82rem;
  color: #b91c1c;
  margin-bottom: 8px;
}
.maw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

/* Buttons - we override Elementor here */
.maw-wrapper .maw-btn,
.maw-wrapper .maw-restart,
.maw-wrapper .maw-btn-call,
.maw-wrapper .maw-btn-book-online {
  border-radius: var(--maw-button-radius, 10px) !important;
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  text-decoration: none !important;
  line-height: 1.2;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
  box-shadow: none !important;
}

.maw-wrapper .maw-btn-primary {
  background: var(--maw-primary, #f97316) !important;
  color: #ffffff !important;
}
.maw-wrapper .maw-btn-primary:hover,
.maw-wrapper .maw-btn-primary:focus {
  background: var(--maw-primary-dark, #c2410c) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.maw-wrapper .maw-btn-secondary {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.maw-wrapper .maw-btn-secondary[disabled],
.maw-wrapper .maw-btn-secondary:disabled {
  opacity: 0.5;
  cursor: default;
}
.maw-wrapper .maw-btn-secondary:hover:not([disabled]),
.maw-wrapper .maw-btn-secondary:focus:not([disabled]) {
  background: #f8fafc !important;
}

/* Make sure generic button styles from themes don't leak in */
.maw-wrapper button,
.maw-wrapper button:hover,
.maw-wrapper button:focus {
  box-shadow: none !important;
}

/* Progress bar */
.maw-progress-container {
  margin-top: 6px;
}
.maw-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 4px;
}
.maw-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.maw-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--maw-primary, #f97316), var(--maw-primary-dark, #c2410c));
  transition: width 0.25s ease;
}

/* Result screen */
.maw-result-screen {
  text-align: left;
}
.maw-result-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--maw-bg-light, #fff7ed);
  color: var(--maw-primary, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.maw-result-heading {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--maw-gray, #334155);
}
.maw-result-body {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: #475569;
}

/* CTA card */
.maw-cta-card {
  border-radius: 18px;
  border: 1px solid rgba(249,115,22,0.35);
  background: radial-gradient(circle at top left, rgba(249,115,22,0.14), #fff7ed);
  padding: 16px 16px 14px;
  margin-bottom: 16px;
}
.maw-cta-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #0f172a;
}
.maw-cta-card p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #475569;
}
.maw-doctor-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}
.maw-doc-subtitle {
  font-size: 0.82rem;
  color: #64748b;
}
.maw-btn-call {
  background: #ffffff !important;
  color: var(--maw-primary-dark, #c2410c) !important;
  border-color: rgba(249,115,22,0.45) !important;
  white-space: nowrap;
}
.maw-btn-call:hover,
.maw-btn-call:focus {
  background: #fffbeb !important;
}
.maw-btn-book-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
  background: var(--maw-primary, #f97316) !important;
  color: #ffffff !important;
}
.maw-btn-book-online:hover,
.maw-btn-book-online:focus {
  background: var(--maw-primary-dark, #c2410c) !important;
}

/* Restart & disclaimer */
.maw-restart {
  margin-top: 8px;
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
.maw-restart:hover,
.maw-restart:focus {
  background: #cbd5e1 !important;
}
.maw-disclaimer {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

/* Small screens */
@media (max-width: 640px) {
  .maw-card {
    padding: 20px;
  }
  .maw-doctor-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
