/* ==========================================================================
   Hiveity Team - Official Style Sheet (Contact Page)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* الخطوط والألوان الأساسية */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #222222;
  color: #ffffff;
  margin: 0;
  padding: 0; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-image: url(images/Pattern.png);
  background-size: cover;
  background-position: center;
}

/* الحاوية الرئيسية المرنة (تضمن توسط الصندوق ودفع الفوتر للأسفل دائمًا) */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem; /* مساحة مرنة تمنع التصاق الصندوق بحواف الشاشة العليا والسفلى */
  box-sizing: border-box;
  width: 100%;
}

/* قسم النموذج (تصميم الزجاج السائل المرن الذي يصغر تلقائياً) */
.contact-form-section {
  width: 100%;          /* يضمن انكماش الصندوق بالكامل على الشاشات الصغيرة */
  max-width: 500px;     /* يمنع تمدد الصندوق بشكل زائد على الشاشات الكبيرة */
  padding: 2.5rem 2rem; 
  background: rgba(255, 255, 255, 0.03); 
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(173, 220, 175, 0.15); 
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box; /* يدمج الـ Padding داخل العرض لمنع مشاكل الحجم */
}

/* عنوان القسم */
.contact-form-section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.8rem; 
  color: #A8FFD4;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(168, 255, 212, 0.3);
}

/* تسميات الحقول */
.contact-form-section label {
  display: block;
  margin-bottom: 0.4rem; 
  font-weight: 600;
  color: #e0e0e0; 
  font-size: 0.85rem; 
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* حقول الإدخال */
.contact-form-section input,
.contact-form-section textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.2rem; 
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-sizing: border-box;
  font-size: 1rem;
}

/* تأثير التوهج عند النقر (Focus) */
.contact-form-section input:focus,
.contact-form-section textarea:focus {
  outline: none;
  border-color: #A8FFD4;
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 10px rgba(168, 255, 212, 0.25);
}

/* زر الإرسال الافتراضي */
.contact-form-section button {
  width: 100%;
  padding: 0.9rem; 
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #addcaf, #84d6b6);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(132, 214, 182, 0.2);
}

/* تأثير التمرير للزر */
.contact-form-section button:hover:not(.loading) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 214, 182, 0.4);
  filter: brightness(1.05);
}

.contact-form-section button:active:not(.loading) {
  transform: translateY(1px);
}

/* حالة التحميل */
.contact-form-section button.loading {
  background: #444; 
  color: #888; 
  cursor: not-allowed; 
  box-shadow: none;
  transform: none;
}

/* رابط العودة للصفحة الرئيسية */
.action-btn {
  display: block;
  text-align: center;
  margin-top: 1.2rem; 
  padding: 0.75rem;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(173, 220, 175, 0.1);
  color: #addcaf;
  text-decoration: none;
  font-weight: 600; 
  transition: all 0.3s ease;
  font-size: 0.9rem; 
}

.action-btn:hover {
  background-color: rgba(173, 220, 175, 0.1);
  color: #fff;
  border-color: rgba(173, 220, 175, 0.3);
}

/* الفوتر الزجاجي الذكي (تعديل الظهور ليكون ثابتاً ومتناسقاً) */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(15, 15, 15, 0.6); 
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  box-sizing: border-box;
  margin-top: auto; /* يضمن بقاء الفوتر في ذيل الصفحة دائماً */
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: #888888;
  letter-spacing: 0.5px;
}

.site-footer .brand-name {
  color: #A8FFD4;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(168, 255, 212, 0.2);
}

/* أنيميشن الدخول */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Breakpoints (نقاط التجاوب لتصغير محكم وسلس للصندوق)
   ========================================================================== */

/* 1. الشاشات الصغيرة جداً والبروزات (الهواتف المحمولة) < 576px */
@media (max-width: 575.98px) {
  .main-content {
    padding: 1.2rem 0.6rem; /* تقليل المسافة الخارجية لإعطاء الصندوق مساحة */
  }
  .contact-form-section {
    padding: 1.8rem 1.2rem; /* تقليل الحشوة الداخلية لكي لا تضيق الحقول */
    border-radius: 0.8rem;
  }
  .contact-form-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.4rem;
  }
  .contact-form-section label {
    font-size: 0.8rem;
  }
  .contact-form-section input, .contact-form-section textarea {
    padding: 0.8rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .site-footer {
    padding: 1.2rem 1rem;
  }
}

/* 2. شاشات متوسطة الصغر (الهواتف بالطول) 576px - 767px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .main-content {
    padding: 2rem 1rem;
  }
  .contact-form-section {
    padding: 2rem 1.5rem;
    max-width: 460px;
  }
}

/* 3. شاشات متوسطة (الأجهزة اللوحية - Tablets) 768px - 991px */
@media (min-width: 768px) and (max-width: 991.98px) {
  .contact-form-section {
    max-width: 480px;
    padding: 2.2rem;
  }
}

/* 4. شاشات كبيرة (شاشات الحواسيب العادية) 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .contact-form-section {
    max-width: 500px;
  }
}

/* 5. الشاشات الضخمة والمكتبية >= 1200px */
@media (min-width: 1200px) {
  .contact-form-section {
    max-width: 500px; /* الحفاظ على أبعاد الصندوق مريحة للعين في الشاشات العملاقة */
  }
}

/* تنسيقات صفحة شكرًا لك (Thank You Page) */
.thank-you-page {
  text-align: center;
  padding: 2.5rem;
  border-radius: 1rem;
  background: rgba(34, 34, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 500px; 
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

.success-icon {
  font-size: 4.5rem;
  color: #A8FFD4;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(168, 255, 212, 0.4);
}

.thank-you-page h2 {
  color: #A8FFD4;
  margin-bottom: 1rem;
  font-weight: 700;
}

.thank-you-page p {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.back-to-home-btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: #A8FFD4;
  color: #222;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 15px rgba(168, 255, 212, 0.2);
}

.back-to-home-btn:hover {
  background: #ffffff;
  color: #222222;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(168, 255, 212, 0.4);
}