/* ==========================================================
   SECCIÓN 2: FORMULARIO DE CONTACTO (ESTILO BOLSA DE TRABAJO)
   Archivo independiente: formulario_contacto.css
   ========================================================== */

.contacto-form-section {
  position: relative;
  padding: 150px 24px 180px 24px;
  background-color: #000000 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  overflow: hidden;
  width: 100%;
}

.contacto-form-section::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 255, 5, 0.15) 0%, transparent 70%);
  top: 45%;
  left: 20%;
  transform: translate(-50%, -50%);
  filter: blur(90px);
  opacity: 0.8;
  z-index: 0;
  pointer-events: none;
}

.contacto-form-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Columna Izquierda: Información y Título Conectado */
.contacto-info-col {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  margin-top: -70px;
  max-width: 100%;
}

.contacto-tag-pill {
  align-self: flex-start;
  display: inline-block;
  background: linear-gradient(90deg, #90e705, #8bf105);
  color: #000000 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 30px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: -14px;
  margin-bottom: 22px;
  box-shadow: none !important;
}

.contacto-main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3.3rem, 5.6vw, 4.1rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -1.2px;
  color: #ffffff !important;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.contacto-main-title .title-line-1 {
  color: #ffffff !important;
  display: block;
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 0.98;
}

.contacto-main-title .title-line-2 {
  color: #ffffff !important;
  display: block;
  font-size: 1.35em;
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 0.98;
  margin-top: -4px;
}

.highlight-neon {
  color: #86ff05 !important;
  background: linear-gradient(90deg, #86ff05 0%, #a2ff00 50%, #ffee00 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block;
}

.contacto-description {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.05rem, 1.25vw, 1.25rem);
  line-height: 1.8;
  color: #ececec !important;
  max-width: 620px;
  margin: 0;
}

/* Columna Derecha: Tarjeta del Formulario */
.contacto-card-col {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contacto-card {
  width: 100% !important;
  max-width: 620px !important;
  background: #111111 !important;
  border: 2px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 32px !important;
  padding: 44px 40px 38px 40px !important;
  position: relative;
  overflow: visible !important;
  box-shadow: none !important;
  transition: all 0.35s ease;
}

.contacto-card:hover {
  background: #151515 !important;
}

/* Header de Pasos */
.step-pane {
  display: none;
  animation: fadeInStep 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.step-pane.active {
  display: block;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-pane-header {
  text-align: center;
  margin-bottom: 24px;
}

.step-pill {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #86ff05;
  margin-bottom: 8px;
}

.step-pane-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  letter-spacing: -0.8px;
}

.step-pane-header p {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  color: #cbd5e1 !important;
  margin: 0 auto;
  max-width: 440px;
  line-height: 1.55;
}

/* Campos de Formulario */
#contactForm .form-group {
  margin-bottom: 18px;
  position: relative;
  background: transparent;
}

#contactForm label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #ffffff !important;
}

#contactForm label i,
#contactForm .label-icon {
  color: #86ff05 !important;
  margin-right: 7px;
  font-size: 13.5px;
}

#contactForm .form-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

#contactForm .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

#contactForm input[type="text"],
#contactForm input[type="tel"],
#contactForm input[type="email"],
#contactForm textarea {
  width: 100%;
  padding: 13px 18px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  color: #0f172a !important;
  background-color: #f1f5f9;
  transition: all 0.25s ease;
  outline: none;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}

#contactForm input:focus,
#contactForm textarea:focus {
  background-color: #ffffff;
  border-color: #86ff05;
  box-shadow: 0 0 0 3.5px rgba(134, 255, 5, 0.35);
}

#contactForm textarea {
  resize: vertical;
  min-height: 85px;
  line-height: 1.5;
}

/* Custom Dropdown de Servicios */
.custom-select-wrapper {
  position: relative !important;
  user-select: none;
  z-index: 50;
}

.custom-select-wrapper.open {
  z-index: 99999;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background-color: #f1f5f9;
  border: 1.5px solid transparent;
  border-radius: 12px;
  color: #0f172a;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  background-color: #ffffff;
  border-color: #86ff05;
  box-shadow: 0 0 0 3.5px rgba(134, 255, 5, 0.35);
}

.trigger-icon {
  color: #000000;
  background-color: #86ff05;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-right: 14px;
  box-shadow: 0 0 10px rgba(134, 255, 5, 0.35);
}

.trigger-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.trigger-arrow {
  font-size: 14px;
  color: #475569;
  transition: transform 0.25s ease;
}

.custom-select-wrapper.open .trigger-arrow {
  transform: rotate(180deg);
  color: #86ff05;
}

.custom-options-dropdown {
  position: absolute;
  bottom: calc(100% + 8px) !important;
  top: auto !important;
  left: 0;
  right: 0;
  background-color: #0a0a0a !important;
  border: 1.5px solid #1c1c1c !important;
  border-radius: 18px !important;
  box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.98) !important;
  z-index: 99999 !important;
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
  pointer-events: none;
}

.custom-select-wrapper.open .custom-options-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

.custom-options-dropdown::-webkit-scrollbar {
  width: 5px;
}

.custom-options-dropdown::-webkit-scrollbar-track {
  background: #1d1d1d;
  border-radius: 8px;
}

.custom-options-dropdown::-webkit-scrollbar-thumb {
  background: #86ff05;
  border-radius: 8px;
}

.opt-group-header {
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #161719;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt-group-header i {
  color: #86ff05;
  font-size: 13px;
}

.custom-option {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #141414;
  background-color: #0a0a0a;
}

.custom-option:hover {
  background-color: #121612;
}

