/* *****************************************************
    ** Custom Stylesheet **
    Any custom styling you want to apply should be
    defined here.
***************************************************** */

/* General CAPTCHA container styling for all screen sizes */
.captcha-container {
  width: 100% !important;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}

/* CAPTCHA layout for screens above 480px: side-by-side */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .form-group.captcha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }

  .captchaimage {
    max-width: 48%;
    height: auto;
    display: block;
  }

  input[name="captcha"] {
    flex: 1;
    min-width: 48%;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* CAPTCHA layout for small screens: stacked (image on top) */
@media screen and (max-width: 480px) {
  .captcha-container,
  .form-group.captcha,
  input[name="captcha"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .captchaimage {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
  }

  input[name="captcha"] {
    font-size: 14px;
    padding: 8px;
    margin-top: 5px;
  }
}
