/* ========== override برای صفحه پرسشنامه ========== */
body {
  
  height: 100vh;
  overflow: hidden; /* جلوگیری از اسکرول */  
  font-family: 'Vazirmatn', sans-serif;
  background-color: #033649;
  display: flex;
  justify-content: center;
  align-items: center;
 
}

  

#questionnaire-form {
  width: 100%;
  max-width: 850px;
  display: flex;
  justify-content: center;
  align-items: center;

}
.questionnaire-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  background-color: rgba(255, 255, 255, 1);
  width: 800px;
  height: 500px;
  padding: 30px 50px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;  /* ✅ تمام محتوا افقی وسط */
  justify-content: center;  /*اختیاری: اگر بخوای عمودی هم وسط قرار بگیره */
  text-align: center;   /* ✅ تمام متن‌ها (مثل سوالات) وسط‌چین */
}
.container-header {
  flex-shrink: 0;
  width: 100%;
  margin-bottom:15px;
}

.question-area {
  flex: 1; /* این بخش کل فضای خالی رو می‌گیره */
  display: flex;
  padding: 10px;
  scroll-behavior: smooth;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}



.question {
  display: none;
  width: 100%;
}

.question.active {
  display: block;
}

.question p {
  text-align: right;
  font-size: 1rem;
  line-height: 2;
  color: black;
  width: 100%;
}

.question-title {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: black;
  width: 100%;
  visibility: visible;
}

.form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
  font-family: 'Vazirmatn', sans-serif;

}

.form-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #00B3B7;
  color: white;
  transition: background-color 0.2s ease;
  font-family: 'Vazirmatn', sans-serif;
}

.form-buttons button:hover {
  background-color: #033649;
}


input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 250px;
  border: 2px solid #ddd;
  color:#1f1d1d;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: 'Vazirmatn', sans-serif;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color:#00B3B7;
  outline: none;
}


input::placeholder {
  font-size: 1rem; 
  color: #999;
  text-align: center;
}

.question-centered-step{
  margin-top: 30px;
}



label {
  font-size: 1rem;
  gap: 10px; /* فاصله بین چک‌باکس و متن */
  display: flex;
  margin-bottom: 10px;
}






.required-star {
  color: #DF4854;
  margin-right: 5px;
  font-weight: bold;
}



.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  }




/* گزینه‌های رادیویی */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.radio-options label {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 8px;
  cursor: pointer;
}

/* باکس برای ورودی دلخواه */
.custom-challenge-box {
  margin-top: 10px;
  text-align: right;
}

.custom-challenge-box label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
}
.custom-challenge-box input {
  width: 100%;
  box-sizing: border-box; /* برای اینکه padding روی عرض تأثیر نذاره */
}
.signupfield {
  text-align: center;
}

.error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.required-field {
  border-color: #e74c3c !important;
}

#success-message {
  text-align: center;
  padding: 40px;
}

#success-message h3 {
  color: #033649;
  font-size: 24px;
  margin-bottom: 15px;
}

.birthdate-selects {
  display: flex;            /* افقی چیدن عناصر */
  flex-direction: row;
  gap: 15px;                /* فاصله بین selectها */
  margin-top: 15px;
  flex-wrap: wrap;          /* در موبایل بشکنه */
}

.birthdate-selects select {
  flex: 1;
  min-width: 100px;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center left 0.7em;
  background-size: 0.65em auto;
  padding-left: 2em;
}



/*step-indicator*/
.step-indicator {
  display: flex;
  justify-content: space-between;
  gap: 12px; /* فاصله بین مراحل */
  color: black;
  width: 100%;
}


.step {
  flex: 1;
  text-align: center;
  border-top: 7px solid #033649;
  padding-top: 10px;
  font-weight: bold;
    font-size: 1rem;


}
.step small {
  font-weight: normal;      /* متن زیر (small) نرمال می‌مونه */
  display: block;           /* زیر عنوان بیاد */
  font-size: 0.85em;        /* اختیاری: کوچک‌تر بشه */
  margin-top: 4px;          /* فاصله کمی با عنوان داشته باشه */
}

.step.active {
  opacity: 1;
  color: black;
  border-top: 7px solid #00B3B7;
}


.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.logo-img {
  height: 60px;  /* قابل تنظیم بر اساس نیاز */
  object-fit: contain;
}






@media screen and (max-width: 768px) {
 
  body{
   display: block;
  }
  #questionnaire-form{
  width: 95%; 
 }
 .container {
  padding: 30px 10px;
  margin-top: 80px;
 }

.step{
  font-size: 0.8rem;
}

.birthdate-selects select {
  min-width: 0px;
}

}