/* Make the entire CAPTCHA element use flex layout */
.captcha__element {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  max-width: 600px;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

/* CAPTCHA image styling */
.captcha__image-wrapper {
  flex-shrink: 0;
}

.captcha__image-wrapper img {
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Form input and label block */
.js-form-item-captcha-response {
  flex-grow: 1;
}

.js-form-item-captcha-response label {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 6px;
  display: block;
}

.js-form-item-captcha-response input {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

#edit-captcha-response--description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Style the refresh link cleanly below */
.reload-captcha-wrapper {
  margin-top: -45px;
  padding-left: 5px;
  text-indent: -9999px;
}

.reload-captcha {
  font-size: 13px;
  color: #0074d9;
  text-decoration: none;
}

.reload-captcha:hover {
  text-decoration: underline;
}
