/* Define custom font */
@font-face {
  font-family: "FrutigerLTArabic65Bold";
  src: url("fonts/FrutigerLTArabic65Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
}
* {
  box-sizing: border-box;
}

.swiper {
  width: 100%;
  height: fit-content;
  min-height: 260px;
  display: flex;
  align-items: center;
}

/* Apply custom font to buttons and inputs */
button,
input {
  font-family: "FrutigerLTArabic65Bold" !important;
}

/* General container styles */
#qcc {
  padding: 0px 0px;
  max-width: 1205px;
  margin: 0 auto;
  height: auto;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.home-bg {
  background-image: url("../assets/images/cover.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#qc {
  font-family: "FrutigerLTArabic65Bold";
  direction: rtl;
  text-align: right;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 300px;
  background-color: #e9e9e9;
}
#error-message,
#error-message-two {
  font-size: 13px;
  color: #f30f0f;
  background-color: #fff;
  display: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: 0.4s all;
}
#questions {
  width: 100%;
  height: 95%;
  background-color: #e9e9e9;
  margin: 10px;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
  padding-right: 20px;
  min-height: 275px;
}

/* Question styles */
.question {
  margin-bottom: 20px;
  min-width: 75%;
  max-width: 76%;
}

.question p {
  text-align: center;
  color: #111;
  font-size: 20px;
}

/* Result styles */
.result {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0px 15px;
  gap: 15px;
}

.result-txt {
  color: #111;
  font-size: 20px;
  text-align: start;
}

.result-img {
  width: 1100px !important;
  margin: 0 auto !important;
  display: inline-block;
}

/* Advice image styles */
.advice-img {
  width: 100%;
  min-width: 300px;
}

/* Banner styles */
#home-banner {
  width: fit-content;
  display: flex;
  flex-direction: column;
  position: absolute;
  right: 358px;
  bottom: 33px;
}

#banner-img {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 300px;
}

/* Start button styles */
#next-button {
  width: 150px;
  height: 45px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.start-button-wrapper {
  padding: 2px;
  width: 315px;
}
#start-btn {
  background-color: rgba(255, 0, 0, 0);
  width: 100%;
  height: 60px;
  border: none;
  cursor: pointer;
}

/* Options container styles */
#optionsC,
.optionsC {
  margin-top: 44px;
  font-size: 18px;
  line-height: 36px;
  letter-spacing: 1.4px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 120px;
  row-gap: 35px;
  text-align: center;
  align-items: baseline;
}

/* User info styles */
#userInfo,
.userInfo {
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 14px 68px;
  min-height: 280px;
}

.userInfo .input-section {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
  margin-top: 15px;
  font-size: 18px;
  line-height: 36px;
  letter-spacing: 1.4px;
  display: grid;
  row-gap: 20px;
}

#userInfo .input-section {
  grid-template-columns: repeat(1, 1fr);
}

#section-c .input-section {
  grid-template-columns: repeat(3, 1fr);
}

/* Quiz-style layout for questions 4, 5, and 6 */
#section-b .input-section,
#section-b2 .input-section,
#section-c .input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#section-b label[for="has_allergies"],
#section-b2 label[for="is_asthma_allergy"],
#section-c label {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
  display: block;
}

.radio-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.radio-options label {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.radio-options label:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.radio-options input[type="radio"] {
  margin-right: 8px;
}

.info-text {
  color: #fff;
  font-size: 16px;
  margin: 10px auto 20px;
  max-width: 80%;
  line-height: 1.5;
  opacity: 0.9;
}

.row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: space-between;
}

.row > div {
  flex: 1;
}

#userInfo label,
.userInfo label {
  font-size: 18px;
  color: #111;
}

#userInfo label[for="education"]::after {
  content: " (اختياري)";
  font-size: 14px;
  color: #777;
}

.userInfo input[type="text"],
.userInfo input[type="number"],
.userInfo select {
  width: 100%;
  padding: 8px;
  height: 44px;
  font-size: 100%;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 10px;
  font-family: "FrutigerLTArabic65Bold";
}

#userInfo button,
.userInfo button {
  padding: 10px 50px;
  background-color: #4dbea6;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  font-size: 18px;
  transition: 0.3s;
}

#chooseTest > div > div > label {
  color: #fff;
}

#userInfo button:hover,
.userInfo button:hover {
  background-color: #46a7b4;
}

/* Title styles */
.title {
  color: #fff;
  font-size: 32px;
  display: flex;
  flex-direction: column;
  margin: 0px;
}

.result {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: start;
}

.tip {
  color: #fff;
  margin: auto;
  padding-top: 25px;
}
.tip h2 {
  font-size: 24px;
  color: #fff;
  margin: 0px;
}

