/* ================= HERO ================= */
.contact-hero {
  background: linear-gradient(135deg, #f2c94c, #b8872f);
  color: #2e1d0e;
  text-align: center;
  padding: 100px 20px 90px;
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.contact-hero p {
  font-size: 17px;
  opacity: 0.95;
}

/* ================= SECTION ================= */
.contact-section {
  max-width: 1150px;
  margin: 100px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 50px;
}

/* ================= CARDS ================= */
.contact-info,
.contact-form {
  background: #fff;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info:hover,
.contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* ================= TITLES ================= */
.contact-info h2,
.contact-form h2 {
  margin-bottom: 20px;
  color: #5a3a1b;
  font-size: 22px;
  font-weight: 700;
}

/* ================= INFO ================= */
.contact-info p {
  margin-bottom: 14px;
  color: #444;
  line-height: 1.7;
}

.contact-info a {
  color: #b8872f;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #8a621f;
}

.contact-note {
  margin-top: 25px;
  font-size: 14px;
  color: #777;
}

/* ================= FORM ================= */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* inputs */
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  font-size: 15px;
  background: #fafafa;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b8872f;
  box-shadow: 0 0 0 3px rgba(184, 135, 47, 0.15);
  background: #fff;
}

/* ================= BUTTON ================= */
.contact-form button {
  background: linear-gradient(135deg, #b8872f, #9f7426);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* ================= SUCCESS MESSAGE ================= */
.form-success {
  margin-top: 20px;
  padding: 16px;
  background: #e6f8ec;
  color: #1f7a3e;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #b6ebc6;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

/* subtle animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .contact-hero {
    padding: 80px 20px 70px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-section {
    margin: 70px auto;
    gap: 30px;
  }

  .contact-info,
  .contact-form {
    padding: 30px 25px;
  }

}
/* ضبط اتجاه الحقول RTL */
.contact-form input,
.contact-form textarea {
  direction: rtl;
  text-align: right;
}

/* لكن رقم الهاتف يجب أن يكون LTR */
.contact-form input[type="tel"] {
  direction: ltr;
  text-align: left;
}

.contact-form form {
  direction: rtl;
}

.contact-form input,
.contact-form textarea {
  direction: rtl !important;
  text-align: right !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  text-align: right;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 15px;
}

.contact-item i {
  color: #b8872f;
  font-size: 18px;
  margin-top: 3px;
  min-width: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-item a {
  color: #5a3a1b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #b8872f;
}
