/* Intake Questionnaire Modal Styles */

.questionnaire-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 24, 16, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.questionnaire-overlay[hidden] {
  display: none;
}

.questionnaire-modal {
  background: var(--card, #FFF8DC);
  border: 1px solid var(--border, #e4d5c4);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
}

.questionnaire-header {
  margin-bottom: 24px;
}

.questionnaire-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.questionnaire-subtitle {
  color: var(--muted, #6b7280);
  font-size: 0.9375rem;
  margin: 0;
}

.questionnaire-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.question-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-label {
  font-weight: 600;
  color: var(--text);
  font-size: 1rem;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--bg);
  min-height: 48px;
}

.question-option:hover {
  border-color: var(--accent);
  background: var(--card);
}

.question-option input[type="radio"] {
  margin-right: 12px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent);
}

.question-option input[type="radio"]:checked + .option-text {
  font-weight: 600;
}

.question-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(210, 105, 30, 0.05);
}

.option-text {
  flex: 1;
  cursor: pointer;
}

/* City input field */
.city-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s ease;
}

.city-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.questionnaire-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.questionnaire-btn {
  flex: 1;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  min-height: 48px;
  min-width: 120px;
}

.questionnaire-btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 2px solid var(--accent);
}

.questionnaire-btn-primary:hover {
  background: var(--accent-hover, #bf5d1a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.questionnaire-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.questionnaire-btn-secondary {
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
}

.questionnaire-btn-secondary:hover {
  background: var(--bg);
  border-color: var(--accent);
}

/* Skip link */
.questionnaire-skip {
  text-align: center;
  margin-top: 16px;
}

.questionnaire-skip button {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 8px;
}

.questionnaire-skip button:hover {
  color: var(--accent);
}

/* Refine filters button (shown after skipping) */
.refine-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 16px;
}

.refine-filters-btn:hover {
  background: var(--bg);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.refine-filters-btn::before {
  content: "⚙️";
}

@media (max-width: 640px) {
  .questionnaire-modal {
    padding: 24px;
  }
  
  .questionnaire-actions {
    flex-direction: column;
  }
  
  .questionnaire-btn {
    width: 100%;
  }
}
