/* complaints_book.css - actualizado para checkbox alineado con texto largo */

.complaints_book-section {
  padding: 3rem 1rem;
  background-color: #f8f8f8;
  font-family: 'Roboto', sans-serif;
  color: #333;
}

.complaints_book-section .container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.complaints_book-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #222;
}

.form-section {
  margin-bottom: 2.5rem;
}

.form-section h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #555;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

/* Aplica width 100% sólo a inputs de texto, email, date, tel, select y textarea */
form input[type="text"],
form input[type="email"],
form input[type="date"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #fdfdfd;
}

form textarea {
  resize: vertical;
}

/* Ajuste para checkbox con texto largo */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.checkbox-group label {
  display: inline;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

.checkbox-group a {
  color: #b71c1c;
  text-decoration: underline;
}

.info-box {
  background-color: #f1f1f1;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.info-box .highlight {
  font-weight: bold;
  color: #000;
}

.info-box ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.submit-btn {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn button {
  background-color: #b71c1c;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.submit-btn button:hover {
  background-color: #e02525;
}


/* -----------------------------------------------------------*/

/* overlay: cubre toda la pantalla, fondo semi-oscuro */
#notif-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;               /* oculto hasta que haya notificación */
  align-items: center;         /* centra vertical */
  justify-content: center;     /* centra horizontal */
  z-index: 10000;
}

/* cada notificación como tarjeta */
#notif-container .notification {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: 8px;
  max-width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  font-family: sans-serif;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* una vez añadida la clase “show”, aparece la tarjeta */
#notif-container .notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* icono dentro */
#notif-container .notification img {
  width: 32px;
  height: 32px;
  margin-right: 0.8rem;
}

/* variantes de borde */
.notification--success { border-left: 6px solid #28a745; }
.notification--error   { border-left: 6px solid #dc3545; }
.notification--warning { border-left: 6px solid #ffc107; }

/* primero dejamos el ícono totalmente negro, luego le ponemos un “drop-shadow” del color deseado */
.notification--success img {
  filter: brightness(0) saturate(100%) drop-shadow(0 0 0 #28a745);
}
.notification--error img {
  filter: brightness(0) saturate(100%) drop-shadow(0 0 0 #dc3545);
}
.notification--warning img {
  filter: brightness(0) saturate(100%) drop-shadow(0 0 0 #ffc107);
}


/* clic en el overlay (fuera de la tarjeta) cierra */
#notif-container.closeable {
  cursor: pointer;
}
#notif-container.closeable .notification {
  cursor: default;
}

