/* ── Overlay ── */
#popup-consultoria {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 10, 15, 0.75);
}
#popup-consultoria.active {
  display: flex;
  animation: pc-fade 0.2s ease;
}
@keyframes pc-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#pc-overlay {
  position: absolute;
  inset: 0;
}

/* ── Card ── */
.pc-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  animation: pc-up 0.3s ease;
  scrollbar-width: thin;
}
@keyframes pc-up {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Accent + progress ── */
.pc-accent {
  height: 5px;
  background: linear-gradient(90deg, #6B2737 0%, #D4E96B 100%);
  border-radius: 14px 14px 0 0;
}
.pc-progress {
  height: 3px;
  background: #f0f0f0;
  overflow: hidden;
}
.pc-progress-fill {
  height: 100%;
  background: #6B2737;
  transition: width 0.4s ease;
  width: 50%;
}

/* ── Header ── */
.pc-header {
  padding: 1.1rem 1.4rem 0.9rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.pc-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a0a0f;
  margin: 0;
}
.pc-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  padding: 0 0 0 0.75rem;
  transition: color 0.15s;
}
.pc-close:hover { color: #111; }

/* ── Body ── */
.pc-body {
  padding: 1.4rem 1.4rem 1.6rem;
}
.pc-step-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B2737;
  margin-bottom: 1.2rem;
}
.pc-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.6rem;
}

/* ── Options (radio as cards) ── */
.pc-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.pc-options-3 {
  grid-template-columns: repeat(3, 1fr);
}
.pc-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pc-option label {
  display: block;
  padding: 0.55rem 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  color: #4b5563;
  background: #fff;
  user-select: none;
  line-height: 1.3;
}
.pc-option label:hover {
  border-color: #6B2737;
  color: #6B2737;
}
.pc-option input[type="radio"]:checked + label {
  border-color: #6B2737;
  background: #6B2737;
  color: #fff;
  font-weight: 600;
}

/* ── Error ── */
.pc-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-bottom: 0.75rem;
  display: none;
}

/* ── Next / Submit button ── */
.pc-btn {
  width: 100%;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  background: #6B2737;
  color: #fff;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}
.pc-btn:hover  { background: #5a1e2d; }
.pc-btn:active { transform: scale(0.98); }

/* ── Form fields (step 2) ── */
.pc-field {
  margin-bottom: 1rem;
}
.pc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.3rem;
}
.pc-field input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  font-family: inherit;
}
.pc-field input:focus { border-color: #6B2737; }

/* ── Success ── */
.pc-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.pc-success .pc-check {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.pc-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a0a0f;
  margin: 0 0 0.75rem;
}
.pc-success p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .pc-options-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .pc-option label {
    font-size: 0.72rem;
    padding: 0.45rem 0.3rem;
  }
}
