/* ==========================================================
   contact.css | v7.4.1 | November 2025
   גרסה נקייה, יציבה ומותאמת ל-RTL ול-LTR
   ========================================================== */


/* === עטיפת שלושת הבלוקים === */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
}

/* עדיפויות רוחב */
.contact-form {
  flex: 1.4;
  min-width: 280px;
}

.contact-info {
  flex: 0.7;
  min-width: 260px;
}

.contact-map {
  flex: 0.9;
  min-width: 260px;
}


/* ==========================================================
   ===   מובייל   ===========================================
   ========================================================== */
@media (max-width: 768px) {

  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  /* מרכזת את כל הבלוקים */
  .contact-wrapper .section-box,
  .contact-wrapper .beliefs-inner {
    width: 100%;
    max-width: 600px;
    margin: 0 auto !important;
  }

  /* יישור טקסט בהתאם לשפה */
  html[dir="rtl"] .contact-wrapper .section-box,
  html[dir="rtl"] .contact-wrapper .beliefs-inner {
    text-align: right !important;
  }

  html[dir="ltr"] .contact-wrapper .section-box,
  html[dir="ltr"] .contact-wrapper .beliefs-inner {
    text-align: left !important;
  }

  /* טופס */
  form#contact-form {
    max-width: 92%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
  }

  form#contact-form input,
  form#contact-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================
   חלק עליון – ביטול רקע
   ========================================================== */
.contact-page > section:first-of-type .section-box {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.contact-page > section:first-of-type {
  max-width: 1180px;
  margin: 0 auto;
}


/* ==========================================================
   טופס יצירת קשר
   ========================================================== */
form label {
  font-weight: 600;
  color: #333;
  display: block;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1em;
  transition: border-color 0.25s ease;
}

form input:focus,
form textarea:focus {
  border-color: #d2232b;
  outline: none;
}

form button.btn {
  margin-top: 14px;
  border-radius: 6px;
}


/* ==========================================================
   פרטי קשר
   ========================================================== */
.contact-info p {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #333;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.contact-buttons a.btn-outline {
  padding: 6px 16px;
  border: 2px solid #d2232b;
  color: #d2232b;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-buttons a.btn-outline:hover {
  background-color: #d2232b;
  color: #fff;
}


/* ==========================================================
   מפה
   ========================================================== */
.contact-map iframe {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}


/* ==========================================================
   ריווח כללי
   ========================================================== */
.contact-page {
  margin-bottom: 20px;
}
