/* Mobile Hero Modal Button - زر فتح النموذج في قسم الهيرو للهاتف */
/* زر عصري مع نافذة منبثقة للنموذج على الهاتف */

@media (max-width: 768px) {
  /* Hero modal button - زر فتح النموذج */
  .hero-modal-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.2rem 2.5rem !important;
    background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
    border: none !important;
    border-radius: 50px !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.4) !important;
    margin: 1.5rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
    min-width: 250px !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
  }
  
  .hero-modal-button::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.6s ease !important;
  }
  
  .hero-modal-button:hover::before {
    left: 100% !important;
  }
  
  .hero-modal-button:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(13, 71, 161, 0.5) !important;
    background: linear-gradient(135deg, #1565c0, #1976d2) !important;
  }
  
  .hero-modal-button:active {
    transform: translateY(-1px) scale(1.01) !important;
  }
  
  /* Button text with better styling */
  .hero-modal-button span {
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Modal overlay - طبقة النافذة المنبثقة */
  .hero-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
  }
  
  .hero-modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
  }
  
  /* Modal content - محتوى النافذة المنبثقة */
  .hero-modal-content {
    background: linear-gradient(135deg, #0d47a1, #1565c0) !important;
    border: 1px solid rgba(66, 165, 245, 0.3) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    max-width: 500px !important;
    width: 100% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    transform: scale(0.9) translateY(20px) !important;
    transition: transform 0.3s ease !important;
  }
  
  .hero-modal-overlay.active .hero-modal-content {
    transform: scale(1) translateY(0) !important;
  }
  
  /* Modal close button - زر الإغلاق */
  .hero-modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
  }
  
  .hero-modal-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) !important;
  }
  
  /* Modal header - رأس النافذة */
  .hero-modal-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-modal-header h2 {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.5rem 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }
  
  .hero-modal-header p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Modal form - نموذج النافذة */
  .hero-modal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .hero-modal-form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  
  .hero-modal-form label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  .hero-modal-form input,
  .hero-modal-form textarea,
  .hero-modal-form select {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 1rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
  }
  
  .hero-modal-form input::placeholder,
  .hero-modal-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
  }
  
  .hero-modal-form input:focus,
  .hero-modal-form textarea:focus,
  .hero-modal-form select:focus {
    outline: none !important;
    border-color: rgba(66, 165, 245, 0.5) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2) !important;
  }
  
  .hero-modal-form textarea {
    min-height: 120px !important;
    resize: vertical !important;
  }
  
  /* Modal submit button - زر الإرسال */
  .hero-modal-submit {
    background: linear-gradient(135deg, #0ff, #42a8ff) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 1rem 2rem !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  .hero-modal-submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(0, 255, 255, 0.4) !important;
  }
  
  .hero-modal-submit:active {
    transform: translateY(0) !important;
  }
  
  /* Modal success message - رسالة النجاح */
  .hero-modal-success {
    display: none !important;
    text-align: center !important;
    padding: 2rem !important;
  }
  
  .hero-modal-success.active {
    display: block !important;
  }
  
  .hero-modal-success .icon {
    font-size: 3rem !important;
    color: #4caf50 !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-modal-success h3 {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    margin: 0 0 0.5rem 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }
  
  .hero-modal-success p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* RTL support */
  [dir="rtl"] .hero-modal-button {
    direction: rtl !important;
  }
  
  [dir="rtl"] .hero-modal-close {
    left: 1rem !important;
    right: auto !important;
  }
  
  [dir="rtl"] .hero-modal-form label,
  [dir="rtl"] .hero-modal-form input,
  [dir="rtl"] .hero-modal-form textarea,
  [dir="rtl"] .hero-modal-form select {
    text-align: right !important;
    direction: rtl !important;
  }
  
  /* LTR support */
  [dir="ltr"] .hero-modal-button {
    direction: ltr !important;
  }
  
  [dir="ltr"] .hero-modal-form label,
  [dir="ltr"] .hero-modal-form input,
  [dir="ltr"] .hero-modal-form textarea,
  [dir="ltr"] .hero-modal-form select {
    text-align: left !important;
    direction: ltr !important;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .hero-modal-button {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    min-width: 220px !important;
    border-radius: 40px !important;
  }
  
  .hero-modal-content {
    padding: 1.5rem !important;
    margin: 1rem !important;
  }
  
  .hero-modal-header h2 {
    font-size: 1.5rem !important;
  }
  
  .hero-modal-form input,
  .hero-modal-form textarea,
  .hero-modal-form select {
    padding: 0.8rem !important;
    font-size: 0.9rem !important;
  }
  
  .hero-modal-submit {
    padding: 0.8rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 360px) {
  .hero-modal-button {
    padding: 0.9rem 1.8rem !important;
    font-size: 0.95rem !important;
    min-width: 200px !important;
    border-radius: 35px !important;
  }
  
  .hero-modal-content {
    padding: 1rem !important;
  }
  
  .hero-modal-header h2 {
    font-size: 1.3rem !important;
  }
}
