/* tajawal-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: Tajawal;
  font-style: normal;
  font-weight: 400;
  src: url('fonts/tajawal-v12-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* tajawal-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: Tajawal;
  font-style: normal;
  font-weight: 700;
  src: url('fonts/tajawal-v12-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* tajawal-700 - latin */

.cta-buttonn {
  background: linear-gradient(135deg, #ffd93d 0%, #ffc107 100%);
  color: #2d1b4e;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.5);
  text-decoration: none;
  display: inline-block;
  margin: 15px 0;
  transition: all 0.3s ease;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  display: block;
  padding: 15px 0;
  font-size: 18px;
  text-decoration: none;
  z-index: 9999;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Tajawal, sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
  
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate3d(80px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate3d(-80px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale3d(0.92, 0.92, 1);
  }
  to {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale3d(1, 1, 1);
  }
  50% {
    transform: scale3d(1.05, 1.05, 1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 1);
  }
  50% {
    opacity: 1;
    transform: scale3d(1.05, 1.05, 1);
  }
  70% {
    transform: scale3d(0.9, 0.9, 1);
  }
  100% {
    opacity: 1;
    transform: scale3d(1, 1, 1);
  }
}

.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.slide-right.animated {
  animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.slide-left.animated {
  animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.fade-up.animated {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scale-in.animated {
  animation: scaleIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.bounce-in.animated {
  animation: bounceIn 0.9s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.stagger-delay-1 {
  animation-delay: 0.1s;
}
.stagger-delay-2 {
  animation-delay: 0.2s;
}
.stagger-delay-3 {
  animation-delay: 0.3s;
}
.stagger-delay-4 {
  animation-delay: 0.4s;
}
.stagger-delay-5 {
  animation-delay: 0.5s;
}
.stagger-delay-6 {
  animation-delay: 0.6s;
}

.countdown-bar {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  color: #ffd93d;
  padding: 12px 16px;
  text-align: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffd93d;
}

.countdown-bar p {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.countdown-timer {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: #ffd93d;
  letter-spacing: 1px;
}

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 16px 30px;
  text-align: center;
}

.course-title {
  font-size: 25px;
  font-weight: 700;
  color: #ffd93d;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.course-subtitle {
  font-size: 18px;
  color: #ffffff;
  max-width: 100%;
  margin: 0 auto 25px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background: linear-gradient(135deg, #ffd93d 0%, #ffc107 100%);
  color: #2d1b4e;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 217, 61, 0.5);
  text-decoration: none;
  display: inline-block;
  margin: 15px 0;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale3d(1.02, 1.02, 1);
  box-shadow: 0 8px 25px rgba(255, 217, 61, 0.6);
}

.cta-button:active {
  transform: scale3d(0.95, 0.95, 1);
}

.section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
    content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffd93d;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  padding-bottom: 12px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #ffd93d, #ffc107);
  border-radius: 2px;
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.problem-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 61, 0.3);
  transition: all 0.4s ease;
}

.problem-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translate3d(-5px, 0, 0);
  box-shadow: 0 8px 25px rgba(255, 217, 61, 0.2);
}

.problem-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ffd93d, #ffc107);
  color: #2d1b4e;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 700;
  margin-left: 12px;
  font-size: 16px;
}

.problem-text {
  display: inline;
  font-size: 15px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.6;
}

.video-container {
  max-width: 90%;
  margin: 30px auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(255, 217, 61, 0.3);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.teacher-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 40px 16px;
  margin: 40px 0;
  border-radius: 20px;
}

.teacher-content {
  max-width: 1000px;
  margin: 0 auto;
}

.teacher-image {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffd93d;
  box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

.teacher-list {
  list-style: none;
  margin-top: 20px;
}

.teacher-list li {
  padding: 12px 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 400;
  position: relative;
  padding-right: 28px;
  line-height: 1.6;
}

.teacher-list li:before {
  content: "✓";
  position: absolute;
  right: 0;
  color: #ffd93d;
  font-weight: 700;
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.content-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 217, 61, 0.3);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
}

.content-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 10px 30px rgba(255, 217, 61, 0.2);
}

.content-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffd93d;
  margin-bottom: 16px;
}

.content-list {
  list-style: none;
}

.content-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #ffffff;
  position: relative;
  padding-right: 24px;
  font-weight: 400;
  line-height: 1.6;
}

.content-list li:before {
  content: "●";
  position: absolute;
  right: 0;
  color: #ffd93d;
  font-size: 12px;
}

.gift-box {
  background: linear-gradient(135deg, #ffd93d, #ffc107);
  padding: 24px;
  border-radius: 16px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(255, 217, 61, 0.4);
  animation: float 3s ease-in-out infinite;
}

.gift-box h3 {
  color: #2d1b4e;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gift-box p {
  color: #2d1b4e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.gift-list {
  list-style: none;
  margin-top: 16px;
  text-align: right;
}

.gift-list li {
  padding: 8px 0;
  font-size: 14px;
  color: #2d1b4e;
  font-weight: 600;
  position: relative;
  padding-right: 24px;
}

.gift-list li:before {
  content: "✔";
  position: absolute;
  right: 0;
  color: #2d1b4e;
  font-weight: 700;
}
/* ========== Section آراء الطلاب avec Scroll ========== */
.testimonials-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
}

.testimonials-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: 30px;
  padding-bottom: 10px;
}

