.login-required-message {
  margin-bottom: 40px;
}

.message-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px);
  color: white;
  padding: 3.5rem;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: cardFloat 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 30px 30px 0 0;
}

.message-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
  }
}

.message-icon {
  font-size: 4.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.message-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.message-content h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.message-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
  font-size: 1.15rem;
  font-weight: 500;
}

.message-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* بطاقة معلومات المستخدم */
.user-info-badge {
  background: rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(30px);
  color: white;
  padding: 2rem 2.5rem;
  border-radius: 25px;
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.4);
  animation: slideInDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.user-info-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.badge-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.badge-content i {
  font-size: 2rem;
  color: #6ee7b7;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}

.badge-content span {
  font-weight: 800;
  font-size: 1.2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.badge-content small {
  opacity: 0.9;
  font-size: 0.95rem;
  margin-right: 1rem;
  font-weight: 500;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* تلميحات الحقول */
.field-hint {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border-right: 4px solid var(--primary-color);
  line-height: 1.5;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* الحقول المعطلة */
.form-group.disabled {
  opacity: 0.6;
}

.form-group.disabled input,
.form-group.disabled textarea {
  background: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

/* زر تسجيل الدخول في النموذج */
.login-prompt {
  text-align: center;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  border-radius: 25px;
  border: 3px dashed rgba(255, 255, 255, 0.2);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.login-prompt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.login-prompt p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

/* رسالة الترحيب */
.welcome-message {
  background: rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(30px);
  color: white;
  padding: 2rem 2.5rem;
  border-radius: 25px;
  margin-bottom: 2.5rem;
  text-align: center;
  animation: fadeIn 0.6s ease;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.welcome-message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.welcome-message i {
  margin-left: 12px;
  color: var(--primary-light);
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.6));
}

/* تأثيرات الحركة */
@keyframes slideInDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* تنسيقات الاستجابة */
@media (max-width: 768px) {
  .message-card {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem;
  }

  .message-actions {
    flex-direction: column;
    align-items: center;
  }

  .user-info-badge {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 1.5rem;
  }

  .badge-content {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* صفحة الاتصال الرئيسية */
.contact-page {
  padding: 3rem 0;
  background: transparent;
  min-height: calc(100vh - 80px);
  position: relative;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 500;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-info {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

.info-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.info-item:hover::before {
  transform: scaleY(1);
}

.info-icon {
  background: var(--gradient-primary);
  color: white;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
  transition: var(--transition);
}

.info-item:hover .info-icon {
  transform: scale(1.1) rotate(5deg);
}

.info-content h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.info-content p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 500;
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.contact-form h2 {
  color: var(--white);
  margin-bottom: 2.5rem;
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-family: inherit;
  color: var(--white);
  font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), 0 10px 40px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
  font-family: inherit;
}

.btn {
  padding: 18px 40px;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-family: inherit;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% 100%;
  color: white;
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background-position: 100% 0;
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-full {
  width: 100%;
}

.btn-text {
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 2;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid transparent;
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.faq-section {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  padding: 4rem 3rem;
  border-radius: 30px;
  margin-top: 4rem;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-header h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.faq-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  font-weight: 500;
}

.faq-item {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  margin-bottom: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.3);
}

.faq-question {
  padding: 2rem 2.5rem;
  background: rgba(59, 130, 246, 0.2);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.4s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.faq-question:hover {
  background: rgba(59, 130, 246, 0.3);
}

.faq-question::after {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.4s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 2.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.faq-answer.active {
  padding: 2rem 2.5rem;
  max-height: 600px;
}

.faq-answer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-size: 1.05rem;
  font-weight: 500;
}

.social-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon i {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.social-icon:hover {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.5);
}

/* تنسيقات الإشعارات */
.notification {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 35px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  min-width: 350px;
  max-width: 90%;
  animation: slideInDown 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.notification.success {
  background: rgba(16, 185, 129, 0.9);
  color: white;
}

.notification.error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

.notification.info {
  background: rgba(59, 130, 246, 0.9);
  color: white;
}

/* تنسيقات الحقول عند الخطأ */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.error-message {
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 8px;
  display: block;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* تنسيقات الاستجابة للشاشات الصغيرة */
@media (max-width: 480px) {
  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-info,
  .contact-form {
    padding: 2rem 1.5rem;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .info-icon {
    margin-left: 0;
    margin-bottom: 1rem;
  }

  .social-contact {
    flex-wrap: wrap;
  }

  .social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .faq-section {
    padding: 2.5rem 1.5rem;
  }

  .faq-question {
    padding: 1.5rem;
  }

  .faq-answer.active {
    padding: 1.5rem;
  }

  .notification {
    min-width: 280px;
    padding: 15px 25px;
  }
}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 360px) {
  .contact-header h1 {
    font-size: 2rem;
  }

  .contact-info,
  .contact-form {
    padding: 1.5rem 1rem;
  }

  .message-card {
    padding: 2rem 1.5rem;
  }

  .message-icon {
    font-size: 3.5rem;
  }

  .btn {
    padding: 16px 24px;
    font-size: 1rem;
  }
}

/* تأثيرات إضافية للوضع الداكن */
@media (prefers-color-scheme: dark) {
  .contact-page {
    background: transparent;
  }
}

/* تحسينات الطباعة */
@media print {
  .contact-page::before,
  .contact-info::before,
  .contact-form::before,
  .faq-section::before,
  .message-card::before,
  .user-info-badge::before,
  .welcome-message::before,
  .login-prompt::before {
    display: none !important;
  }

  .contact-info,
  .contact-form,
  .faq-section,
  .message-card,
  .user-info-badge,
  .welcome-message,
  .login-prompt {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }

  .btn {
    display: none !important;
  }

  .social-contact {
    display: none !important;
  }
}