.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
  flex-wrap: wrap;
  flex-direction: row;
}

#captcha-canvas {
  border: 1px solid #000000;
  border-radius: 0.4em;
  background-color: #ffffff;
  max-width: 100%;
  height: auto;
}

#reload-captcha-button {
  font-size: 1.2em;
  width: 2.5em;
  height: 2.5em;
  min-width: 2.5em;
  min-height: 2.5em;
  background-color: #006ab1;
  border: none;
  border-radius: 0.4em;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  flex-shrink: 0;
}

#reload-captcha-button:hover {
  background-color: #08578b;
}

#reload-captcha-button:active {
  transform: scale(0.95);
}

#captcha-input {
  font-size: 1.05em;
  width: 100%;
  padding: 0.5em 0.7em;
  border: 1px solid #000000;
  border-radius: 0.4em;
}

/* Responsive */
@media (max-width: 768px) {
  .captcha-wrapper {
    gap: 0.75em;
  }

  #captcha-canvas {
    width: 180px;
    height: 63px;
  }

  #reload-captcha-button {
    font-size: 1.1em;
    width: 2.3em;
    height: 2.3em;
    min-width: 2.3em;
    min-height: 2.3em;
  }

  #captcha-input {
    font-size: 0.95em;
    padding: 0.45em 0.65em;
  }
}

@media (max-width: 480px) {
  .captcha-wrapper {
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
  }

  #captcha-canvas {
    width: 160px;
    height: 56px;
  }

  #reload-captcha-button {
    font-size: 1em;
    width: 2.2em;
    height: 2.2em;
    min-width: 2.2em;
    min-height: 2.2em;
  }

  #captcha-input {
    font-size: 0.9em;
    padding: 0.4em 0.6em;
  }
}

@media (max-width: 360px) {
  #captcha-canvas {
    width: 140px;
    height: 49px;
  }

  #reload-captcha-button {
    font-size: 0.95em;
    width: 2em;
    height: 2em;
    min-width: 2em;
    min-height: 2em;
  }

  #captcha-input {
    font-size: 0.85em;
    padding: 0.35em 0.55em;
  }
}