/* ================================
   FORM ELEMENT RESET (Contact Form block only)
   ================================ */
.contact-form-block input,
.contact-form-block textarea,
.contact-form-block select{
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* ================================
   INPUT CONTAINER
   ================================ */
.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-basis:100%;
}

/* ================================
   LABELS
   ================================ */
.contact-form-field label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25rem;
}

.contact-form-field .req {
  color: #e74c3c;
  margin-left: 4px;
}

/* ================================
   INPUTS / TEXTAREAS / SELECTS
   ================================ */
.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field textarea,
.contact-form-field select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 10px;

  background: #fff;
  border: 1px solid #d7d8db;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Remove Safari inner shadows */
input[type="text"],
input[type="email"],
textarea {
  -webkit-appearance: none;
}

/* Focus state */
.contact-form-field input:focus,
.contact-form-field textarea:focus,
.contact-form-field select:focus {
  outline: none;
  border-color: #7b5cff;
  box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.25);
}

/* Disabled state */
.contact-form-field input[disabled],
.contact-form-field textarea[disabled],
.contact-form-field select[disabled] {
  background: #f3f3f3;
  opacity: 0.6;
}

/* ================================
   TEXTAREA
   ================================ */
.contact-form-field textarea {
  min-height: 120px;
  resize: vertical;
}

/* ================================
   SELECTS (with custom arrow)
   ================================ */
.contact-form-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* ================================
   CHECKBOXES / RADIOS
   ================================ */
.contact-form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.contact-form-options input[type="checkbox"],
.contact-form-options input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* ================================
   ERROR & SUCCESS MESSAGES
   ================================ */
.contact-form-message {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.contact-form-message--success {
  background: #e8faf0;
  border: 1px solid #a7e1c2;
  color: #2f8c54;
}

.contact-form-message--error {
  background: #fdeceb;
  border: 1px solid #f5b5b0;
  color: #c0392b;
}

/* ================================
   SUBMIT BUTTON (neutral styling,
   your theme may override .button)
   ================================ */




.contact-form-submit.is-submitting {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ================================
   RESPONSIVE 50/50 LAYOUT
   ================================ */
.contact-form-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-form-field--full {
  flex: 1 1 100%;
}

@media (min-width: 900px) {
  .contact-form-field--half {
    flex: 1 1 calc(50% - 0.75rem);
  }
}



.contact-form-actions {
  margin-top: 1.25rem;
  display: flex;
}

/* Default (left) */
.contact-form-actions--left {
  justify-content: flex-start;
}

.contact-form-actions--center {
  justify-content: center;
}

.contact-form-actions--right {
  justify-content: flex-end;
}
