/* Unified lead capture: toast + modals. No layout shift; close only with ESC. */

/* Toast: mobile – fixed under navbar, centered; desktop – top-right corner */
#leadCaptureToastContainer {
  position: fixed;
  top: 84px; /* mobile: just below sticky header */
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 992px) {
  #leadCaptureToastContainer {
    top: 96px;   /* desktop: clear of navbar */
    right: 32px; /* spacing from right edge */
    left: auto;
    transform: none;
    align-items: flex-end;
  }
}

.lead-capture-toast {
  font-family: "Jost", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  padding: 16px 24px;
  background: rgba(10, 10, 10, 0.96);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 420px;
  width: min(90vw, 420px);
  pointer-events: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: leadCaptureToastFadeIn 0.25s ease-out forwards;
}

@keyframes leadCaptureToastFadeIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal: custom close behavior controlled via JS; keep default X available */
.lead-capture-modal-close {
  display: none !important;
}

/* Popup content: black background (match requirement) */
.lead-capture-modal-content {
  font-family: "Jost", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000000 !important;
  border: 1px solid #222;
  color: #f0f0f0;
}

#leadCaptureCareerModal .modal-header,
#leadCaptureBrochureModal .modal-header {
  border-bottom-color: #222;
}

.lead-capture-modal-title {
  font-family: "Jost", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.lead-capture-form .form-label {
  font-family: "Jost", sans-serif;
  color: #e0e0e0;
}

/* Input text clearly visible on dark modal; placeholder slightly dim */
.lead-capture-form .form-control {
  font-family: "Jost", sans-serif;
  background-color: #1a1a1a;
  border-color: #333;
  color: #fff !important;
}

.lead-capture-form .form-control::placeholder {
  color:#e0e0e0;
}

/* Autofill: keep text visible on dark background */
.lead-capture-form .form-control:-webkit-autofill,
.lead-capture-form .form-control:-webkit-autofill:hover,
.lead-capture-form .form-control:-webkit-autofill:focus,
.lead-capture-form .form-control:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  box-shadow: 0 0 0 1000px #1a1a1a inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Fixed “Register Now” CTA button (desktop + mobile) */
.fixed-register-cta {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  z-index: 9999;
  background: #a6e300;
  color: #111;
  border: 0;
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  font-weight: 600;
  font-family: "Jost", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .fixed-register-cta {
    top: auto;
    bottom: 16px;
    right: 16px;
    transform: none;
    border-radius: 12px;
    padding: 12px 16px;
  }
}

/* Current Role dropdown in lead capture modal: hide native select, use custom gradient dropdown */
.lead-capture-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.lead-capture-select-wrapper {
  position: relative;
  width: 100%;
}
.lead-capture-custom-select {
  position: relative;
  width: 100%;
}
.lead-capture-select-trigger {
  width: 100%;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 1px solid #ccc;
  background-color: #1a1a1a;
  color: #ffffff;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.lead-capture-select-trigger::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}
.lead-capture-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #0b0b0b;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
  z-index: 20;
  display: none;
}
.lead-capture-custom-select.is-open .lead-capture-options {
  display: block;
}
.lead-capture-option {
  padding: 8px 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.lead-capture-option:hover,
.lead-capture-option.is-active {
  background: linear-gradient(130deg, #558B01 0%, #AEF400 100%);
  color: #ffffff;
}

/* Dropdown options: visible (white bg, dark text), above modal */
#leadCaptureCareerModal option,
#leadCaptureBrochureModal option,
.lead-capture-form select option {
  background: #000000  !important;
  color: #ffffff!important;
}
/* Submit button: normal size, no circle/oval; override global .btn (160x160 circle) */
#leadCaptureCareerModal .lead-capture-submit,
#leadCaptureBrochureModal .lead-capture-submit,
.lead-capture-form .lead-capture-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px 20px !important;
  background: #A1E401 !important;
  color: #1a1a1a !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: "Jost", sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  flex-direction: row !important;
}

/* Remove circle/oval effect: disable .btn-effect and pseudo-elements */
#leadCaptureCareerModal .lead-capture-submit::before,
#leadCaptureCareerModal .lead-capture-submit::after,
#leadCaptureBrochureModal .lead-capture-submit::before,
#leadCaptureBrochureModal .lead-capture-submit::after,
.lead-capture-form .lead-capture-submit::before,
.lead-capture-form .lead-capture-submit::after {
  display: none !important;
  content: none !important;
}

#leadCaptureCareerModal .lead-capture-submit .btn-effect,
#leadCaptureBrochureModal .lead-capture-submit .btn-effect {
  display: none !important;
}

#leadCaptureCareerModal .lead-capture-submit:hover,
#leadCaptureBrochureModal .lead-capture-submit:hover {
  background: #8fc801 !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
  transform: none !important;
}