.testimonials-scroll-container::-webkit-scrollbar {
  display: none;
}

.testimonials-grid {
  display: flex;
  gap: 20px;
  padding: 10px 0;
}

/* الكارت اللي يحتضن الصورة */
.testimonial-card {
  width: 260px;
  aspect-ratio: 9 / 16;
  background: radial-gradient(circle at top, #1f1b4d 0%, #0f0c29 60%, #05030f 100%);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 217, 61, 0.4);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.testimonial-card::after {
  /* لمسة خفيفة تبان كأنها لمعة */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

/* الصورة جوا الكارت، ما تتمطّش لو صغيرة */
.testimonial-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 14px;
  object-fit: contain; /* لو الصورة صغيرة تفضل واضحة وما تتقصش */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover .testimonial-image {
  transform: translateY(-3px) scale(1.01);
}

/* على الشاشات الأكبر نكبّر الكارت */
@media (min-width: 768px) {
  .testimonial-card {
    width: 320px;
  }
}

/* أزرار وتحذير السحب على اللابتوب */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.testimonials-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 217, 61, 0.7);
  background: rgba(0, 0, 0, 0.4);
  color: #ffd93d;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.testimonials-nav-btn:hover {
  background: rgba(255, 217, 61, 0.15);
  transform: translateY(-2px);
}

.testimonials-hint {
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* تظهر الأزرار فقط على اللابتوب */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: flex;
  }
}

/* ========== Bouton WhatsApp à la Fin ========== */
.whatsapp-container {
  text-align: center;
  margin: 30px 0 120px;
}

.whatsapp-float {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 20px auto;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  font-size: 26px;
}

.whatsapp-label {
  color: #ffd93d;
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

.pricing-section {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  padding: 36px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgba(255, 217, 61, 0.4);
  box-shadow: 0 10px 40px rgba(255, 217, 61, 0.3);
}

.discount-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #ff4757);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.price-original {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 12px;
  font-weight: 600;
}

.price-current {
  font-size: 38px;
  color: #ffd93d;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.price-highlight {
  color: #ffd93d;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-section {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  border-right: 3px solid #ffd93d;
  transition: all 0.4s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translate3d(-5px, 0, 0);
}

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: #ffd93d;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 14px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.6;
}

.final-cta-section {
  text-align: center;
  padding: 40px 16px 100px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 40px 16px;
  border: 2px solid rgba(255, 217, 61, 0.3);
}

.final-cta-section h2 {
  font-size: 24px;
  color: #ffd93d;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.final-cta-section .price-row {
  margin: 20px 0;
}

