.formulario-section {
  width: 100%;
  background-color: #fff;
  overflow: hidden;
}

.formulario-container {
  display: flex;
  padding: 170px 122px 360px 122px;
}

.formulario-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.formulario-content {
  display: flex;
  width: 100%;
  padding: 60px;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border-radius: 10px;
  background: var(--White--Background-Background, #f7f7f7);

  /* Elevación 1 */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.1);
}

.formulario-wrapper {
  width: 100%;
}

.formulario-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  color: var(--Complementary-Colors-Black-40, #828282);

  /* Paragraphs/Small/Regular */
  font-family: Lato;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 128.571% */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 9px 16px;
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: var(--Brand-Colors-Blue-00, #1b365d);
  background: var(--White--Background-White, #fff);
  border: 1px solid var(--Complementary-Colors-Black-60, #c1c1c1);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #00aec7;
  box-shadow: 0 0 0 3px rgba(0, 171, 200, 0.1);
}

.form-group input::placeholder {
  color: var(--Complementary-Colors-Black-60, #c1c1c1);

  /* Paragraphs/Normal/Body-Regular */
  font-family: Lato;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hasta 1365px → dos columnas */
.form-group-prefix,
.form-group-phone {
  width: calc(50% - 10px);
}

/* Desde 1366px → una debajo de la otra */
@media (max-width: 1366px) {
  .form-group-prefix,
  .form-group-phone {
    width: 100%;
  }

  .formulario-content {
    padding: 30px;
  }
  
  .formulario-image img {
    width: 600px;
  }
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.btn-submit {
  border: none;
  transition: all 0.3s ease;

  display: flex;
  height: 42px;
  padding: 11px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border-radius: 30px;
  background: #00aec7;

  color: var(--White--Background-White, #fff);
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-family: Lato;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px; /* 88.889% */
}

.btn-submit:hover {
  background-color: #0095b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 171, 200, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit i.fa-circle-chevron-right {
  font-size: 16px;
  font-weight: 400;
}

.loading {
      display: none;
      text-align: center;
      margin-top: 20px;
}
  
.loading.active {
      display: block;
}

/* Mantiene el espacio reservado */
.message,
.loading {
  min-height: 48px;       /* mismo espacio para ambos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Lato;
  font-size: 16px;
  text-align: center;
  margin-top: 10px;
  border-radius: 8px;
  width: 100%;
}

/* Estilos de mensajes */
.message.success {
  background-color: #d4edda;
  color: #155724;
  margin-bottom: 1rem;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  margin-bottom: 1rem;
}

/* ---------------------- */
/*     LOADER ANIMADO     */
/* ---------------------- */

.loading {
  display: none;
  gap: 10px;
  color: #1b365d;
  font-weight: 500;
}

/* Spinner circular */
.loading::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #1b365d;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 768px) {
  .formulario-container {
    display: flex;
    padding: 80px 15px;
    flex-direction: column;
    box-sizing: border-box;
  }

  .formulario-image {
    margin: 0 -15px;
  }

  .formulario-content {
    padding: 32px;

    border-radius: 12px;
  }
}
