#qtn_modal{
    padding-top:50px!important;
}

#qtn_modal .qtn_social{
    /*display: flex;*/
    vertical-align: middle;
    /*height: 52px;*/
    margin-bottom: 1rem;
    border: 1px solid #333;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0.5rem;
}

#qtn_modal .modal-content{
    /*background-color: #2f79bf;*/
}

#qtn_modal .modal-content h3{
    text-align: center;
    font-size: 1.5vw;
    color:#0055a4;
    font-weight: 600;
    margin-top: 1.3rem;
}

#qtn_modal .modal-content .strong{
    font-weight: 600;
    color:#000;
}

#qtn_modal .qtn_social span, #qtn_modal .qtn_social i{
    margin-right:5px;
    line-height: 32px;
    font-size: 1rem;
}

#qtn_modal .qtn_social i img{
    width: 1.5vw;
}

.qtn_slogan{
    font-size: 1.25rem;
    font-weight: 600;
    color:#ea1411;
}

/*#questionaire input[type=text], #questionaire input[type=number], #questionaire input[type=date], #questionaire input[type=submit], #questionaire select{
  width:100%!important;
}

#questionaire label{
  display:block;
  font-weight: 300;
}

#questionaire .choice{
  margin-left:15px;
}

#questionaire hr{
  background: #fff;
}

#questionaire input[disabled]{
  background: #aaa;
}*/

#questionaire .error{
  color:crimson;
}

#questionaire {
  max-width: 700px;
  margin: auto;
  background: #10375b61;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size:1.5em;
  color:#efdf16;
}

.fancy-text{
    text-align: center;
  font-size: 5rem;
  font-weight: 900;
  /*background: linear-gradient(135deg, #00f0ff, #9a00ff, #ff007a);*/
  background: linear-gradient(135deg, #ea1411, #dc400b, #ff007a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  -webkit-text-stroke: 3px #ffffff;
  text-stroke: 3px #ffffff;

  /*text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(148, 0, 211, 0.5),
    0 0 40px rgba(0, 255, 255, 0.4);*/
    
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px #f30b03, 0 0 40px #50485b;
    padding: 20px;
}

.choice label{
    display: flex;
    align-items: center;
}

.navigation{
    display: block;
}

#prev-btn:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.6;
  border: 1px solid #999;
}

#prev-btn, #next-btn, #questionaire #qtn_submit{
    border-radius: 0.5rem;
    background-color:#000;
}

#next-btn, #questionaire #qtn_submit{
    margin-left:1rem;
    display: inline-block;
}

#questionaire #qtn_submit{
    background-color:#21a711;
}

.q_title{
    font-size:1.1em;
    /*color: #2c3e50;*/
    color:#f90;
    font-weight: 500;
    margin-bottom:1rem;
}

.option {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  position: relative;
}

.option input[type="checkbox"] {
  opacity: 0;
  position: absolute;
}

.custom-checkbox {
  height: 22px;
  width: 22px;
  border-radius: 6px;
  background: #fff;
  border: 2px solid #7f8c8d;
  display: inline-block;
  margin-right: 15px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.option input[type="checkbox"]:checked + .custom-checkbox {
  background-color: #3498db;
  border-color: #3498db;
}

.custom-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option input[type="checkbox"]:checked + .custom-checkbox::after {
  opacity: 1;
}

.label-text {
  font-size: 16px;
  line-height: 1.5;
  cursor: pointer;
}

#questionaire hr{
    background-color: #666;
}

/*#questionaire #qtn_submit{
    display:block;
    position: relative;
    padding:1em;
    font-size:1em;
    font-weight: 500;
    color:#fff;
    background-color:#ff0000;
    border-radius: 50px;
    transition: all .2s linear;
    z-index: 1;
    overflow: hidden;
    margin: 0 auto;
    width: 50%;
}*/

#questionaire #qtn_submit:hover{
    color:#fff;
}

#questionaire #qtn_submit::after{
    z-index: -1;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.8em;
    height: 1.4em;
    border-radius: 50%;
    background-color: #a92035;
    transform-origin: center;
    transform: translate3d(-50%, -50%, 0) scale(0, 0);
    transition: transform 0.45s ease-in-out;
}

#questionaire #qtn_submit:hover::after {
    color:#fff;
    transform: translate3d(-50%, -50%, 0) scale(15, 15);
}




.result-box{
 display: flex;
 justify-content: left;
 margin-bottom: 1rem;
 align-items: center;
}

.result-box .qtn-img{
    margin: auto;
    /*width: 14rem;*/
    width:55%;
    padding-right: 1rem;
}
.result-box .qtn-progress{
    width:45%;
}



