/* إعداد عام */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  direction: rtl;
  font-family: 'Arial', sans-serif;
  background: #f5f5f5;
  overflow-x: hidden; /* يمنع التمرير الأفقي */
}

/* الحاوية */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* العناوين */
h1 {
  text-align: center;
  color: #e00;
  font-size: 40px;
  font-weight: bold;
}

h2 {
  text-align: center;
  color: #e00;
  margin-bottom: 35px;
}

/* الغلاف الرئيسي */
.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

/* الصورة */
.contact-image {
  flex: 1;
  max-width: 58%;
  margin-right: 5px;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

/* النموذج */
.contact-form {
  flex: 1;
  max-width: 40%;
  background: #fff;
  padding: 30px 25px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 10px;
  min-width: 300px;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #333;
  font-size: 20px;
  text-align: right;
  padding-right: 5%;
}

input,
textarea {
  width: 90%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 18px;
  display: block;
  margin: 0 auto;
}

textarea {
  resize: vertical;
}

button {
  background-color: #e00;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  width: 100%;
  margin-top: 10px;
}

button:hover {
  background-color: #c00;
}

.success-message {
  display: none;
  color: green;
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
}

/* الفوتر */
.footer-social {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  border-top: 4px solid #e00;
  width: 100%; 
  margin-top: 60px;
  box-sizing: border-box;
}

.footer-social h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.footer-social .social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-social a {
  color: #fff;
  font-size: 26px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #e00;
}

/* شاشات الموبايل */
@media screen and (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    padding: 0 10px;
    gap: 20px;
  }

  .contact-image,
  .contact-form {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .contact-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }
}
