/* Small, safe overrides for the homepage only */

@media screen and (min-width: 1501px) {
  /* Live Results cards: was 5 columns (for 5 cards). After removing one card, use 4. */
  .live-results__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Homepage: Why Join compact lead form (2 columns / 2 rows) */
.why-join__lead-form.compact-form,
.why-join__lead-form .compact-form,
.why-join__lead-form {
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.why-join__lead-form form.lead-form {
  margin: 0;
}

.why-join__lead-form .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.why-join__lead-form .form-field {
  margin: 0;
}

.why-join__lead-form .form-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  opacity: 0.9;
}

.why-join__lead-form .w-input {
  width: 100%;
  margin-bottom: 0;

  /* minimalist, no “boxed” borders */
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 152, 17, 0.65);
  border-radius: 0;
  padding: 8px 0;
  height: auto;
  color: inherit;
  font-size: 14px;
  line-height: 1.3;
}

/* Prevent value/autofill from changing the field appearance */
.why-join__lead-form .w-input:-webkit-autofill,
.why-join__lead-form .w-input:-webkit-autofill:hover,
.why-join__lead-form .w-input:-webkit-autofill:focus,
.why-join__lead-form .w-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s;
}

/* Intl-tel-input wraps the tel field in `.iti` which can shrink-wrap.
   Ensure the wrapper and the tel input stretch to the full grid cell width
   so the underline matches the other `.w-input` fields. */
.why-join__lead-form .iti {
  width: 100% !important;
  display: block !important;
}

.why-join__lead-form .iti input[type="tel"],
.why-join__lead-form .iti input.iti__tel-input {
  width: 100% !important;
  display: block;
  box-sizing: border-box;
}

/* Override global intl-tel-input “filled” styling for the homepage lead form */
.why-join__lead-form .iti input.iti__tel-input:not(:placeholder-shown) {
  background: transparent !important;
  color: inherit !important;
}

.why-join__lead-form .iti input.iti__tel-input:-webkit-autofill,
.why-join__lead-form .iti input.iti__tel-input:-webkit-autofill:hover,
.why-join__lead-form .iti input.iti__tel-input:-webkit-autofill:focus,
.why-join__lead-form .iti input.iti__tel-input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0) inset !important;
  background-color: transparent !important;
  transition: background-color 9999s ease-out 0s;
}

/* Intl-tel-input dropdown styling (homepage lead form) — minimalist */
.why-join__lead-form .iti .iti__dropdown-content {
  background: rgba(10, 14, 34, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden;
  z-index: 9999;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.why-join__lead-form .iti .iti__search-input {
  width: 100% !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  outline: none !important;
  box-shadow: none !important;
}

.why-join__lead-form .iti .iti__search-input::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.why-join__lead-form .iti .iti__country-list {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  /* Ensure at least ~5 countries are visible */
  max-height: 240px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.why-join__lead-form .iti .iti__country {
  background: transparent !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border: 0;
  transition: background-color 0.12s ease;
}

.why-join__lead-form .iti .iti__country:hover,
.why-join__lead-form .iti .iti__country.iti__highlight {
  background: rgba(255, 152, 17, 0.10) !important;
}

.why-join__lead-form .iti .iti__dial-code {
  color: rgba(255, 255, 255, 0.6) !important;
}

.why-join__lead-form .iti .iti__divider {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.why-join__lead-form .w-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
  opacity: 1;
}

.why-join__lead-form .w-input:focus {
  outline: 0;
  border-bottom-color: #ff9811;
  box-shadow: none;
}

.why-join__lead-form .btn-gold {
  width: auto;
  min-width: 300px;
  max-width: 360px;
  margin: 14px auto 0;
  height: 40px;
  background: linear-gradient(90deg, var(--primary, #ff9811) 0%, var(--secondary, #fa03a4) 100%);
  background-size: 200% 100%;
  background-position: left;
  border: none;
  border-radius: 32px;
  padding: 0 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 56px;
  cursor: pointer;
  transition: background-position 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-join__lead-form .btn-gold:hover {
  background-position: right;
}

.why-join__lead-form .btn-gold:focus-visible {
  outline: 2px solid rgba(255, 152, 17, 0.65);
  outline-offset: 2px;
}

.why-join__lead-form .small-text {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  opacity: 0.85;
}

.why-join__lead-form .small-text a {
  font-size: inherit;
  color: var(--primary, #ff9811);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 152, 17, 0.7);
}

.why-join__lead-form .small-text a:hover {
  border-bottom-color: rgba(255, 152, 17, 1);
}

@media screen and (max-width: 767px) {
  .why-join__lead-form .form-grid {
    grid-template-columns: 1fr;
  }
}