.single-progressbar .title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom:0px;
    color:#000;
}

.single-progressbar {
    /*margin-bottom: 20px;*/
}

.single-progressbar:first-child {
    /*margin-top: 30px;*/
}

.single-progressbar .proggress{
    height: 0.4rem!important;
}

.single-progressbar .progressbar{
    margin-bottom: 1rem!important;
}

.single-progressbar:last-child .progressbar{
    margin-bottom: 0rem!important;
}

.single-progressbar .percentCount{
    margin-top: -2.1rem!important;
    font-size: 0.85rem;
}

.card {
    margin-bottom: 30px;
}

.card .card-header .title {
    font-size: 18px;
    font-weight: 600;
    padding: 0;
}

.card .card-body code {
    background-color: #efecec;
    padding: 10px;
    border-radius: 3px;
}

.header .title {
    font-size: 50px;
    font-weight: 600;
}

.header {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.header .title::first-letter {
    color: #fc4444;
}

.margin-top-60 {
    margin-top: 60px;
}

ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-top: 40px;
}

ul.menu li {
    display: inline-block;
}

ul.menu li a {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    transition: all 500ms;
    text-decoration: none;
}

ul.menu li a:hover {
    color: #fc4444;
}

ul.menu li+li {
    margin-left: 25px;
}

#qtn_modal .modal-dialog{
    max-width:50%;
}

.qtn-result{
    display: flex;
}

.qtn-box1{
    width: 60%;
    padding:1rem;
}

.qtn-box2{
    width: 40%;
    padding:1rem;
    font-size: 0.85vw;
}

.q_title {
  /*font-size: 18px;
  margin-bottom: 10px;*/
}

.choice {
  margin-bottom: 10px;
}

#questionaire .q_block {
  display: none; /* ซ่อนทุกคำถามเริ่มต้น */
}

#questionaire .q_block.active {
  display: block; /* แสดงคำถามที่ active */
}

button.next-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

button.next-btn:hover {
  background-color: #45a049;
}

button.submit-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

button.submit-btn:hover {
  background-color: #0056b3;
}


.fancy-text {
    text-align: center;
    font-size: 4em;
    font-weight: 900;
    /* background: linear-gradient(135deg, #00f0ff, #9a00ff, #ff007a); */
    background: linear-gradient(135deg, #ea1411, #dc400b, #ff007a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px #ffffff;
    text-stroke: 3px #ffffff;
    /* text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px rgba(148, 0, 211, 0.5), 0 0 40px rgba(0, 255, 255, 0.4); */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3), 0 0 20px #f30b03, 0 0 40px #50485b;
    padding: 20px;
}

#qtn_modal{
    padding-top:.1rem!important;
}


.modal-body {
    padding: .2rem!important;
    font-size: .15rem!important;
}

.single-progressbar .progressbar {
    margin-bottom: .12rem !important;
}

.qtn-box1 {
    padding: .1rem!important;
}

.qtn-box2 {
    padding: .2rem!important;
    font-size: 0.17rem!important;
}

.result-box {
    margin-bottom: .2rem!important;
}

.result-box .qtn-img {
    padding-right: .15rem!important;
}

#qtn_modal .modal-content h3 {
    text-align: center;
    font-size: .4rem!important;
    margin-top: .2rem!important;
}

.qtn_slogan {
    font-size: .25rem!important;
}

.single-progressbar .title {
    font-size: .15rem!important;
}
.single-progressbar .percentCount {
    margin-top: -.40rem !important;
    font-size: 0.15rem!important;
}

#qtn_modal .qtn_social i img {
    width: .32rem!important;
}

#qtn_modal .qtn_social {
    margin-bottom: .2rem!important;
    padding: 0.2rem!important;
    border-radius: 0.2rem!important;
}

.single-progressbar .proggress {
    height: 0.1rem !important;
}

#qtn_modal .qtn_social span, #qtn_modal .qtn_social i{
    margin-right:.08rem;
    line-height: .1rem;
    font-size: .15rem;
}

@media (max-width: 1000px) {
    #qtn_modal .modal-dialog {
        max-width: 95%;
        margin: 0 auto;
    }
    
    #questionaire {
        font-size: .25rem !important;
    }
    
    .qtn-result {
        display: block;
    }
    
    .qtn-box1, .qtn-box2{
        width:100%;
    }
    
    .qtn-box2 {
        font-size: 0.25rem !important;
    }
    
    .qtn_slogan {
        font-size: .45rem !important;
    }
    
    .q_title {
        font-size: .27rem !important;
    }
    
    #qtn_modal .qtn_social i img {
        width: .5rem !important;
    }
}