/**
 * أقسام إضافية - يستخدم متغيرات :root من style.css
 */

/* قسم الطلاب الراضين - Satisfied Students Section */
.satisfied-students-section {

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1.5rem;
}

.satisfied-students-container {
  background: url(/Image/3145b26fa905b68805b065d2ca82acfd.jpg) no-repeat;
  background-size: cover;
  background-position: top -350px right 0;
  margin: 0 auto;
  border-radius: 18px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(227, 175, 100, 0.25);
  z-index: 1;
  overflow: hidden;
  position: relative;
}

.satisfied-students-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1;
  opacity: 0.5;
}

.satisfied-students-title {
  color: var(--white_color);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

.satisfied-students-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.student-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white_color);
  margin-inline-start: -12px;
  background: var(--light_yellow);
}

.student-avatar:first-child {
  margin-inline-start: 0;
}

.satisfied-students-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--white_color);
  color: var(--page_yellow) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.satisfied-students-btn:hover {
  background: var(--light_yellow);
  color: var(--dark_blue) !important;
  transform: translateY(-2px);
}

/* قسم التجربة المجانية - CTA Free Trial Section */
.cta-free-trial-section {
  background-color: transparent;
  position: relative;
  width: 100%;
  z-index: 2;
}

.cta-free-trial-wrapper {
  margin: 0 auto;
  /* position: absolute; */
  top: -200px;
  right: 200px;
  background: var(--page_yellow);
  border-radius: 20px;
  border: 3px solid var(--page_yellow);
  padding: 5rem 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffffff15' d='M0 100 Q50 80 100 100 T200 100 L200 200 L0 200 Z'/%3E%3Cpath fill='%23ffffff10' d='M0 120 Q60 90 120 120 T200 120 L200 200 L0 200 Z'/%3E%3Cpath fill='%23ffffff08' d='M0 140 Q70 100 140 140 T200 140 L200 200 L0 200 Z'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--page_yellow) 0%, var(--light_yellow) 100%);
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta-free-trial-content {
  position: relative;
  z-index: 1;
}

.cta-free-trial-title {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: var(--dark_blue);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cta-free-trial-desc {
  font-size: 0.95rem;
  color: var(--dark_blue);
  opacity: 0.9;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.cta-free-trial-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-free-trial-input {
  padding: 0.7rem 1rem;
  /* border: 1px solid var(--dark_blue); */
  border-radius: var(--border_radius);
  background: var(--white_color);
  font-family: var(--primary_font);
  font-size: 0.95rem;
  min-width: 180px;
  max-width: 300px;
  transition: var(--transition);
}

.cta-free-trial-input::placeholder {
  color: var(--muted_text);
}

.cta-free-trial-input:focus {
  outline: none;
  border-color: var(--light_blue);
  box-shadow: 0 0 0 3px var(--glow_blue);
}

.cta-free-trial-btn {
  padding: 0.7rem 1.5rem;
  background: var(--dark_blue);
  color: var(--white_color) !important;
  border: none;
  border-radius: var(--border_radius);
  font-family: var(--primary_font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.cta-free-trial-btn:hover {
  background: var(--middle_blue);
  color: var(--white_color) !important;
  transform: translateY(-2px);
}

.cta-free-trial-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-free-trial-badge figure {
  width: 140px;
  overflow: hidden;
  border-radius: 15px;
  margin: 0;

}

/* @media (max-width: 991px) {
  .cta-free-trial-content {
    max-width: 100%;
  }

  .cta-free-trial-badge {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .cta-free-trial-form {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-free-trial-input {
    min-width: 100%;
  }
} */

/* قسم الاستشارة - Consultation Section */
.consultation-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  z-index: 2;
  
}
.bg_consultationsec{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: var(--dark_blue);
  z-index: 1;
}

.consultation-section::before,
.consultation-section::after{
  content: "";
  position: absolute;
  height: 100%;
  width: 50%;
  top: 0;
  bottom: 0;
  z-index: -1;
}
.consultation-section::before{
  background: var(--dark_blue);
  right: 0;
} 
.consultation-section::after{
  background: var(--surface_color);
    background: linear-gradient(135deg, rgba(255, 246, 217, 0.611) 0%, #fff 100%);

  left: 0;
} 
.consultation_section_conentForm{
  display: flex;
  align-items: stretch;
  position: relative;
}
.consultation-content::before,
.consultation-content::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  pointer-events: none;
}

.consultation-content::before {
  top: 40px;
  right: 60px;
}

.consultation-content::after {
  bottom: 50%;
  left: 0%;
  transform: translateY( 50%) rotate(45deg);
}

/* العمود الأيسر - المحتوى النصي */
.consultation-content {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--dark_blue);
}

.consultation-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white_color);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.consultation-content p {
  color: var(--white_color);
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.95;
  margin-bottom: 1rem;
}

.consultation-content p:last-of-type {
  margin-bottom: 0;
}

/* العمود الأيمن - النموذج */
.consultation-form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
}

.consultation-form-box {
  width: 100%;
  max-width: 580px;
    background: linear-gradient(135deg, rgba(255, 246, 217, 0.611) 0%, #fff 100%);
    border-radius: 20px;
    padding: 20px 30px 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--page_yellow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.consultation-form-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark_blue);
  margin-bottom: 1.5rem;
}

.consultation-form .form-group {
  margin-bottom: 1rem;
}

.consultation-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark_blue);
  margin-bottom: 0.4rem;
}

