/* NPS Pollo Andino - Estilos alineados al PDF */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Century Gothic', Arial, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  justify-content: center;
  padding: 0;
}

.email-wrapper {
  width: 100%;
  max-width: 520px;
  background-color: #fdf6ee;
  background-repeat: repeat;
  background-size: 320px auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nps-header {
  background-color: rgba(247, 147, 30, 0.90);
}

/* Header con franja amarilla inferior según PDF */
.nps-header-logo {
  background: transparent;
  padding: 30px 20px 20px;
  background-blend-mode: overlay;
  text-align: center;
  border-bottom: 6px solid #ffce07;
}

.nps-logo {
  width: 180px;
}

/* Sub-header naranja */
.nps-subheader {
  background: transparent;
  padding: 25px 30px;
  text-align: center;
}

.nps-subheader p {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.4;
}

.nps-form-body {
  padding: 40px 30px 20px;
  background-image: url('https://puntos.polloandino.co/nps/food-pattern.svg');
  background-color: rgba(253, 246, 238, 0.85);
}

.question-block {
  margin-bottom: 30px;
}

.question-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.question-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;

  background-color: #f7931e;
  color: #fff;

  border-radius: 50%;

  display: inline-flex; /* evita expansión */
  align-items: center;
  justify-content: center;

  font-weight: 700;
  line-height: 1;        /* evita deformación vertical */
  padding: 0;            /* elimina ovalado por padding */
  box-sizing: border-box;
}

.question-text {
  font-size: .95rem;
  font-weight: 700;
  color: #333;
}

.req { color: #c0392b; }

input[type="text"], select, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: .95rem;
  outline: none;
}

/* Escala de colores NPS igual al PDF */
.nps-scale {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.nps-scale input { display: none; }

.nps-scale label {
  flex: 1;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}

/* Gradientes de la escala */
label[for="nps-0"], label[for="nps-1"], label[for="nps-2"] { background-color: #d13e27; }
label[for="nps-3"], label[for="nps-4"], label[for="nps-5"] { background-color: #e85a3c; }
label[for="nps-6"] { background-color: #f07d38; }
label[for="nps-7"], label[for="nps-8"] { background-color: #f6d11f; }
label[for="nps-9"], label[for="nps-10"] { background-color: #439d56; }

.nps-scale input:checked + label {
  outline: 3px solid #333;
  transform: scale(1.05);
}

.nps-hints {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #888;
  margin-top: 8px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background-color: #f7931e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.nps-footer {
  background-color: #8b0000; /* Rojo oscuro según PDF */
  padding: 15px;
  text-align: center;
}

.nps-footer p { color: #fff; font-size: .85rem; }

.field-error { color: #ff6b6b; font-size: 0.8rem; display: none; margin-top: 5px; }
.field-error.visible { display: block; }

/* Mensaje resultado envío */
.nps-mensaje {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn .3s ease;
}
.nps-mensaje.exito {
  background-color: #2d6a3f;
  border: 1px solid #439d56;
  color: #eaffed;
}
.nps-mensaje.error {
  background-color: #7a1a0f;
  border: 1px solid #d13e27;
  color: #ffe8e5;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

