
#slides {
     width: 350px;
    position: absolute;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}


#slide{
  display: none;
  transition: 1s ease-in-out;
  transform: translateX(0);
  opacity: 0;
  position: absolute;
  top: 0;
  left: -100%;
  width: 350px;

}


#slide.active {
  opacity: 1;
  transform: translateX(-50%);
  left: 50%;
  width: 350px;
}

h1 {
    text-align: right;
    direction: rtl;
    font-family: "Vazirmatn";
    font-weight: bold;
    margin-top:100px;
    margin-right: 20px;
    font-size: 30px;
    color: #333645;
}
center{
    width: 100%;
}




#inl{
    display: flex;
    flex-direction:row;
    justify-content: center;
    width: calc( 100% -10px);
    padding-right: 5px;
    padding-left: 5px;

}

#inl spc{
    width: 5%;
}

#inl label{
    width: 100%;
    text-align: right;
    align-self: flex-end;
    margin-right: 20px;
    font-family: "Vazirmatn";
    font-weight:normal;
    color: #333645;
    opacity: 80%;
    margin-top: 20px;
}

#inl input{
    height: 46px;
    width: calc(100% - 20px);
    border-radius: 20px;
    border: none;
    background-color: #F9FCFF;
    direction: rtl;
    padding-right: 20px;
    font-family: "Vazirmatn";
    font-weight:normal;
    outline: none;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

}

#inl #box {
    display: flex;
    flex-direction: column;
}

#inl input:focus{
    outline: #333645 1px solid;

}


#blk{
    width: 100%;
    /* margin-top: 60px; */
    display: flex;
    align-items: center;
    flex-direction: column;
}

#blk button:not(#opt):not(#options):not(.modal-overlay button){
    transition: .3s;
    border: 0;
    border-radius: 20px;
    min-width: 330px;
    min-height: 46px;
    display: block;
    font-family: "Vazirmatn";
    font-weight: bold;
    font-size: 15px;
    color: #333645;
    background-color: #DFDFDF;
    margin-bottom: 10px;
}

#blk label:not(.custom-checkbox-container){
    width: 100%;
    text-align: right;
    align-self: flex-end;
    margin-right: 20px;
    font-family: "Vazirmatn";
    font-weight:normal;
    color: #333645;
    opacity: 80%;
    margin-top: 20px;
}

#blk input:not(.custom-checkbox-container .checkbox){
    height: 46px;
    width: 310px;
    border-radius: 20px;
    border: none;
    background-color: #F9FCFF;
    direction: rtl;
    padding-right: 20px;
    font-family: "Vazirmatn";
    font-weight:normal;
    outline: none;    
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

#blk input:focus{
    outline: #333645 1px solid;

}

#blk select:not(.custom-checkbox-container .checkbox){
    height: 46px;
    width: 340px;
    border-radius: 20px;
    border: none;
    background-color: #F9FCFF;
    direction: rtl;
    padding-right: 20px;
    font-family: "Vazirmatn";
    font-weight:normal;
    outline: none;    
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

#blk select:focus{
    outline: #333645 1px solid;

}

#opt{
    height: 46px;
    width: 340px;
    border-radius: 20px;
    border: none;
    background-color: #F9FCFF;
    color: #333645cc;
    direction: rtl;
    font-family: "Vazirmatn";
    font-weight:normal;
    outline: none;    
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

}

#optionbar {
    background-color: #FFFFFF;
    width: 330px;
    height: auto;
    padding-top: 20px;
    direction: rtl;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 0 50px #3336450e ;
    transition: 0.5s;
    display: none;
}
#optionbar P{
    width: 100%;
    text-align: center;
    font-size: 10px;
    direction: rtl;
    font-family: "Vazirmatn";
    font-weight:normal;
    color: #333645c2;
}

#optionbar div{
    direction: rtl;
    padding: 20px;
}

#optionbar #options{

    width: auto;
    padding: 15px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    background-color: #ebebeb;
    color: #333645;
    font-family: "Vazirmatn";
    font-weight:normal;
    border-radius: 20px;
    border: none;
    transition: .5s;
    
}

#optionbar #options.active{
    background-color: #4EB1EA;
    color: #FFFFFF;
    
}

#optionbar #closebar{
    border: 0;
    margin-top: 50px;
    margin-bottom: 20px;
    margin-right: 20px;
    padding: 10px;
    border-radius: 5px;
    font-family: "Vazirmatn";
    font-weight:normal;
    background-color: #4EB1EA;
    color: #FFFFFF;
}







.grade-selector {
    position: relative;
    width: 100%;
    font-family: "Vazirmatn";
  }
  
  .grade-selector input {
    height: 46px;
    width: 100%;
    border-radius: 20px;
    border: none;
    background-color: #F9FCFF;
    direction: rtl;
    padding-right: 20px;
    /* margin-top: 10px; */
    font-family: "Vazirmatn";
    color: #333645;
    cursor: pointer;
  }
  
  .grade-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
    direction: rtl;
  }
  
  .grade-options div {
    padding: 10px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .grade-options div:hover {
    background-color: #f0f0f0;
  }
  
  #end_description{
    font-family: "Vazirmatn";
    font-weight:normal;
    direction: rtl;
    width: 100%;
    text-align: right;
    max-height: 25vh;
    overflow:auto;
  }

/* کلاس اصلی شما */
.space_scroll {
  font-family: "Vazirmatn";
  max-height: 35vh;
  overflow: auto;
  /* استایل برای فایرفاکس */
  scrollbar-width: thin;
  scrollbar-color: #90a4ae #eceff1;
  padding-right: 5px;
  
  padding-top: 25px;
  padding-bottom: 25px;


  -webkit-mask-image: linear-gradient(
                to bottom,
                transparent 0%,
                black 15%,
                black 85%,
                transparent 100%
  );
  mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
  );
}