@media (min-width: 768px) {
  .course-title {
    font-size: 30px;
  }
  .course-title2 {
    font-size: 30px;
  }

  .course-subtitle {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .cta-button {
    font-size: 18px;
    padding: 16px 40px;
  }

  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-image {
    width: 250px;
    height: 250px;
  }

  .video-container {
    max-width: 80%;
  }
}

/* =====================================
   Popup Animation Clean & Fixed Version
===================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;

  /* البداية */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* وقت الفتح */
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* صندوق البوب أب */
.modal-box {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  max-width: 720px;
  width: 95%;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  max-height: 90vh;

  /* قبل الأنيميشن */
  transform: translateY(40px) scale(0.9);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* وقت الفتح */
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* وقت الإغلاق */
.modal-overlay.closing .modal-box {
  transform: translateY(40px) scale(0.9);
  opacity: 0;
}
/* ===== Scrollbar داخل الـ Popup فقط ===== */
.modal-close-btn {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffd93d;
}
/* محتوى البوب أب */
/* جسم المودال الأساسي */
.modal-body {
  padding: 16px;
  color: #ffffff;
}

/* تقسيم الجسم لفورم ثابت + سياسة بس اللي عليها Scroll */
.modal-body-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
}

/* الفورم الثابت */
.modal-form-area {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  overflow: auto;
}

.modal-small-title {
  font-size: 0.95rem;
  color: #ffd93d;
  margin-bottom: 6px;
  font-weight: 700;
}

.modal-hint {
  /* margin-top: 10px; */
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* سياسة الاسترجاع – هي اللي عليها Scroll */
.modal-policy-area {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffd93d rgba(255, 255, 255, 0.05);
}

/* Scrollbar داخل سياسة الاسترجاع فقط */
.modal-policy-area::-webkit-scrollbar {
  width: 8px;
}

.modal-policy-area::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.modal-policy-area::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd93d, #ffc107);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 217, 61, 0.7);
}

.modal-policy-area::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ffe773, #ffd93d);
}

/* تنسيق العناوين داخل السياسة */
.modal-policy-area h4 {
  color: #ffd93d;
  margin-top: 8px;
}

.modal-policy-area ul {
  padding-right: 18px;
}

