/* ============================================
   MEDLITIX — WPForms Custom CSS
   Paste into: WPForms > Settings > Custom CSS
   ============================================ */

/* ── FORM CONTAINER ──────────────────────────── */
.wpforms-container {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
}

/* ── FIELD LABELS ────────────────────────────── */
.wpforms-field-label {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0A2744 !important;
  margin-bottom: 6px !important;
  display: block;
}

.wpforms-field-label-hide {
  display: none !important;
}

/* ── ALL INPUT FIELDS ────────────────────────── */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="number"],
.wpforms-field input[type="url"],
.wpforms-field input[type="password"],
.wpforms-field input[type="date"],
.wpforms-field select,
.wpforms-field textarea {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  color: #111827 !important;
  background: #ffffff !important;
  border: 1.5px solid #EEF0F4 !important;
  border-radius: 6px !important;
  padding: 11px 14px !important;
  width: 100% !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: auto;
}

/* ── FOCUS STATES ────────────────────────────── */
.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field input[type="number"]:focus,
.wpforms-field input[type="url"]:focus,
.wpforms-field input[type="password"]:focus,
.wpforms-field input[type="date"]:focus,
.wpforms-field select:focus,
.wpforms-field textarea:focus {
  border-color: #1D9E75 !important;
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12) !important;
  outline: none !important;
}

/* ── TEXTAREA ────────────────────────────────── */
.wpforms-field textarea {
  min-height: 120px !important;
  resize: vertical !important;
  line-height: 1.6 !important;
}

/* ── SELECT DROPDOWN ─────────────────────────── */
.wpforms-field select {
  cursor: pointer !important;
}

/* ── FIELD SPACING ───────────────────────────── */
.wpforms-field {
  margin-bottom: 20px !important;
  padding: 0 !important;
}

/* ── FIELD DESCRIPTION ───────────────────────── */
.wpforms-field-description,
.wpforms-field-sublabel {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 12px !important;
  color: #9CA3AF !important;
  margin-top: 4px !important;
}

/* ── CHECKBOXES & RADIO BUTTONS ──────────────── */
.wpforms-field-checkbox ul,
.wpforms-field-radio ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wpforms-field-checkbox ul li,
.wpforms-field-radio ul li {
  margin-bottom: 8px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpforms-field-checkbox input[type="checkbox"],
.wpforms-field-radio input[type="radio"] {
  accent-color: #1D9E75 !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  flex-shrink: 0;
}

.wpforms-field-checkbox label,
.wpforms-field-radio label {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #4B5563 !important;
  cursor: pointer;
}

/* ── REQUIRED ASTERISK ───────────────────────── */
.wpforms-required-label {
  color: #1D9E75 !important;
  font-weight: 700 !important;
}

/* ── ERROR MESSAGES ──────────────────────────── */
.wpforms-field .wpforms-error,
label.wpforms-error {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 12px !important;
  color: #E24B4A !important;
  margin-top: 4px !important;
  display: block;
}

.wpforms-field input.wpforms-error,
.wpforms-field select.wpforms-error,
.wpforms-field textarea.wpforms-error {
  border-color: #E24B4A !important;
  box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.1) !important;
}

/* ── SUBMIT BUTTON ───────────────────────────── */
.wpforms-submit-container {
  margin-top: 8px !important;
}

.wpforms-submit,
button.wpforms-submit {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: #1D9E75 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  letter-spacing: 0.2px;
  display: block;
}

.wpforms-submit:hover,
button.wpforms-submit:hover {
  background: #0F6E56 !important;
  transform: translateY(-1px);
}

.wpforms-submit:active,
button.wpforms-submit:active {
  transform: translateY(0);
}

/* ── CONFIRMATION MESSAGE ────────────────────── */
.wpforms-confirmation-container,
.wpforms-confirmation-container-full {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 15px !important;
  color: #0A2744 !important;
  background: #E1F5EE !important;
  border: 1px solid rgba(15, 110, 86, 0.2) !important;
  border-radius: 10px !important;
  padding: 20px 24px !important;
  line-height: 1.6;
}

/* ── FORM TITLE & DESCRIPTION ────────────────── */
.wpforms-title {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #0A2744 !important;
  margin-bottom: 8px !important;
}

.wpforms-description {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  color: #4B5563 !important;
  margin-bottom: 24px !important;
  line-height: 1.6;
}

/* ── SECTION DIVIDERS (WPForms Pro) ──────────── */
.wpforms-field-divider {
  border: none !important;
  border-top: 1px solid #EEF0F4 !important;
  margin: 24px 0 !important;
}

/* ── PAGE BREAK NAVIGATION (WPForms Pro) ─────── */
.wpforms-page-button {
  font-family: 'DM Sans', 'Segoe UI', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  transition: all 0.2s ease !important;
}

.wpforms-page-next {
  background: #1D9E75 !important;
  color: #ffffff !important;
  border: none !important;
}

.wpforms-page-next:hover {
  background: #0F6E56 !important;
}

.wpforms-page-prev {
  background: transparent !important;
  color: #0A2744 !important;
  border: 1.5px solid #0A2744 !important;
}

.wpforms-page-prev:hover {
  background: #0A2744 !important;
  color: #ffffff !important;
}

/* ── RECAPTCHA ───────────────────────────────── */
.wpforms-recaptcha-container {
  margin-bottom: 16px !important;
}

/* ── MOBILE ──────────────────────────────────── */
@media (max-width: 768px) {
  .wpforms-field input[type="text"],
  .wpforms-field input[type="email"],
  .wpforms-field input[type="tel"],
  .wpforms-field select,
  .wpforms-field textarea {
    font-size: 16px !important;
  }

  .wpforms-submit,
  button.wpforms-submit {
    font-size: 15px !important;
    padding: 14px 20px !important;
  }
}