/* Beauty Hills – Widerruf Online-Formular */

.bh-widerruf-form-wrapper {
  max-width: 40rem;
  margin: 2.5rem 0 1rem;
  padding: 0;
  box-sizing: border-box;
}

.bh-widerruf-form {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 2rem 2rem 1.75rem;
  background: #fff;
  box-sizing: border-box;
}

.bh-widerruf-form-title {
  margin: 0 0 0.35rem;
  font-family: 'Mulish', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}

.bh-widerruf-form-lead {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
}

.bh-widerruf-form .bh-form-row {
  margin-bottom: 1.25rem;
}

.bh-widerruf-form .bh-form-row--2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .bh-widerruf-form .bh-form-row--2 {
    grid-template-columns: 1fr 1fr;
  }

  .bh-widerruf-form .bh-form-row--2 > .bh-form-row {
    margin-bottom: 0;
  }
}

.bh-widerruf-form label {
  display: block;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #000;
}

.bh-widerruf-form .bh-optional {
  font-weight: 400;
  color: #888;
  text-transform: none;
  letter-spacing: 0;
}

.bh-widerruf-form input[type="text"],
.bh-widerruf-form input[type="email"],
.bh-widerruf-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 15px;
  font-family: 'Mulish', sans-serif;
  line-height: 1.4;
  color: #000;
  background: #fff;
  transition: border-color 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.bh-widerruf-form input[type="text"]::placeholder,
.bh-widerruf-form input[type="email"]::placeholder,
.bh-widerruf-form textarea::placeholder {
  color: #999;
}

.bh-widerruf-form input[type="text"]:focus,
.bh-widerruf-form input[type="email"]:focus,
.bh-widerruf-form textarea:focus {
  outline: none;
  border-color: #000;
}

.bh-widerruf-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.bh-widerruf-form small {
  display: block;
  margin-top: 0.4rem;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

.bh-widerruf-form .bh-checkbox-row {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.bh-widerruf-form .bh-checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: #333;
  cursor: pointer;
}

.bh-widerruf-form .bh-checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  accent-color: #000;
}

.bh-widerruf-form .bh-checkbox-row a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bh-widerruf-form .bh-form-actions {
  margin-bottom: 0;
}

.bh-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.95rem 2rem;
  background: #000;
  color: #fff !important;
  border: none;
  border-radius: 31px;
  font-family: 'Mulish', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.bh-submit-btn:hover {
  background: #333;
}

.bh-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.bh-form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 4px;
}

.bh-form-message.error {
  display: block;
  background: #fdecea;
  color: #8a1f11;
}

.bh-form-message.success {
  display: block;
  background: #e8f6ec;
  color: #1a5c2e;
}

.bh-widerruf-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
}

.bh-success-icon {
  width: 64px;
  height: 64px;
  background: #000;
  color: #fff;
  font-size: 28px;
  line-height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
}

.bh-widerruf-success h3 {
  margin: 0 0 0.75rem;
  font-family: 'Mulish', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000;
}

.bh-widerruf-success p {
  margin: 0 0 0.5rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

.bh-submit-btn.loading {
  position: relative;
  color: transparent !important;
}

.bh-submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: bh-widerruf-spin 0.8s linear infinite;
}

@keyframes bh-widerruf-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .bh-widerruf-form-wrapper {
    margin-top: 1.75rem;
  }

  .bh-widerruf-form {
    padding: 1.5rem 1.25rem 1.35rem;
  }
}

/* Im Legal-Layout: Formular nicht schmaler als Body wirken lassen */
.legal-page .bh-widerruf-form-wrapper {
  max-width: 100%;
}
