/**
 * Contact form — Hamta Electric
 */

.hf-contact-form {
  --hf-cf-teal: #54a29e;
  --hf-cf-teal-deep: #2f6562;
  --hf-cf-copper: #b87333;
  --hf-cf-ink: #1a1a1a;
  --hf-cf-muted: #525252;
  --hf-cf-border: #e5e7eb;
  --hf-cf-bg: #f5f7f6;
  direction: rtl;
  font-family: "Vazirmatn", Tahoma, ui-sans-serif, system-ui, sans-serif;
  background: #fff;
  border: 1px solid var(--hf-cf-border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 39, 68, 0.08);
}

.hf-contact-form__intro {
  margin: 0 0 1.25rem;
  color: var(--hf-cf-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hf-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hf-contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--hf-cf-ink);
  font-weight: 500;
}

.hf-contact-form__field--full {
  grid-column: 1 / -1;
}

.hf-contact-form__field input,
.hf-contact-form__field textarea {
  font: inherit;
  font-weight: 400;
  color: var(--hf-cf-ink);
  border: 1px solid var(--hf-cf-border);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  background: var(--hf-cf-bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hf-contact-form__field input:focus,
.hf-contact-form__field textarea:focus {
  outline: none;
  border-color: var(--hf-cf-teal);
  box-shadow: 0 0 0 3px rgba(84, 162, 158, 0.2);
  background: #fff;
}

.hf-contact-form__hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.hf-contact-form {
  position: relative;
}

.hf-contact-form__submit {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  border: 0;
  border-radius: 6px;
  background: var(--hf-cf-copper);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.hf-contact-form__submit:hover {
  background: #9a5f28;
}

.hf-contact-form__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hf-contact-form__status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.hf-contact-form__status.is-ok {
  color: #059669;
}

.hf-contact-form__status.is-err {
  color: #dc2626;
}

@media (max-width: 767px) {
  .hf-contact-form {
    padding: 1.15rem;
  }

  .hf-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .hf-contact-form__submit {
    width: 100%;
  }

  .hf-contact-form__field {
    font-size: 0.9375rem;
  }
}

/* Clickable contact card values (tel / mailto / map) */
.elementor-499 .elementor-icon-box-description a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(47, 101, 98, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.elementor-499 .elementor-icon-box-description a:hover {
  color: #2f6562;
  text-decoration-color: #2f6562;
}
