
.clean-contact-wrap {
  max-width: 640px;
}

.clean-contact-title {
  margin: 0 0 1rem;
}

.clean-contact-form p {
  margin: 0 0 1rem;
}

.clean-contact-form input,
.clean-contact-form textarea,
.clean-contact-form button {
  font: inherit;
}

.clean-contact-form input,
.clean-contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem;
  box-sizing: border-box;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
}

.clean-contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.clean-contact-form button {
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  background: #2271b1;
  color: #fff;
  font-weight: 500;
  transition: background 0.2s ease;
}

.clean-contact-form button:hover {
  background: #135e96;
}

.clean-contact-form button:disabled {
  background: #c3c4c7;
  cursor: not-allowed;
}

.clean-contact-message {
  padding: 0.875rem 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.clean-contact-success {
  background: #edfaef;
  color: #00a32a;
  border: 1px solid #00a32a;
}

.clean-contact-error {
  background: #fcf0f1;
  color: #d63638;
  border: 1px solid #d63638;
}

.clean-contact-privacy-note {
  margin-top: 0.5rem;
  font-size: 0.92em;
  opacity: 0.85;
}

.clean-contact-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Consent checkbox styling */
.clean-contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.clean-contact-consent input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.clean-contact-consent label {
  font-size: 0.92em;
  line-height: 1.5;
}

/* AJAX form styling */
.clean-contact-form--ajax .clean-contact-messages {
  display: none;
}

.clean-contact-form--ajax.is-loading button {
  position: relative;
  padding-right: 2.5rem;
}

.clean-contact-form--ajax.is-loading button::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: clean-contact-spin 0.8s linear infinite;
}

@keyframes clean-contact-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Focus states */
.clean-contact-form input:focus,
.clean-contact-form textarea:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* Required field indicator */
.clean-contact-form label {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.clean-contact-form input[required] + label::after,
.clean-contact-form textarea[required] + label::after {
  content: ' *';
  color: #d63638;
}