/* --- استایل برای مرورگرهای WebKit (کروم، اج، سافاری) --- */

/* استایل کلی نوار اسکرول */
.space_scroll::-webkit-scrollbar {
  width: 5px; /* عرض اسکرول‌بار در حالت عادی (بسیار نازک) */
  transition: all 0.3s ease; /* انیمیشن برای تغییرات */
}

/* وقتی ماوس روی کل محتوا قرار می‌گیرد، اسکرول‌بار پهن‌تر می‌شود */
.space_scroll:hover::-webkit-scrollbar {
  width: 12px; /* عرض اسکرول‌بار در حالت هاور */
}

/* ترک (مسیری که اسکرول در آن حرکت می‌کند) */
.space_scroll::-webkit-scrollbar-track {
  background-color: #eceff1; /* یک رنگ خنثی و روشن */
  border-radius: 10px;
}

/* دستگیره اسکرول */
.space_scroll::-webkit-scrollbar-thumb {
  background-color: #b0bec5; /* رنگ دستگیره در حالت عادی (کمرنگ) */
  border-radius: 10px;
  border: 2px solid #eceff1; /* یک حاشیه همرنگ با ترک برای ایجاد حس نازکی */
  transition: all 0.3s ease; /* انیمیشن برای تغییرات رنگ و اندازه */
}

/* وقتی ماوس روی کل محتوا می‌رود، دستگیره واضح‌تر می‌شود */
.space_scroll:hover::-webkit-scrollbar-thumb {
  background-color: #78909c; /* رنگ تیره‌تر برای وضوح بیشتر */
}

/* وقتی ماوس مستقیما روی خود دستگیره می‌رود */
.space_scroll::-webkit-scrollbar-thumb:hover {
  background-color: #546e7a; /* تیره‌ترین حالت برای تاکید */
}
  
  #info{
    height: 30px;
    font-family: "Vazirmatn";
    font-weight:normal;
    display: flex;
    direction: rtl;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%,0);
    z-index: 20;
  }

  #info label{
    justify-self: center;
    margin-right: 5px;
    font-size: smaller;
  }
  #info img{
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
  }


#backbtn {
    position: absolute;
    width: 30px;
    top: 70px;
    left: 50%;
    transform: translate(calc(-50% - 150px),0);
    height: 30px;
    display: none;
    z-index: 10;

}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translate(0,100%);
    transition: .5s ease-in-out;

  }

  .modal {
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 50px #3336450e ;
    direction: rtl;
    font-family: "Vazirmatn";
    font-weight:normal;
    position: absolute;
    bottom: 0;
    min-height: 300px;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .modal-header h2 {
    margin: 0;
  }

  .close-btn {
    cursor: pointer;
    border: 0;
    padding: 10px;
    border-radius: 5px;
    font-family: "Vazirmatn";
    font-weight:normal;
    background-color: #4EB1EA;
    color: #FFFFFF;
  }

  .day-type-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
  }

  .day-type-selector button {
    padding: 8px 16px;
    border-radius: 10px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: "Vazirmatn";
    font-weight:normal;
  }

  .day-type-selector button.active {
    background-color: #4EB1EA;
    color: white;
  }

  .days-info {
    font-size: 14px;
    margin-bottom: 10px;
    color: #666;
  }

  .timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .time-slot {
    background: #eee;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
  }

  .time-slot.selected {
    background-color: #4EB1EA;
    color: white;
  }

  /* دکمه باز کردن دیالوگ */
  .open-modal {
    padding: 10px 20px;
    background-color: #4EB1EA;
    color: #333645;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 330px !important;
    height: 48px;
  }





.custom-checkbox-container {
    display: inline-block;
    position: relative;
    padding-right: 35px; /* فضای لازم برای چک باکس سفارشی */
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: "Vazirmatn";
    font-weight:bold;
    font-size: 15px;
    color: #333645;
    align-self: flex-end;
    gap: 10px; /* فاصله بین چک‌مارک و متن */

  }

/* مخفی کردن چک باکس پیش‌فرض مرورگر */
.custom-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* ایجاد چک باکس سفارشی (علامت تیک) */
.checkmark {
    position: absolute;
    top: 0;
    right: 0;
    height: 25px;
    width: 25px;
    background-color: #dfdfdf;
    border-radius: 5px; /* گوشه‌های گرد */
    transition: background-color 0.3s ease, transform 0.3s ease; /* انیمیشن تغییر رنگ و اندازه */
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}
/* تغییر رنگ چک باکس سفارشی هنگام هاور */


@keyframes pulse {
  0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
  }
  70% {
      transform: scale(1.1);
      box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
  }
  100% {
      transform: scale(1.1);
      box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
  }
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.question-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  align-items: center;
  direction: rtl;
  font-family: "Vazirmatn";

}

.question-text {
  text-align: right;
  font-weight: bold;
  font-size: 15px;
}

.custom-checkbox-container {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* چک‌مارک و حالت‌هاش مثل قبل */
.checkmark {
  width: 20px;
  height: 20px;
  background-color: #dfdfdf;
  border-radius: 4px;
  display: inline-block;
  position: relative;
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + span.checkmark {
  background-color: #4EB1EA;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

input[type="radio"]:checked + .checkmark::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.emoji_space{
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  width: 100%;  
  margin-top: 20vh;
}

.final_des{
  direction:rtl;
  text-align: center;
  font-family: 'Vazirmatn';
  font-size: large;
  font-weight: bold;
}

  .highlight {
    display: inline-block;
    background-color: #4eb1ea74;
    padding: 3px;
    border-bottom: 2px #2f72997b solid ;
    border-radius: 4px;
  }