/* BPMExpert Contact Form – exact match to approved dark mockup */
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Full-width section wrapper – forces black background against any theme */
.bpmecf-section {
  all: initial;
  display: block !important;
  width: 100% !important;
  background: #000000 !important;
  direction: rtl !important;
  font-family: "IRANSansX", "IRANSans", Tahoma, sans-serif !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.7 !important;
  position: relative !important;
  overflow: hidden !important;
}

.bpmecf-section *,
.bpmecf-section *::before,
.bpmecf-section *::after {
  box-sizing: border-box !important;
}

.bpmecf-section a {
  color: #c41e3a !important;
  text-decoration: underline !important;
}

.bpmecf-layout {
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: stretch !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  min-height: 640px !important;
  width: 100% !important;
}

.bpmecf-visual {
  flex: 1 1 48% !important;
  min-width: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background: #0a0a0a !important;
}

.bpmecf-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.bpmecf-panel {
  flex: 1 1 52% !important;
  min-width: 0 !important;
  background: #000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2.5rem 2rem !important;
}

.bpmecf {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  direction: rtl !important;
  text-align: right !important;
  font-family: "IRANSansX", "IRANSans", Tahoma, sans-serif !important;
  color: #ffffff !important;
  background: transparent !important;
}

.bpmecf-title {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 0.55rem !important;
  text-align: center !important;
  font-family: inherit !important;
  line-height: 1.3 !important;
}

.bpmecf-subtitle {
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  color: #9ca3af !important;
  margin: 0 0 1.6rem !important;
  text-align: center !important;
  line-height: 1.65 !important;
  font-family: inherit !important;
}

.bpmecf-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bpmecf-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  margin: 0 !important;
}

.bpmecf-label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  font-family: inherit !important;
  margin: 0 !important;
  display: block !important;
}

.bpmecf-req {
  color: #c41e3a !important;
  margin-right: 2px !important;
}

.bpmecf-input,
.bpmecf-select,
.bpmecf-textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.78rem 0.95rem !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
  color: #ffffff !important;
  background: #1a1a1a !important;
  border: 1px solid #2e2e2e !important;
  border-radius: 8px !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  height: auto !important;
  min-height: 0 !important;
}

.bpmecf-input::placeholder,
.bpmecf-textarea::placeholder {
  color: #6b7280 !important;
  opacity: 1 !important;
}

.bpmecf-input:focus,
.bpmecf-select:focus,
.bpmecf-textarea:focus {
  border-color: #c41e3a !important;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.28) !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.bpmecf-input[aria-invalid="true"],
.bpmecf-select[aria-invalid="true"],
.bpmecf-textarea[aria-invalid="true"] {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.bpmecf-select {
  min-height: 46px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239ca3af' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: left 1rem center !important;
  padding-left: 2.4rem !important;
  cursor: pointer !important;
}

.bpmecf-select option {
  background: #1a1a1a !important;
  color: #ffffff !important;
}

.bpmecf-textarea {
  resize: vertical !important;
  min-height: 110px !important;
}

.bpmecf-input--math {
  max-width: 120px !important;
}

.bpmecf-captcha-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.bpmecf-captcha-q {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-family: inherit !important;
}

.bpmecf-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.bpmecf-count {
  font-size: 0.78rem !important;
  color: #9ca3af !important;
  font-family: inherit !important;
}

.bpmecf-error {
  font-size: 0.78rem !important;
  color: #ef4444 !important;
  min-height: 1em !important;
  font-family: inherit !important;
}

.bpmecf-field--checkbox .bpmecf-checkbox-label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.55rem !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  color: #ffffff !important;
  line-height: 1.5 !important;
  font-family: inherit !important;
  font-weight: 400 !important;
}

.bpmecf-field--checkbox input[type="checkbox"] {
  margin-top: 0.25rem !important;
  flex-shrink: 0 !important;
  width: 1.1em !important;
  height: 1.1em !important;
  accent-color: #c41e3a !important;
  cursor: pointer !important;
}

.bpmecf-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.9rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  color: #ffffff !important;
  background: #c41e3a !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  min-height: 52px !important;
  width: 100% !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background 0.15s ease !important;
  line-height: 1.4 !important;
}

.bpmecf-btn:hover,
.bpmecf-btn:focus {
  background: #9f1232 !important;
  color: #ffffff !important;
  outline: none !important;
}

.bpmecf-btn:disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}

.bpmecf-btn-icon {
  display: inline-flex !important;
  width: 1.15em !important;
  height: 1.15em !important;
}

.bpmecf-btn-icon svg {
  width: 100% !important;
  height: 100% !important;
  fill: currentColor !important;
}

.bpmecf-actions {
  margin-top: 0.35rem !important;
}

.bpmecf-alert {
  padding: 0.85rem 1rem !important;
  border-radius: 8px !important;
  margin-bottom: 1rem !important;
  font-size: 0.9rem !important;
  font-family: inherit !important;
}

.bpmecf-alert--success {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
}

.bpmecf-alert--error {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.bpmecf-form-status {
  margin-top: 0.5rem !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  font-family: inherit !important;
}

.bpmecf-form-status.is-success { color: #22c55e !important; }
.bpmecf-form-status.is-error { color: #ef4444 !important; }

/* Honeypot: روش clip به‌جای left:-9999px؛ در صفحه‌های RTL موقعیت منفی چپ باعث اسکرول افقی و کوچک‌نمایی صفحه در موبایل می‌شد. */
.bpmecf-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bpmecf-captcha-notice {
  font-size: 0.85rem !important;
  color: #9ca3af !important;
}

@media (max-width: 900px) {
  .bpmecf-layout {
    flex-direction: column !important;
    min-height: 0 !important;
  }
  .bpmecf-visual {
    flex: none !important;
    height: 240px !important;
  }
  .bpmecf-panel {
    padding: 1.75rem 1.25rem 2rem !important;
  }
  /* iOS Safari روی فیلدهای کوچک‌تر از ۱۶px هنگام فوکوس صفحه را بزرگ می‌کند */
  .bpmecf-input,
  .bpmecf-select,
  .bpmecf-textarea {
    font-size: 16px !important;
  }
  .bpmecf-input--math {
    max-width: 140px !important;
  }
}
