/* css/comfort-finder.css */

/* Layout */
.cc-comfort-finder-page {
  padding: 40px 16px;
}

.cc-comfort-finder-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 24px 20px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Titles */
.cc-quiz-title {
  font-size: 1.9rem;
  margin-bottom: 8px;
  text-align: center;
}

.cc-quiz-intro {
  text-align: center;
  margin-bottom: 24px;
  color: #555;
}

/* Progress */
.cc-quiz-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.cc-quiz-step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #777;
}

.cc-quiz-step-indicator-active {
  border-color: #0073aa;
  background: #0073aa;
  color: #fff;
}

/* Question & options */
.cc-quiz-question {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.cc-quiz-options {
  display: grid;
  gap: 10px;
}

.cc-quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cc-quiz-option input {
  margin: 0;
}

.cc-quiz-option span {
  font-size: 0.98rem;
}

.cc-quiz-option:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.cc-quiz-option input:checked + span,
.cc-quiz-option input:focus + span {
  font-weight: 600;
}

/* Error box */
.cc-quiz-error {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fcebea;
  color: #b71c1c;
  font-size: 0.9rem;
}

/* Buttons */
.cc-quiz-nav {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.cc-btn-primary {
  background: #0073aa;
  color: #fff;
}

.cc-btn-primary:hover {
  background: #005f8a;
}

.cc-btn-secondary {
  background: #f1f1f1;
  color: #333;
}

.cc-btn-secondary[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Result section */
.cc-quiz-result {
  margin-top: 32px;
}

.cc-quiz-result-title {
  text-align: center;
  margin-bottom: 20px;
}

.cc-quiz-result-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.cc-quiz-result-text {
  flex: 1 1 220px;
}

.cc-quiz-result-image {
  flex: 1 1 220px;
  text-align: center;
}

.cc-quiz-result-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Modal */
.cc-quiz-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cc-quiz-modal-open {
  display: flex;
}

.cc-quiz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.cc-quiz-modal-content {
  position: relative;
  background: #ffffff;
  padding: 20px 20px 24px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  z-index: 2;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.cc-quiz-modal-content h2 {
  margin-bottom: 8px;
}

.cc-quiz-modal-content p {
  margin-bottom: 16px;
}

.cc-quiz-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.cc-quiz-modal-start {
  margin-top: 8px;
}

body.cc-quiz-modal-open-body {
  overflow: hidden;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .cc-comfort-finder-container {
    padding: 20px 16px 24px;
  }

  .cc-quiz-result-content {
    flex-direction: column;
  }
}