/* ====================================================== */
/* CSS COMPLETO PARA EL FORMULARIO v2.1          */
/* ====================================================== */

/* Estilos generales y fondo */
.cf7-multistep-modern .formbold-main-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
  background-color: #f4f7ff;
}

/* Efecto de tarjeta flotante */
.cf7-multistep-modern .formbold-form-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Títulos principales de sección */
.cf7-multistep-modern .formbold-heading {
  color: #1d2d3d;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e6f1;
}
.cf7-multistep-modern .formbold-heading:not(:first-of-type) {
  margin-top: 32px;
}

/* Estilo para los subtítulos (Origen/Destino) */
.cf7-multistep-modern .formbold-subheading {
    font-size: 16px;
    font-weight: 600;
    color: #3b4a5f;
    margin: 0 0 12px;
}

/* Contenedor flexible para 2 campos */
.cf7-multistep-modern .formbold-input-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
/* Ocupa todo el ancho dentro de un grid */
.cf7-multistep-modern .full-width {
    grid-column: 1 / -1;
}

/* Grid de 3 columnas para direcciones */
.cf7-multistep-modern .formbold-address-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Etiquetas de los campos */
.cf7-multistep-modern .formbold-form-label {
  color: #3b4a5f;
  font-weight: 500;
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}

/* Estilo de campos moderno */
.cf7-multistep-modern .formbold-form-input,
.cf7-multistep-modern select,
.cf7-multistep-modern textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #dde3ec;
  background: #f7f9fc;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  outline: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Estilo de foco ahora en NARANJA */
.cf7-multistep-modern .formbold-form-input:focus,
.cf7-multistep-modern select:focus,
.cf7-multistep-modern textarea:focus {
  border-color: #EA580C; /* Naranja principal */
  background: #fff;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12); /* Sombra naranja claro */
}

/* Botones */
.cf7-multistep-modern .formbold-form-btn-wrapper {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e0e6f1;
}
.cf7-multistep-modern .formbold-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 12px 24px;
  border: 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: #EA580C; /* Naranja principal */
  color: #fff;
  transition: all 0.2s ease;
}
.cf7-multistep-modern .formbold-btn:hover {
  background: #C2410C; /* Naranja más oscuro para hover */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
.cf7-multistep-modern .formbold-btn:disabled {
  background-color: #FDBA74; /* Naranja claro para deshabilitado */
  cursor: wait;
  transform: translateY(0);
}

/* Adaptación para móviles */
@media (max-width: 768px) {
  .cf7-multistep-modern .formbold-input-flex,
  .cf7-multistep-modern .formbold-address-group {
    grid-template-columns: 1fr; /* Todo en una sola columna */
  }
}

/* ====================================================== */
/* Estilos para el Dropzone y Previsualizaciones    */
/* ====================================================== */
.cf7-dropzone {
  border: 2px dashed #dde3ec;
  border-radius: 12px;
  padding: clamp(20px, 4vw, 32px);
  background: #f7f9fc;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center;
}
.cf7-dropzone:hover, .cf7-dropzone.is-dragover {
  border-color: #EA580C;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.cf7-dropzone__icon {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.cf7-dropzone__title {
  font-weight: 600;
  color: #333;
}
.cf7-dropzone__hint {
  font-size: 14px;
  color: #555;
  margin: 4px 0 0;
}
#preview-fotos, #preview-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.cf7bny-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.cf7bny-preview-item img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
}
.cf7bny-video-player {
  width: 240px;
  aspect-ratio: 16 / 9;
}
.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: #333;
}