.modal-policy-area hr {
  margin: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* على الشاشات الأوسع نخليهم جنب بعض (فورم يسار + سياسة يمين) */
@media (min-width: 768px) {
  .modal-body-split {
    flex-direction: row;
  }

  .modal-form-area {
    flex: 0 0 38%;
  }

  .modal-policy-area {
    flex: 1 1 62%;
  }
}
/* الهيدر */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-header h2 {
  color: #ffd93d;
}

/* الفوتر */
.modal-footer {
  padding: 12px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.modal-body h3,
.modal-body h4 {
  color: #ffd93d;
  margin-top: 10px;
}

.modal-body ul {
  padding-right: 20px;
}

.modal-body hr {
  margin: 15px 0;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.modal-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-btn-accept {
  background: #16a34a;
  color: #fff;
}

.modal-btn-decline {
  background: #e5e7eb;
  color: #111827;
}


.modal-form-group {
 /*  margin-top: 12px; */
  text-align: right;
}

.modal-form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #ffeaa7;
}

.modal-form-group input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #000000;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.modal-form-group input:focus {
  border-color: #ffd93d;
  box-shadow: 0 0 0 1px rgba(255,217,61,0.4);
}

.field-error {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #fca5a5;
  min-height: 14px;
}


@media (max-width: 768px) {

    .modal-body{
        overflow: auto;
    }
    .modal-policy-area , .modal-form-area {
        overflow:unset;
    }
}

/* ===== Coupon Field Special Style ===== */
.coupon-group {
  max-width: 75%;        /* أصغر من اللي قبله */
  margin-left: auto;     /* يخليه ناحية اليمين */
  margin-right: 0;
  margin-top: 6px;
}

.coupon-group label {
  font-size: 0.8rem;
  color: #facc15;
}

.coupon-input {
  padding: 6px 10px;     /* أصغر */
  font-size: 0.85rem;
  border-radius: 999px;  /* شكل كبسولة */
  border: 1px dashed rgba(255, 217, 61, 0.7);
  color: #000000;
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.coupon-input::placeholder {
  color: #9ca3af;
  font-size: 0.75rem;
}

.coupon-input:focus {
  border-color: #ffd93d;
  background: rgba(255, 217, 61, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 217, 61, 0.35);
}

/* رسالة الكوبون */
.coupon-message {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}
.email-wrapper {
  display: flex;
  align-items: center;
  direction: ltr;
}

.email-wrapper input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.email-domain {
  background: rgba(255, 217, 61, 0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-left: none;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #ffd93d;
  white-space: nowrap;
}
.phone-wrapper {
  display: flex;
  align-items: center;
  direction: ltr;
}

.phone-prefix {
  padding: 8px 12px;
  background: rgba(255, 217, 61, 0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.95rem;
  color: #ffd93d;
  font-weight: 700;
  user-select: none;
}

.phone-wrapper input {
  flex: 1;
  border-radius: 0 8px 8px 0;
}

/* ===== فورم الدفع الثابت في الصفحة ===== */

.checkout-form-inline {
  max-width: 600px;
  margin: 24px auto 0;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  border: 1px solid rgba(255, 217, 61, 0.4);
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.policy-consent-row {
  margin-top: 14px;
  text-align: right;
}

.policy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.policy-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.policy-consent span {
  line-height: 1.6;
}

.policy-link {
  background: none;
  border: none;
  color: #ffd93d;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

/* رسالة الخطأ تحت Checkbox */
.field-error[data-for="policy_agree"] {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #fca5a5;
}

/* المودال الجديد: سياسة فقط مع سكرول داخلي بسيط */
.modal-body {
  padding: 16px;
  color: #ffffff;
  max-height: 60vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ffd93d rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffd93d, #ffc107);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(255, 217, 61, 0.7);
}


.video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: #000;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #ffd93d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

@media (max-width: 600px) {
  .problem-card,
  .content-card,
  .gift-box,
  .testimonial-card,
  .pricing-section,
  .teacher-section {
    box-shadow: none;
    animation: none;
  }

  .discount-badge {
    animation: none;
  }
}
.animate-on-scroll {
   will-change: auto;
}
@media (max-width: 600px) {
  .animate-on-scroll {
    will-change: auto;
    transform: none !important;
  }
}

@media (max-width: 600px) {
  * {
    backdrop-filter: none !important;
  }
}

/* الأقسام الثقيلة تحت الفولد */
.teacher-section,
.content-grid,
.testimonials-section,
.faq-section,
.final-cta-section {
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

/* لو خايف على الديسكتوب بس خليه للموبايل */
@media (max-width: 768px) {
  .teacher-section,
  .content-grid,
  .testimonials-section,
  .faq-section,
  .final-cta-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
  }
}
@media (max-width: 600px) {
  .video-container,
  .teacher-image,
  .pricing-section,
  .gift-box {
    box-shadow: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Video Loading Overlay ===== */
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.video-loading.hidden { display: none; }

.video-loading .spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 4px solid rgba(255, 217, 61, 0.25);
  border-top-color: #ffd93d;
  animation: spin 0.9s linear infinite;
}

.video-loading .text {
  font-weight: 700;
  color: #ffd93d;
  font-size: 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* مهم: خلي الكونتينر position relative عشان overlay يركب صح */
.video-container, #heroVideo { position: relative; }

.page-loading body { overflow: hidden; }

.page-loading .page-loader {
  position: fixed; inset: 0;
  display:flex; align-items:center; justify-content:center;
  background: #1a0f2e;
  z-index: 9999;
}

.page-loader { display:none; }
.page-loading .page-loader { display:flex; }

.support-button {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;

  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a); /* أخضر هادي */
  box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);

  transition: all 0.3s ease;
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.6);
}

.support-button:active {
  transform: scale(0.96);
}
