.l-vista__container {
  align-items: center;
  background-color: rgb(15, 23, 34);
  background-image: none;
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: auto;
  bottom: 0px;
  box-shadow: none;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  font-family: BagueSans, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  height: auto;
  justify-content: center;
  left: 0px;
  margin: 0px;
  max-height: none;
  max-width: none;
  min-height: auto;
  min-width: 0px;
  opacity: 1;
  padding: 48px 64px;
  position: relative;
  right: 0px;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  top: 0px;
  width: 100%;
}

/* l-vista__title class - Title size reduced */
.l-vista__title {
  background-color: rgba(0, 0, 0, 0);
  background-image: none;
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: auto;
  bottom: auto;
  box-shadow: none;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  display: block;
  flex-direction: row;
  flex-wrap: nowrap;
  font-family: BagueSans, Helvetica, Arial, sans-serif;
  font-size: 28px; /* Reduced from 32px */
  font-weight: 500;
  height: auto; /* Changed from 44px to auto */
  left: auto;
  letter-spacing: 0.96px;
  line-height: 38px; /* Adjusted from 44px */
  margin: 18px 0px; /* Reduced from 21.44px */
  max-height: none;
  max-width: 1200px;
  min-height: auto;
  min-width: auto;
  opacity: 1;
  padding: 0px;
  position: static;
  right: auto;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  top: auto;
  width: 340px;
}

/* l-vista__copy class - Updated for compact text */
.l-vista__copy {
  background-color: rgba(0, 0, 0, 0);
  background-image: none;
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: auto;
  bottom: auto;
  box-shadow: none;
  box-sizing: border-box;
  color: rgb(255, 255, 255);
  display: block;
  flex-direction: row;
  flex-wrap: nowrap;
  font-family: BagueSans, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  height: auto;
  left: auto;
  line-height: 1.4;
  margin: 0px 0px 30px 0px;
  max-height: none;
  max-width: none;
  min-height: auto;
  min-width: auto;
  opacity: 0.9;
  padding: 0px;
  position: static;
  right: auto;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  top: auto;
  width: 340px;
}

/* Specific styling for cloudflare_body to make it more compact */
#cloudflare_body {
  margin-top: 0px;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* ULTRA AGGRESSIVE - Target EVERYTHING inside the Turnstile widget */
.cf-turnstile,
.cf-turnstile *,
.cf-turnstile *::before,
.cf-turnstile *::after,
.main-wrapper,
.main-wrapper *,
.main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us,
.main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us *,
[class*="main-wrapper"],
[class*="main-wrapper"] *,
[class*="hhfk3"],
[class*="hhfk3"] * {
  background-color: #ffffff !important;
}

/* Specifically target the main wrapper and all its children */
.main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us {
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
  width: 300px !important;
  overflow: hidden !important;
}

/* Target every single possible container by ID and class */
#content, #content *,
#AOzYg6, #AOzYg6 *,
.cb-container, .cb-container *,
.cb-c, .cb-c *,
.cb-lb, .cb-lb *,
.verifying-container, .verifying-container *,
#verifying, #verifying *,
#branding, #branding *,
#terms, #terms * {
  background-color: #ffffff !important;
}

/* Force background on all divs */
div, div * {
  background-color: #ffffff !important;
}

/* Make text dark for readability */
.cb-lb-t,
#verifying-text,
#terms a,
.link-spacer,
.cf-link,
.cf-link *,
span,
p,
a {
  color: #000000 !important;
  background-color: #ffffff !important;
}

/* Make the spinner dark */
.circle {
  stroke: #000000 !important;
}

/* Make the Cloudflare logo text dark except the orange parts */
.logo-text {
  fill: #000000 !important;
}

/* Keep Cloudflare brand colors */
[fill="#F6821F"] {
  fill: #F6821F !important;
  background-color: transparent !important;
}
[fill="#FBAD41"] {
  fill: #FBAD41 !important;
  background-color: transparent !important;
}