.tip p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 0px;
}

.tip ol,
.tip ul {
  margin: 0;
  padding-left: 20px;
  margin-bottom: 25px;
}

.tip li {
  margin-bottom: 10px;
  font-size: 18px;
}

.primary {
  background-color: #e9e9e9 !important;
}

.bg {
  background-color: #e9e9e9 !important;
}

.next-button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.next-button:hover {
  background-color: #0056b3;
}

.mini-note {
  font-size: 16px;
  font-weight: 300;
  margin-top: -25px;
  color: #777;
  margin-bottom: -10px;
}

/* Media queries for responsiveness */
@media only screen and (max-width: 600px) {
  #qcc {
    padding: 0px 5px;
    min-height: 450px;
  }
  #qc {
    background-position: center;
    min-height: 448px;
  }
  .home-bg {
    background-image: url("../assets/images/cover-m.webp");
  }

  .bg-pattren-top-left {
    width: 227px;
    height: 111px;
  }
  .bg-pattren-bottom-right {
    width: 227px;
    height: 111px;
  }
  .title {
    font-size: 20px;
  }
  /* #optionsC {
    grid-template-columns: 1fr; 
    column-gap: 0;
    row-gap: 14px; 
    margin-top: 16px;
    text-align: start;
  } */

  .question {
    min-width: none;
    max-width: none;
    width: 100%;
  }
  .question p {
    text-align: start;
  }
  #optionsC > label {
    margin-bottom: 8px;
  }

  #userInfo .input-section,
  .userInfo .input-section {
    grid-template-columns: 1fr; /* Stack items in a single column */
    column-gap: 0; /* Remove column gap */
    margin: 0px;
    row-gap: 10px; /* Adjust row gap as needed */
  }

  #userInfo button,
  .userInfo button {
    margin: 10px auto !important;
  }

  #home-banner {
    position: absolute;
    right: 12px;
    top: 228px;
  }

  .row {
    flex-direction: column;
    gap: 0;
  }

  .radio-options {
    flex-direction: column;
    gap: 0px;
  }

  #optionsC {
    row-gap: 20px;
  }

  #banner-img {
    width: 200px;
    bottom: 0;
  }

  #section-c .input-section {
    grid-template-columns: repeat(1, 1fr);
  }

  #titlesC {
    top: -40px;
  }

  .advice-img {
    width: 100%;
  }

  #title2 {
    font-size: 25px;
  }

  #title1 {
    font-size: 22px;
  }

  .result {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    text-align: center;
    margin: auto 0px;
    gap: 2px;
  }
  .swiper-slide {
    margin: auto;
  }
  .result-txt {
    margin: 0px !important;
    font-size: 18px;
    text-align: center !important;
  }

  #userInfo,
  .userInfo {
    padding: 14px 40px;
  }

  .tip {
    padding-top: 5px;
  }
  .tip li {
    font-size: 13px;
  }
  .tip h2 {
    font-size: 14px;
  }
  .tip p {
    font-size: 13px;
  }
  #questions {
    min-height: 350px;
  }

  .result-img {
    width: 100% !important;
  }
  .start-button-wrapper {
    padding: 2px;

    width: 235px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    top: var(--swiper-navigation-top-offset, 84%);
  }
  #userInfo {
    height: 480px;
  }
  #chooseTest {
    height: 480px;
  }
  .no-bg {
    background-color: transparent !important;
  }
  #questions {
    min-height: 480px;
  }
  #questions > div > p {
    margin-bottom: 40px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
  #playerIntro {
    min-height: 480px;
  }
  .optionsC {
    grid-template-columns: repeat(1, 1fr);
  }
  #optionsC {
    display: flex;
    justify-content: space-around;
    margin-top: 55px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.option-wrapper {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: right;
}

/* For multi-choice questions: align items to the right */
.option-wrapper.multi-wrapper {
  align-items: flex-start;
}

/* For other (single-choice) questions: center align items */
.option-wrapper.single-wrapper {
  align-items: center;
}

@media (max-width: 500px) {
  .option-wrapper.single-wrapper {
    align-items: flex-start;
  }
}

@media (min-width: 500px) {
  .input-answer {
    margin-right: 110px;
  }
}

.button-wrapper {
  text-align: center;
}

.next-button {
  padding: 10px 30px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

.next-button:hover {
  background-color: #0056b3;
}

input[type="checkbox"],
input[type="radio"] {
  margin-left: 10px;
}

input {
  border-radius: 8px;
  outline: none;
  border: 2px solid #331459;
}

.question-label {
  margin-bottom: 15px;
  text-align: center;
}

.question-label span {
  background-color: #f0f8ff;
  color: #007bff;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  display: inline-block;
  border: 1px solid #cce5ff;
}
