/**
 * Elementor widget: فرم
 */
.aim-form {
  --aim-form-accent: #008ee0;
  direction: rtl;
  font-family: "Yekan Bakh", Tahoma, "Segoe UI", sans-serif;
  width: 100%;
}

.aim-form,
.aim-form * {
  font-family: "Yekan Bakh", Tahoma, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.aim-form__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.aim-form__desc {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.aim-form__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
}

.aim-form__field {
  width: 100%;
}

.aim-form__field--half {
  width: calc(50% - 8px);
}

@media (max-width: 640px) {
  .aim-form__field--half {
    width: 100%;
  }
}

.aim-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.aim-form__req {
  color: #ef4444;
}

.aim-form__input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aim-form__input:focus {
  outline: none;
  border-color: var(--aim-form-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aim-form-accent) 18%, transparent);
}

.aim-form__textarea {
  resize: vertical;
  min-height: 96px;
}

.aim-form__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

.aim-form__checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--aim-form-accent);
}

.aim-form__actions {
  margin-top: 18px;
}

.aim-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 12px 28px;
  border: 1px solid #ff7a00;
  border-radius: 12px;
  background: #ff7a00;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.aim-form__submit:hover {
  opacity: 0.92;
}

.aim-form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.aim-form__message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.aim-form__message--ok {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.aim-form__message--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.aim-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