/* Target inline styles that might be set by JavaScript */
[style*="background-color"] {
  background-color: #ffffff !important;
}

/* Turnstile container styling */
.turnstile-container {
  width: 100%;
  min-height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  background-color: transparent !important;
}

/* Success and error message styling */
.success-message {
  font-family: BagueSans, Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 1rem;
  color: #ffffff;
  margin-top: 0px;
  margin-bottom: 40px;
  text-align: center;
  opacity: 0.8;
  animation: fadeIn 0.3s ease-in-out;
}

.error-message {
  font-family: BagueSans, Helvetica, Arial, sans-serif;
  font-weight: 100;
  font-size: 1rem;
  color: #ffffff;
  margin-top: 0px;
  margin-bottom: 40px;
  text-align: center;
  opacity: 0.6;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.8; }
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Small phones (up to 375px) */
@media screen and (max-width: 375px) {
  .l-vista__container {
    padding: 30px 20px;
    width: 100%;
  }
  
  .l-vista__title {
    font-size: 24px;
    line-height: 32px;
    height: auto;
    letter-spacing: 0.5px;
    margin: 15px 0px;
    width: 100%;
    max-width: 280px;
  }
  
  .l-vista__copy {
    font-size: 13px;
    line-height: 1.3;
    margin: 0px 0px 20px 0px;
    width: 100%;
    max-width: 260px;
  }
  
  #cloudflare_body {
    max-width: 240px;
    margin-bottom: 20px;
    font-size: 13px;
  }
  
  .turnstile-container {
    margin: 10px 0;
    min-height: 55px;
  }
  
  .main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us {
    width: 260px !important;
    transform: scale(0.95);
  }
  
  .success-message,
  .error-message {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
}

/* Medium phones (376px to 425px) */
@media screen and (min-width: 376px) and (max-width: 425px) {
  .l-vista__container {
    padding: 35px 25px;
  }
  
  .l-vista__title {
    font-size: 26px; /* Adjusted for medium phones */
    line-height: 34px;
    height: auto;
    width: 100%;
    max-width: 300px;
  }
  
  .l-vista__copy {
    width: 100%;
    max-width: 280px;
  }
  
  #cloudflare_body {
    max-width: 260px;
  }
  
  .main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us {
    width: 280px !important;
  }
}

/* Small tablets and large phones (426px to 768px) */
@media screen and (min-width: 426px) and (max-width: 768px) {
  .l-vista__container {
    padding: 40px 30px;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .l-vista__title {
    font-size: 28px; /* Consistent with desktop reduction */
    line-height: 36px;
    width: 100%;
    max-width: 320px;
  }
  
  .l-vista__copy {
    width: 100%;
    max-width: 300px;
  }
  
  #cloudflare_body {
    max-width: 280px;
  }
}

/* Landscape mode for phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .l-vista__container {
    padding: 20px 40px;
  }
  
  .l-vista__title {
    margin: 10px 0px;
    font-size: 22px; /* Smaller in landscape */
    line-height: 28px;
  }
  
  .l-vista__copy {
    margin: 0px 0px 15px 0px;
  }
  
  #cloudflare_body {
    margin-bottom: 15px;
  }
  
  .turnstile-container {
    margin: 5px 0;
    min-height: 50px;
  }
  
  .main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us {
    transform: scale(0.9);
  }
}

/* High DPI / Retina screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .l-vista__title,
  .l-vista__copy {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Ensure the Turnstile widget scales properly on very small devices */
@media screen and (max-width: 320px) {
  .l-vista__title {
    font-size: 22px;
    max-width: 240px;
    line-height: 30px;
  }
  
  .main-wrapper.hhfk3.theme-dark.size-normal.lang-en-us {
    width: 240px !important;
    transform: scale(0.9);
    margin-left: auto;
    margin-right: auto;
  }
  
  .l-vista__copy {
    max-width: 220px;
    font-size: 12px;
  }
  
  #cloudflare_body {
    max-width: 200px;
  }
}