/* Contenedor Principal */

.form-container {
  background-color: var(--e-global-color-primary);
  display: flex;
  justify-content: center;
}

.pqrs-container {
  padding: 30px;
  font-family: Arial, sans-serif;
  color: #444;
  width: 72%;
}

.pqrs-container h2 {
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: white;
}

.pqrs-container .section-title {
  margin-top: 30px;
}

/* Filas y Columnas */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.full {
  width: 100%;
}
.half {
  width: calc(50% - 10px);
}
.third {
  width: calc(33.33% - 13.4px);
}

/* Etiquetas */
.pqrs-container label {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Inputs y Textarea */
.pqrs-container input[type="text"],
.pqrs-container input[type="email"],
.pqrs-container input[type="tel"],
.pqrs-container select,
.pqrs-container textarea {
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 10px;
  background-color: #fff;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.pqrs-container textarea {
  height: 120px;
  resize: vertical;
}

/* Footer y Aceptación */
.footer-row {
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
}

.acceptance-link a {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.pqrs-container .wpcf7-list-item {
  margin-left: 0;
}

.required-asterisk {
  color: red;
}

/* Send button */
.submit-container {
  text-align: center;
  margin-top: 20px;
}

#btn-submit {
  background-color: #041928;
  color: #ffffff;
  padding: 10px 30px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 1200px) {
  .pqrs-container {
    width: 75%;
  }
}

@media (max-width: 768px) {
  .half,
  .third {
    width: 100%;
  }

  .pqrs-container {
    width: 100%;
  }
}

/* Modal */

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 500px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modal-header {
  background-color: #28a745;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.close-modal {
  cursor: pointer;
  font-size: 24px;
}

.modal-body {
  padding: 25px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 15px;
}

.modal-body p {
  margin-bottom: 15px;
}

.modal-body a {
  color: #00a0e3;
  text-decoration: none;
}

.modal-footer {
  padding: 15px;
  text-align: center;
  border-top: 1px solid #eee;
}

#btn-accept-modal {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 40px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s;
}

#btn-accept-modal:hover {
  background-color: #0056b3;
}

.wpcf7-not-valid-tip {
  display: none !important;
}

.modal-overlay.active {
  display: flex;
}

/* Modal error */

.modal-error-header {
  background-color: #dc3545 !important;
}

#btn-retry-modal {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 40px;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

#btn-retry-modal:hover {
  background-color: #5a6268;
}

/* Input error message */
.custom-error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  font-weight: bold;
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Error message  */
.pqrs-container .form-group input.invalid,
.pqrs-container .form-group textarea.invalid,
.pqrs-container .form-group select.invalid {
  border: 1px solid #dc3545 !important;
}

