#contact-success {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}

.contact-success-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.contact-success-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #28a745;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  animation: cf-check-pop 0.35s ease-out;
}

.contact-success-inner p {
  margin: 0;
}

@keyframes cf-check-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.cf-contact-cooldown #contact-form {
  display: none !important;
}

.cf-contact-cooldown #contact-success {
  display: flex !important;
}

/* Bootstrap 5's .form-floating isn't in this site's Bootstrap 4.5 bundle,
   so it's reimplemented here for our form fields. Pixel values are used
   instead of rem because this theme uses a fluid/responsive root font-size
   while form-control text is pinned to a fixed 16px - mixing the two would
   throw off the label/text vertical alignment as the viewport changes. */
.form-floating {
  position: relative;
}

.form-floating > .form-control,
.form-floating > select.form-control {
  height: 58px;
  padding: 16px 12px;
  line-height: 1.25;
  font-size: 16px;
}

.form-floating > textarea.form-control {
  height: auto;
  min-height: 96px;
  padding-top: 26px;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
  color: #6c757d;
  font-size: 16px;
  line-height: 1.25;
}

.form-floating > .form-control::placeholder {
  color: transparent;
}

.form-floating > input.form-control:focus,
.form-floating > input.form-control:not(:placeholder-shown),
.form-floating > textarea.form-control:focus,
.form-floating > textarea.form-control:not(:placeholder-shown) {
  padding-top: 26px;
  padding-bottom: 10px;
}

.form-floating > input.form-control:focus ~ label,
.form-floating > input.form-control:not(:placeholder-shown) ~ label,
.form-floating > textarea.form-control:focus ~ label,
.form-floating > textarea.form-control:not(:placeholder-shown) ~ label,
.form-floating > select.form-control ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-8px) translateX(2.4px);
}

.cf-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.cf-country-select-wrap {
  flex: 0 0 auto;
  width: 40%;
}

.cf-phone-input-wrap {
  flex: 1 1 auto;
}

.cf-error {
  display: block;
  color: #dc3545;
  min-height: 1.2em;
  margin-top: 0.25rem;
}

.cf-char-count {
  display: block;
  text-align: right;
  color: #6c757d;
}

#contact-form-error {
  display: none;
}

.cf-turnstile {
  margin-bottom: 1rem;
}

.cf-captcha-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cf-captcha-input {
  max-width: 160px;
}

#cf-submit[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}
