/* PPRI Thematic Consultation Survey Hub */

.survey-hub-header {
  margin-bottom: 24px;
}

.survey-topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  margin-bottom: 24px;
}

.survey-topic-btn {
  flex: 1 1 200px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.survey-topic-btn:hover {
  background: #e2e8f0;
  color: #073c3a;
}

.survey-topic-btn.active {
  background: #073c3a;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(7, 60, 58, 0.25);
}

.survey-topic-pane {
  display: none;
}

.survey-topic-pane.active {
  display: block;
}

/* Card & Question Layout */
.survey-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.survey-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.survey-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(7, 60, 58, 0.08);
  color: #073c3a;
}

.survey-question {
  margin-bottom: 28px;
}

.survey-question h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #073c3a;
  line-height: 1.45;
}

.survey-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: -6px;
  margin-bottom: 12px;
}

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

.survey-option-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 0.92rem;
  color: #1e293b;
}

.survey-option-label:hover {
  background: #f8fafc;
  border-color: #12645d;
}

.survey-option-label input[type="radio"],
.survey-option-label input[type="checkbox"] {
  accent-color: #073c3a;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.survey-option-label input:checked + span {
  font-weight: 600;
  color: #073c3a;
}

/* Interactive Scale Buttons */
.survey-scale {
  display: flex;
  gap: 8px;
  margin: 12px 0 6px;
}

.scale-btn {
  flex: 1;
  text-align: center;
  padding: 12px 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #334155;
  transition: all 0.15s ease;
}

.scale-btn:hover {
  background: #e6f4f2;
  border-color: #073c3a;
}

.scale-btn.is-selected {
  background: #073c3a;
  color: #ffffff;
  border-color: #073c3a;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 4px;
}

/* Submission Hub Card */
.survey-submission-modal {
  display: none;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 28px;
  margin-top: 28px;
  animation: fadeIn 0.3s ease;
}

.survey-submission-modal.active {
  display: block;
}

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

.survey-btn-gmail {
  background: #ea4335;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.survey-btn-gmail:hover {
  background: #d93025;
  color: #ffffff;
}

.survey-btn-email {
  background: #073c3a;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
  text-decoration: none;
}

.survey-btn-email:hover {
  background: #12645d;
  color: #ffffff;
}

.survey-btn-copy {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-btn-copy:hover {
  background: #f1f5f9;
}

@media (max-width: 640px) {
  .survey-submission-modal {
    padding: 18px 14px;
    margin-top: 20px;
  }
  .survey-btn-gmail,
  .survey-btn-email,
  .survey-btn-copy {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 12px 14px;
  }
}