.consultation-form label .required {
  color: var(--red_color);
  margin-right: 2px;
}

.consultation-form input,
.consultation-form select,
.consultation-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border_color);
  border-radius: var(--border_radius);
  font-family: var(--primary_font);
  font-size: 0.95rem;
  background: var(--white_color);
  transition: var(--transition);
}

.consultation-form input:focus,
.consultation-form select:focus,
.consultation-form textarea:focus {
  outline: none;
  border-color: var(--light_blue);
  box-shadow: 0 0 0 3px var(--glow_blue);
}

.consultation-form textarea {
  min-height: 100px;
  resize: vertical;
}

.consultation-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.consultation-form .submit-btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--dark_blue);
  color: var(--white_color) !important;
  border: none;
  border-radius: var(--border_radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.consultation-form .submit-btn:hover {
  background: var(--middle_blue);
  color: var(--white_color) !important;
}

/* زر العودة للأعلى */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  background: var(--dark_blue);
  color: var(--page_yellow);
  border: none;
  border-radius: var(--border_radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 27, 59, 0.3);
  transition: var(--transition);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top-btn:hover {
  background: var(--middle_blue);
  color: var(--white_color);
  transform: translateY(-2px);
}

/* التجاوب */
@media (max-width: 991px) {
  .consultation_section_conentForm {
    flex-direction: column;
  }
  .consultation-section::before,
  .consultation-section::after {
    width: 100%;
    /* height: 50px; */
  }
  .consultation-section::before{
    /* top: 0;
    bottom: auto;
    height: 50%; */
    display: none;
  }
  .consultation-section::after{
    top: auto;
    bottom: 0;
    height: 100%;
  }
  .consultation-content {
    padding: 3rem 2rem;
  }
  .consultation-form-box{
    max-width: 90%;
  }
  .consultation-form-wrapper {
    padding: 2rem 1.5rem;
  }

  /*  */
}

@media (max-width: 767px) {
  .cta-free-trial-wrapper{
    padding: 2rem 1rem;
    gap: 20px;
    flex-direction: column;
    
  }
  .cta-free-trial-input{
    max-width: 100%;
    flex-grow: 1;
  }
  .cta-free-trial-badge{
    display: none;
  }
}
@media (max-width: 576px) {
  .consultation-content h2,.cta-free-trial-title{
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 500;
  }
  .satisfied-students-container {
    padding: 2rem 1.5rem;
  }
   .consultation-form-wrapper ,.consultation-content{
    padding: 1.3rem 0.8rem;
  }
  .consultation-form-box{
    max-width: 100%;
  }
  .consultation-form .form-row {
    grid-template-columns: 1fr;
  }
  .student-avatar {
    width: 48px;
    height: 48px;
  }
.consultation-form-box h3 {
  font-size: 1rem;
  font-weight: 500;
}
  

  /* .consultation-section::before {
    top: 20px;
    right: 20px;
  } */

  .consultation-form-box {
    padding: 1.5rem 1.25rem;
  }
}