/* ==========================================================================
   FORMULARIO PREMIUM USANDO IMAGEN DE FONDO REAL (ARDABYTEC)
   ========================================================================== */
.form-section-container {
  width: 100%;
  background-color: #f8fafc;
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px;
  box-sizing: border-box;
}

.form-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  background-image: url('../assets/imagenes-complementarias/fondo formulario.png');
  background-size: 100% 100%; 
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  display: flex;
  overflow: hidden;
}

/* --- BARRA LATERAL (TRANSPARENTE EN DESKTOP) --- */
.form-sidebar {
  width: 32.5%;
  background: transparent;
  position: relative;
  padding: 55px 35px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.sidebar-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
}

.sidebar-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e70ff;
  line-height: 1;
  margin: 5px 0 15px 0;
}

.title-underline {
  width: 60px;
  height: 4px;
  background-color: #1e70ff;
  margin-bottom: 25px;
}

.sidebar-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 40px;
}

/* --- ESTILIZACIÓN DE ICONOS LATERALES IZQUIERDOS --- */
.info-bullets {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex-grow: 1;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  max-width: 245px;
}

.bullet-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: #1e70ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(30, 112, 255, 0.3);
}

/* Asegura que el icono renderizado sea visible, blanco y centrado */
.bullet-icon i {
  color: #ffffff !important;
  font-size: 1.25rem !important;
  display: inline-block;
}

.bullet-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.bullet-text p {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #cbd5e1;
  margin: 0;
}

/* Footer de la barra lateral */
.sidebar-footer {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.sidebar-footer-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}

/* --- SECCIÓN DERECHA DEL FORMULARIO --- */
.form-main-content {
  width: 67.5%;
  padding: 55px 60px 45px 70px; 
  box-sizing: border-box;
  background: transparent; 
}

/* Encabezado del Formulario e Icono Principal */
.form-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.form-header-icon {
  width: 65px;
  height: 65px;
  min-width: 65px;
  border: 2px solid #1e70ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.form-header-icon i {
  font-size: 1.8rem !important;
  color: #1e70ff !important;
}

.form-main-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.form-main-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 5px 0 0 0;
}

.header-blue-line {
  width: 45px;
  height: 3px;
  background-color: #1e70ff;
  margin-top: 10px;
}

/* Estilos de los inputs */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  margin-bottom: 25px;
}

.input-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.required {
  color: #ef4444;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Iconos internos de los inputs */
.field-icon {
  position: absolute;
  left: 18px;
  color: #94a3b8 !important;
  font-size: 1.05rem !important;
  pointer-events: none;
}

.textarea-icon {
  top: 18px;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 18px 14px 48px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: #334155;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}

.input-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: #1e70ff;
  box-shadow: 0 0 0 4px rgba(30, 112, 255, 0.1);
}

.input-tip {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 5px;
}

.form-status-message {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
}

.form-status-message.success {
  color: #16a34a;
}

.form-status-message.error {
  color: #dc2626;
}

/* Modal de confirmación / error del formulario */
.form-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 14, 28, 0.62);
  backdrop-filter: blur(4px);
  padding: 20px;
  animation: formModalFadeIn 0.2s ease-out;
}

.form-modal-overlay[hidden] {
  display: none;
}

@keyframes formModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes formModalPopIn {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes formModalCircle {
  from { stroke-dashoffset: 151; }
  to { stroke-dashoffset: 0; }
}

@keyframes formModalCheck {
  from { stroke-dashoffset: 36; }
  to { stroke-dashoffset: 0; }
}

@keyframes formModalShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.form-modal {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  animation: formModalPopIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-modal-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-modal-icon-check {
  width: 64px;
  height: 64px;
  display: none;
}

.form-modal-icon-check-circle {
  stroke: #16a34a;
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: formModalCircle 0.5s ease-out 0.05s forwards;
}

.form-modal-icon-check-mark {
  stroke: #16a34a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: formModalCheck 0.35s ease-out 0.45s forwards;
}

.form-modal-icon-error {
  display: none;
  font-size: 26px;
  color: #dc2626;
}

.form-modal-overlay.success .form-modal-icon {
  background: #f0fdf4;
}

.form-modal-overlay.success .form-modal-icon-check {
  display: block;
}

.form-modal-overlay.error .form-modal-icon {
  background: #fef2f2;
  animation: formModalShake 0.4s ease-in-out;
}

.form-modal-overlay.error .form-modal-icon-error {
  display: block;
}

.form-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.form-modal-message {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 20px;
}

.form-modal-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-modal-steps[hidden] {
  display: none;
}

.form-modal-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
}

.form-modal-steps i {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e0ecff;
  color: #1e70ff;
  font-size: 0.75rem;
}

.form-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-modal-close {
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #ffffff;
  background: #1e70ff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.form-modal-close:hover {
  background: #1557cc;
  transform: translateY(-1px);
}

.form-modal-overlay.error .form-modal-close {
  background: #dc2626;
}

.form-modal-overlay.error .form-modal-close:hover {
  background: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
  .form-modal-overlay,
  .form-modal,
  .form-modal-icon-check-circle,
  .form-modal-icon-check-mark,
  .form-modal-icon.form-modal-overlay.error .form-modal-icon {
    animation: none !important;
  }
}

/* Footer del Formulario */
.form-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 35px;
  border-top: 1px solid #f1f5f9;
  padding-top: 25px;
}

.privacy-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
}

.privacy-notice i {
  font-size: 1.3rem !important;
  color: #475569 !important;
}

.privacy-notice p {
  font-size: 0.78rem;
  margin: 0;
  line-height: 1.4;
}

.privacy-notice a {
  color: #1e70ff;
  text-decoration: none;
  font-weight: 500;
}

.privacy-notice a:hover {
  text-decoration: underline;
}

.btn-submit {
  background-color: #1e70ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(30, 112, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #0f5ee6;
  box-shadow: 0 6px 20px rgba(30, 112, 255, 0.4);
  transform: translateY(-2px);
}

.btn-back {
  background-color: transparent;
  color: #1e70ff; 
  border: 1.5px solid #1e70ff;
  border-radius: 8px;
  padding: 14px 28px; 
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;  
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;          
  text-decoration: none;
  flex-shrink: 0;
  margin-left: auto;  
  transform: translateX(40px); /* <--- Agrega esta línea (aumenta o disminuye los 80px según lo necesites) */
}


/* --- BARRA INFERIOR DE DECORACIÓN --- */
.bottom-decorative-bar {
  max-width: 1250px;
  margin: 10px auto 0 auto;
  display: flex;
  justify-content: flex-end; 
  padding-right: 15px;
}

.decorative-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1e70ff;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .form-wrapper {
    flex-direction: column;
    background-image: none; 
    background-color: #ffffff;
  }
  
  .form-sidebar {
    width: 100%;
    background: linear-gradient(145deg, #020b1e, #0a192f);
    padding: 40px 30px;
  }
  
  .form-main-content {
    width: 100%;
    padding: 40px 30px;
  }

  .bottom-decorative-bar {
    justify-content: center;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .form-footer-actions {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .btn-submit {
    width: 100%;
    justify-content: center;
  }
}