.custom-option.selected {
  background-color: #121612;
  border-left: 3.5px solid #86ff05;
}

.opt-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #141618;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #86ff05;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid rgba(134, 255, 5, 0.4);
}

.opt-text-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt-text-info strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 800;
}

.opt-text-info span {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
}

.badge-opt {
  font-size: 9px;
  background-color: #86ff05 !important;
  color: #000000 !important;
  font-weight: 900 !important;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.opt-header-support {
  background-color: #141a10 !important;
  color: #86ff05 !important;
  border-top: 1px solid rgba(134, 255, 5, 0.25) !important;
  border-bottom: 1px solid rgba(134, 255, 5, 0.25) !important;
}

.opt-icon-support {
  background-color: rgba(134, 255, 5, 0.15) !important;
  color: #86ff05 !important;
  border: 1px solid rgba(134, 255, 5, 0.6) !important;
}

.badge-support {
  background-color: #ffee00 !important;
  color: #000000 !important;
}

/* Checkbox de Términos */
.form-privacy-block {
  margin-top: 14px;
  margin-bottom: 8px;
}

.contacto-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.contacto-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.contacto-checkmark {
  height: 20px;
  width: 20px;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.contacto-checkbox-container:hover input~.contacto-checkmark {
  border-color: #86ff05;
}

.contacto-checkbox-container input:checked~.contacto-checkmark {
  background-color: #86ff05;
  border-color: #86ff05;
}

.contacto-checkbox-container .contacto-checkmark::after {
  content: "\f00c";
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 900;
  color: #000000;
  font-size: 0.75rem;
  display: none;
}

.contacto-checkbox-container input:checked~.contacto-checkmark::after {
  display: block;
}

.contacto-checkbox-container .privacy-text {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.4;
}

.contacto-checkbox-container .privacy-link {
  color: #86ff05;
  text-decoration: underline;
}

/* Botones de Navegación de Pasos */
.step-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.step-nav-actions.single-action {
  justify-content: stretch;
}

.btn-step-next,
.btn-step-submit {
  flex: 1;
  background: linear-gradient(90deg, #86ff05 0%, #a2ff00 50%, #ffee00 100%);
  color: #000000 !important;
  border: none;
  padding: 15px 20px;
  font-size: 13.5px;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.5px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 25px rgba(134, 255, 5, 0.4), 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-step-next span,
.btn-step-next i,
.btn-step-submit span,
.btn-step-submit i {
  color: #000000 !important;
}

.btn-step-next:hover,
.btn-step-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(134, 255, 5, 0.75), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-step-prev {
  background-color: #ffffff;
  color: #000000 !important;
  border: none;
  padding: 15px 20px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-step-prev i {
  color: #000000 !important;
  font-size: 13px;
}

.btn-step-prev:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.error-field {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.3) !important;
}

/* Mensaje de Éxito */
.contacto-success-msg {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.contacto-success-icon {
  font-size: 65px;
  color: #86ff05;
  margin-bottom: 20px;
}

.contacto-success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.contacto-success-text {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 25px;
}

.contacto-success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #86ff05;
  color: #000000 !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.contacto-success-btn:hover {
  background: #9eff1a;
  transform: translateY(-2px);
}

/* Responsividad Formulario */
@media (max-width: 992px) {
  .contacto-form-section {
    padding: 100px 20px 120px 20px;
  }

  .contacto-form-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contacto-info-col {
    margin-top: 0;
    text-align: center;
    align-items: center;
  }

  .contacto-tag-pill {
    align-self: center;
  }

  .contacto-card {
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .contacto-form-section {
    padding: 60px 36px 90px 36px;
  }

  .contacto-form-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
  }

  .contacto-info-col {
    padding: 0 12px;
    margin-top: -15px;
  }

  .contacto-tag-pill {
    font-size: 11px;
    padding: 4px 14px;
    margin-top: -10px;
    margin-bottom: 22px;
  }

  .contacto-main-title {
    font-size: clamp(2.55rem, 8.5vw, 3.4rem);
    text-align: center;
  }

  .contacto-description {
    font-size: 1rem;
    text-align: center;
    padding: 0 8px;
  }

  .contacto-card {
    padding: 34px 24px 28px 24px !important;
    border-radius: 26px !important;
    width: 100% !important;
  }

  .step-pane-header h2 {
    font-size: 1.8rem;
  }

  #contactForm .form-row {
    flex-direction: column;
    gap: 16px;
  }

  #contactForm .form-row .form-group {
    width: 100%;
  }

  .step-nav-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .btn-step-prev,
  .btn-step-next,
  .btn-step-submit {
    width: 100% !important;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contacto-form-section {
    padding: 55px 30px 75px 30px;
  }

  .contacto-form-container {
    max-width: 100%;
    padding: 0;
  }

  .contacto-info-col {
    padding: 0 6px;
  }

  .contacto-card {
    padding: 26px 18px 22px 18px !important;
    border-radius: 22px !important;
  }

  .contacto-main-title {
    font-size: 2.40rem;
  }

  .contacto-description {
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 4px;
  }

  .step-pane-header h2 {
    font-size: 1.55rem;
  }

  .step-pane-header p {
    font-size: 13px;
  }

  .custom-select-trigger {
    padding: 11px 14px;
    font-size: 14px;
  }

  .trigger-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    margin-right: 10px;
  }

  .custom-options-dropdown {
    max-height: 240px;
  }

  .custom-option {
    padding: 10px 12px;
    gap: 10px;
  }

  .opt-text-info strong {
    font-size: 13px;
  }

  .opt-text-info span {
    font-size: 11.5px;
  }
}