/* ============================================================
   HBM Seguros — Formulario de Contacto Premium
   Archivo: css/style-form.css
   ============================================================ */

/* ─── Contenedor externo ─── */
.contactform .form-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 15px 60px;
}

/* ─── Card del formulario (glassmorphism) ─── */
.formcontact {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  animation: formFadeIn 0.6s ease both;
}

/* ─── Grid: respetar el sistema de Bootstrap sin conflicto ─── */
.formcontact .row.form-inputs {
  margin-left: -10px;
  margin-right: -10px;
}

.formcontact .row.form-inputs > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

/* ─── Grupos de campo ─── */
.formcontact .form-group {
  margin-bottom: 20px;
}

/* ─── Labels ─── */
.formcontact label {
  display: block;
  color: rgba(0, 0, 0, 0.75);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  margin-left: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ─── Inputs y select ─── */
.formcontact .form-control {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 400;
  color: #333 !important;
  background-color: #f8f8f8 !important;
  background-image: none;
  border: 1.5px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

/* ─── Placeholder ─── */
.formcontact .form-control::placeholder {
  color: #aaa;
}

/* ─── Focus ─── */
.formcontact .form-control:focus {
  background-color: #fff !important;
  border-color: #ffb400 !important;
  box-shadow:
    0 0 0 3px rgba(255, 180, 0, 0.15),
    0 0 8px rgba(255, 180, 0, 0.2) !important;
  outline: none;
  color: #333 !important;
}

/* ─── Textarea ─── */
.formcontact textarea.form-control {
  height: auto !important;
  border-radius: 6px !important;
  padding: 14px 18px;
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

/* ─── Botón de envío ─── */
.formcontact .submit-form {
  margin-top: 10px;
  margin-bottom: 0;
}

.formcontact .custom-button {
  background-color: #ffb400 !important;
  color: #111 !important;
  border: 2px solid #ffb400 !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 44px;
  border-radius: 30px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* box-shadow: 0 6px 20px rgba(255, 180, 0, 0.35); */
  cursor: pointer;
  display: inline-block;
  width: auto;
  margin-top: 0;
}

.formcontact .custom-button:before {
  display: none; /* ocultar ícono de flecha del .custom-button global */
}

.formcontact .custom-button:hover {
  box-shadow: 0 8px 28px rgba(255, 180, 0, 0.5);
  text-decoration: none !important;
}

.formcontact .custom-button:before {
  font-size: 18px;
  content: "\f0e0";
  display: block;
  color: black;
  right: 22px;
  top: 45%;
}

/* ─── Mensaje de feedback (éxito / error) ─── */
.formcontact .output_message_holder {
  margin-top: 16px;
}

.formcontact .output_message {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.formcontact .output_message.success {
  background: linear-gradient(135deg, #28a745, #20c55a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.4);
}

.formcontact .output_message.success::before {
  font-family: FontAwesome;
  content: "\f14a";
  padding-right: 8px;
}

.formcontact .output_message.error {
  background: linear-gradient(135deg, #dc3545, #ff4d5e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 53, 69, 0.4);
}

.formcontact .output_message.error::before {
  font-family: FontAwesome;
  content: "\f071";
  padding-right: 8px;
}

/* ─── Animación de entrada ─── */
@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive: móvil ─── */
@media (max-width: 767px) {
  .formcontact {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .formcontact .row.form-inputs {
    margin-left: 0;
    margin-right: 0;
  }

  .formcontact .row.form-inputs > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  .formcontact .form-control {
    height: 44px;
    font-size: 14px;
  }

  .formcontact .custom-button {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ─── Contenedor de respuesta (reemplaza el formulario) ─── */
.form-response {
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: responseFadeIn 0.5s ease both;
}

.form-response .response-content {
  max-width: 500px;
  margin: 0 auto;
}

.form-response .response-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.form-response .response-icon.success {
  color: #28a745;
}

.form-response .response-icon.error {
  color: #dc3545;
}

.form-response h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #333;
}

.form-response p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-response .custom-button {
  background-color: #ffb400 !important;
  color: #111 !important;
  border: 2px solid #ffb400 !important;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 44px;
  border-radius: 30px !important;
  cursor: pointer;
}

.form-response .custom-button:hover {
  box-shadow: 0 8px 28px rgba(255, 180, 0, 0.5);
}

@keyframes responseFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─── Estilos específicos para el formulario cargado en Iframe ─── */
.contact-iframe-body {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.contact-iframe-body .contactform .form-container {
  padding: 10px 5px !important;
}