#leadCaptureCareerModal .modal-dialog,
#leadCaptureBrochureModal .modal-dialog {
  max-width: 480px;
  margin: 1.75rem auto;
}

#leadCaptureCareerModal .modal-body,
#leadCaptureBrochureModal .modal-body {
  padding: 5px 22px 20px;
  position: relative;
  z-index: 2;
}

/* Tighter vertical spacing between label and input inside popup forms (all fields) */
.lead-capture-form .form-label {
  margin-bottom: 6px;
  line-height: 1.2;
  display: block;
}
.lead-capture-form .form-control {
  padding: 10px 14px;
  margin-top: 0;
}

.lead-capture-form .lead-capture-role-group {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 12px !important; /* match normal form group spacing (~0.75rem) */
}
.lead-capture-form .lead-capture-role-group .form-label {
  margin-bottom: 6px !important;  /* reduce label-to-select gap */
  line-height: 1.2;
  display: block;
}
.lead-capture-form .lead-capture-role-group .lead-capture-custom-select,
.lead-capture-form .lead-capture-role-group select {
  margin-top: 0 !important;
}
.lead-capture-form .lead-capture-role-group.mb-3 {
  margin-bottom: 12px !important; /* override Bootstrap mb-3 for this group only */
}

/* Reduce margin below Phone Number group so it doesn't push Current Role down */
.lead-capture-form .lead-capture-phone-group {
  margin-bottom: 12px;
}

/* Space above submit button */
.lead-capture-form .lead-capture-submit {
  margin-top: 10px;
}

/* ===== Popup: tighten Current Role spacing ===== */
.modal .lead-capture-role-group,
.lead-capture-modal .lead-capture-role-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important; /* align with normal form */
  display: block !important;
}

/* Tighten label -> select gap for Current Role only */
.modal .lead-capture-role-group label,
.lead-capture-modal .lead-capture-role-group label {
  margin: 0 0 6px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
}

/* Remove any select top spacing in Current Role group */
.modal .lead-capture-role-group select,
.lead-capture-modal .lead-capture-role-group select {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Ensure Bootstrap mb-3 doesn't reintroduce a big gap on this group */
.lead-capture-role-group.mb-3 {
  margin-bottom: 10px !important;
}

/* If any popup form uses flex gap, keep it small and top-aligned */
.modal .lead-capture-form,
.lead-capture-modal .lead-capture-form {
  row-gap: 12px !important;
  gap: 12px !important;
  justify-content: flex-start !important;
}

#leadCaptureCareerModal .form-control:focus,
#leadCaptureBrochureModal .form-control:focus {
  border-color: #A1E401;
  box-shadow: 0 0 0 3px rgba(161, 228, 1, 0.15);
}

/* Invalid feedback on dark background */
#leadCaptureCareerModal .invalid-feedback,
#leadCaptureBrochureModal .invalid-feedback {
  color: #f88;
}

@media (max-width: 576px) {
  #leadCaptureCareerModal .modal-dialog,
  #leadCaptureBrochureModal .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  #leadCaptureToastContainer {
    left: 16px;
    right: 16px;
    top: 16px;
  }
}
