/* Compact CAPTCHA and submit row, shared by the six Durasan forms. */
.form > .form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  grid-column: 1 / -1;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.form__footer > .form__captcha {
  flex: 0 1 260px;
  width: 260px;
  max-width: 100%;
  min-width: 0;
}

.form__footer > .form__submit {
  display: flex;
  flex: 1 0 auto;
  min-width: 0;
}

.form__footer .form__submit .btn {
  width: 100%;
  min-height: 70px;
  padding: 12px 24px;
  border: 1px solid #438bb5;
  border-radius: 8px;
  background: linear-gradient(180deg, #2f7ba8, #246489);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 4px 12px rgb(0 0 0 / 16%);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form__footer .form__submit .btn:hover {
  border-color: #8dc9eb;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 5px 14px rgb(0 0 0 / 24%);
}

.form__footer .form__submit .btn:focus-visible {
  outline: 2px solid #8dc9eb;
  outline-offset: 3px;
}

.form__captcha altcha-widget {
  display: block;
  width: 100%;
  max-width: 100%;
  color-scheme: dark;
  font-size: 14px;
  --altcha-max-width: 100%;
  --altcha-padding: 10px;
  --altcha-border-radius: 8px;
  --altcha-border-color: #53595c;
  --altcha-color-base: #282b2d;
  --altcha-color-base-content: #f4f5f5;
  --altcha-color-neutral: #858f94;
  --altcha-color-neutral-content: #d0d5d8;
  --altcha-color-primary: #69b4df;
  --altcha-color-primary-content: #17232b;
  --altcha-color-success: #7dc995;
  --altcha-color-success-content: #102719;
  --altcha-color-error: #f0857d;
  --altcha-color-error-content: #241b1b;
  --altcha-input-background-color: #222527;
  --altcha-checkbox-size: 26px;
  --altcha-checkbox-border-color: #a4afb5;
  --altcha-checkbox-border-width: 1.5px;
  --altcha-checkbox-border-radius: 6px;
  --altcha-checkbox-outline-color: #69b4df;
  --altcha-spinner-color: #69b4df;
  --altcha-transition-duration: 180ms;
}

.form__captcha .altcha-main {
  min-height: 70px;
  gap: 3px;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 3%), transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), 0 4px 12px rgb(0 0 0 / 16%);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.form__captcha .altcha-main:hover { border-color: #858f94; }
.form__captcha .altcha-main:focus-within { border-color: #69b4df; }

.form__captcha .altcha-checkbox-wrap {
  gap: 10px;
  min-height: 28px;
}

.form__captcha .altcha-checkbox-wrap label {
  align-items: center;
  min-height: 28px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
}

.form__captcha .altcha-checkbox input:focus-visible {
  outline: 2px solid #69b4df;
  outline-offset: 4px;
}

.form__captcha .altcha-footer {
  justify-content: flex-start;
  padding-left: 36px;
  color: #b9c1c5;
  font-size: 12px;
  line-height: 1.25;
  opacity: 1;
}

.form__captcha .altcha-logo { color: #b9c1c5; opacity: 1; }
.form__captcha .altcha[data-state="verified"] .altcha-main {
  background-color: #27322b;
  border-color: #577b62;
}
.form__captcha .altcha[data-state="verified"] .altcha-checkbox-wrap label { color: #c6ebd1; }
.form__captcha .altcha[data-state="error"] .altcha-main,
.form__captcha .altcha[data-state="expired"] .altcha-main { border-color: #f0857d; }

@media (max-width: 640px) {
  .form > .form__footer { flex-direction: column; width: min(100%, 260px); gap: 10px; }
  .form__footer > .form__captcha { flex: none; width: 100%; }
  .form__footer .form__submit .btn { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .form__captcha altcha-widget { --altcha-transition-duration: 0ms; }
  .form__captcha .altcha-main,
  .form__footer .form__submit .btn { transition: none; }
  .form__captcha .altcha-spinner { animation: none; }
}
