.contact-form .contact-form-intro[hidden],
.contact-form .contact-form-custom[hidden],
.contact-form .contact-success[hidden] {
  display: none !important;
}

.contact-form .contact-form-custom_wrapper .contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid #bddbc3;
  border-radius: 12px;
  background: #f3fbf4;
  color: #205d2c;
  text-align: center;
}

.contact-form .contact-form-custom_wrapper .contact-success-mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  background: #e1f2e5;
  color: #276332;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.contact-form .contact-form-custom_wrapper .contact-success h5 {
  margin: 0;
  color: #31251e;
  font-size: 1.45rem;
  font-weight: 700;
  text-transform: none;
}

.contact-form .contact-form-custom_wrapper .contact-success h5:focus {
  border-radius: 2px;
  outline: 3px solid rgba(182, 9, 36, 0.4);
  outline-offset: 4px;
}

.contact-form .contact-form-custom_wrapper .contact-success p {
  max-width: 36rem;
  margin: 0;
  color: #4f4c49;
  line-height: 1.6;
}

.contact-form .contact-form-custom_wrapper .contact-success-button {
  min-height: 46px;
  margin-top: 0.25rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid #b60924;
  border-radius: 8px;
  background: #fff;
  color: #9e071f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-form .contact-form-custom_wrapper .contact-success-button:hover {
  background: #b60924;
  color: #fff;
  transform: translateY(-1px);
}

.contact-form .contact-form-custom_wrapper .contact-success-button:focus-visible {
  outline: 3px solid rgba(182, 9, 36, 0.3);
  outline-offset: 3px;
}
