/* ================================
   Survey specific styles
================================ */

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   Container for survey
================================ */
.container {
  max-width: 550px;
}

/* ================================
   Rating faces
================================ */
.faces {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 24px;
}

.faces button {
  flex: 1;
  background: #f1f3f6;
  border: none;
  border-radius: 12px;
  padding: 12px 0;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.faces button:hover {
  transform: translateY(-2px);
  background: #e9ecf1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.faces button.selected {
  background: #ce5d9f;
  box-shadow: 0 6px 14px rgba(206, 93, 159, 0.35);
  transform: scale(1.05);
}

/* ================================
   Email Box
================================ */
.email-box {
  margin: 1.5rem 0;
}

.email-box label {
  margin-bottom: 0.5rem;
}

/* ================================
   Comment Box
================================ */
.comment-box {
  margin-top: 1.2rem;
  width: 100%;
  text-align: left;
}

.comment-box label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-align: left;
  color: #737373;
}

.comment-box textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 16px;
}

/* ================================
   Send Button (Survey)
================================ */
#send-btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: #ce5d9f;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(206, 93, 159, 0.35);
  margin-top: 1.5rem;
  width: 100%;
}

#send-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(206, 93, 159, 0.45);
}

#send-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(206, 93, 159, 0.35);
}

#send-btn:disabled {
  background: linear-gradient(90deg, #e7a8cf, #d99bbf);
  opacity: 0.7;
}

/* ================================
   Modal de Feedback
================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-feedback {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideUp 0.3s ease;
}

.modal-feedback .message {
  font-size: 1rem;
  color: #374151;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}

.close-modal-btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 10px;
  background: #ce5d9f;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(206, 93, 159, 0.35);
}

.close-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(206, 93, 159, 0.45);
}

.close-modal-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(206, 93, 159, 0.35);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
  .container {
    max-width: 90%;
  }

  .faces {
    gap: 6px;
    margin: 18px 0 20px;
  }

  .faces button {
    padding: 10px 0;
    font-size: 22px;
  }

  .faces button.selected {
    transform: scale(1.03);
  }

  .modal-feedback {
    padding: 1.5rem;
    max-width: 95%;
  }

  .modal-feedback .message {
    font-size: 0.95rem;
  }

  .close-modal-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .faces {
    gap: 4px;
    margin: 16px 0 18px;
  }

  .faces button {
    padding: 8px 0;
    font-size: 20px;
  }

  .faces button:hover {
    transform: translateY(-1px);
  }

  .comment-box label {
    font-size: 0.85rem;
  }

  .comment-box textarea {
    font-size: 12px;
    padding: 8px;
  }

  #send-btn {
    font-size: 0.8rem;
    padding: 0.65rem 0.8rem;
    margin-top: 1rem;
  }

  .modal-feedback {
    padding: 1.25rem;
    max-width: 92%;
    border-radius: 12px;
  }

  .modal-feedback .message {
    font-size: 0.9rem;
    margin: 0 0 1.25rem 0;
  }

  .close-modal-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.8rem;
    width: 100%;
  }
}
