@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #333;
    --secondary-color: #888;
}

/* Base Styles */
body {
    color: rgb(41, 41, 41);
    font-family: "Noto Sans Thai";
}

main {
    min-height: 100vh;
    position: relative;
    width: 100%;
}


/* Spacing */
.m20bs {margin-bottom: 20px;}
.m40bm {margin-bottom: 40px;}
.m60bl {margin-bottom: 60px;}

.m20ts {margin-top: 20px;}
.m40tm {margin-top: 40px;}
.m60tl {margin-top: 60px;}

.m20ls {margin-left: 20px;}
.m40lm {margin-left: 40px;}
.m60ll {margin-left: 60px;}

.m20rs {margin-right: 20px;}
.m40rm {margin-right: 40px;}
.m60rl {margin-right: 60px;}


/* Button 404 */

.btn404 {
    --bs-btn-padding-x: 2rem !important;
    --bs-btn-padding-y: 0.75rem !important;
}


/* Data Validation */
.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.3125rem;
}

.error {
    border-color: red !important;
}

.success {
    border-color: green !important;
}


/* Background Styles */
.surveyForm_bg {
    background-color: rgb(245, 244, 255);  
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.surveyForm_bg img {
    left: 0;
    position: absolute;
    top: 0;
}

.surveyForm_bg img:first-child {
    height: 100%;
    width: max-content;
    z-index: 10;
}

.surveyForm_bg img:last-child {
    height: 100%;
    width: 100%;
    z-index:0;
}

/* Side Styles */
.side {
    bottom: 5rem;
    left: 5rem;
    position: absolute;
}

.side h2 {
    color: rgb(255, 255, 255);
    font-size: 2.8125rem;
    font-weight: bold;
}

.side .explore {
    align-items: center;
    background-color: rgb(28, 27, 27);
    border: 0.125rem solid transparent;
    color: rgb(255, 255, 255);
    display: flex;
    font-size: 0.875rem;
    height: 4.25rem;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding: 0 1.875rem;
    text-align: start;
    text-transform: initial;
    width: 17.875rem;
}

.side .explore img {
    height: 100%;
    position: relative;
    top: 0;
    transition: 0.5s;   
    width: auto;
}

.side .explore:hover img {
    top: -0.9375rem;
}

/* Wrapper Styles */
.wrapper {
    padding: 5rem 0;
}

/* Category selection styles */
.catselection {
    font-style: initial !important;
    margin-bottom: 1.25rem;
}

/* Category selection styles */
.genderselection {
    font-style: initial !important;
    margin-bottom: 1.25rem;
}


/* Language selector styles */
.lang {
    position: absolute;
    right: 0.625rem;
    top: 0.625rem;
}

/* Survey form styles */
.surveyForm {
    background-color: rgb(255, 255, 255);
    border-radius: 1.875rem;
    box-shadow: 0px 0px 5.625rem 0px rgba(19, 19, 19, 0.11);
    display: grid;
    min-height: 18.75rem;
    overflow: hidden;
    width: 100%;
}

.surveyFormWrapper {
    height: 100%;
    padding: 4.375rem;
    position: relative;
}


/* Shape Used To Decorate The Corner */
.shape1, .shape2 {
    pointer-events: none;
    position: absolute;
}

.shape1 {
    right: 0;
    top: 0;
}

.shape2 {
    bottom: -0.9375rem;
    left: -0.9375rem;
    transform: rotate(180deg);
}

/* Language Selector Style */
.language-select {
    border: solid 0.125rem rgb(235, 233, 255) !important;
    font-family: 'Noto Sans Thai' !important;
    font-size: 0.875rem !important;
    padding: 0.25rem !important;
}

/* Form Title */
.mainHeading {
    font-size: 1.75rem;
    font-weight: bold;
}

/* Block Choose Category */
.catSelect {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 0.9375rem;
    width: 100%;
}

.catSelect i {
    background-color: rgb(255, 255, 255);
    border: solid 0.1875rem rgb(235, 233, 255);
    border-radius: 0.3125rem;
    color: rgb(169, 169, 169);
    cursor: pointer;
    display: grid;
    font-size: 0.875rem;
    height: 3.75rem;
    place-content: center;
    width: 30%;
}

.catSelect i.active, .catSelect i.activehover {
    border-color: green;
    color: green;
}

.catSelect span {
    color: rgb(75, 75, 75);
    display: block;
    font-size: 0.875rem;
    margin-top: 0.625rem;
}



/* Block Choose a Gender */
.genderSelect {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 0.9375rem;
    width: 100%;
}

.genderSelect i {
    background-color: rgb(255, 255, 255);
    border: solid 0.1875rem rgb(235, 233, 255);
    border-radius: 0.3125rem;
    color: rgb(169, 169, 169);
    cursor: pointer;
    display: grid;
    font-size: 0.875rem;
    height: 3.75rem;
    place-content: center;
    width: 30%;
}

.genderSelect i.active, .genderSelect i.activehover {
    border-color: green;
    color: green;
}

.genderSelect span {
    color: rgb(75, 75, 75);
    display: block;
    font-size: 0.875rem;
    margin-top: 0.625rem;
}



/* Input Field Style */
.inputField {
    margin-bottom: 1.875rem;
}

.inputField .labelTxt, .inputField label {
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    width: 100%;
}

.inputField label a {
    color: inherit;
}

.inputField .textField {
    background-color: rgb(255, 255, 255);
    border: solid 0.1875rem rgb(235, 233, 255);
    border-radius: 0.3125rem;
    height: 3.75rem;
    margin-top: 0.625rem;
    padding-left: 1.25rem;
    width: 100%;
}

::placeholder {
    color: rgb(169, 169, 169);
    font-size: 0.875rem;
}


/* Custom CSS for the Phone Field */
.iti {
    display: block !important;
    margin-top: 0.625rem;
}

.phoneInput {
    position: relative; /* Position the error message relative to the input field */
}

.phoneInput .error-message {
    color: red;
    font-size: 0.875rem;
    left: 0;
    margin-top: 0.3125rem; /* Add some margin for spacing */
    position: absolute;
    top: 100%; /* Position the error message below the input field */
}

/* Radio Button Terms and Conditions Style */
.radioField {
    align-items: center;
    display: flex;
    height: auto;
    margin-top: 0.625rem;
    width: auto;
}

.radioField input {
    -webkit-appearance: none;
    background-color: rgb(255, 255, 255);
    border: solid 0.1875rem rgb(235, 233, 255);
    border-radius: 50%;
    cursor: pointer;
    height: 2.0625rem;
    margin-right: 0.625rem;
    min-width: 2.0625rem;
    position: relative;
}

.radioField input::before {
    background-color: green;
    border-radius: 50%;
    content: "";
    display: none;
    height: 1.0625rem;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1.0625rem;
}

.radioField input:checked::before {
    display: block;
}

textarea {
    height: 6.25rem !important;
    padding: 1.25rem;
    resize: none;
}

.formTxt {
    color: rgb(129, 129, 129);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}


/* Submit Button Style */
#sub {
    background-color: rgb(0, 0, 0);
    border: solid 0.125rem transparent;
    color: rgb(255, 255, 255);
    font-size: 1rem;
    font-weight: bold;
    height: 3.8125rem;
    position: relative;
    width: 100%;
    z-index: 10;
}

#sub i {
    color: rgb(250, 0, 0);
    font-size: 0.9375rem;
    margin: 0 0.625rem;
    opacity: 0;
    position: absolute;
    right: 35%;
    top: 53%;
    transform: translate(-50%, -50%);
    transition: 0.4s;
}

#sub:hover i {
    opacity: 1;
    right: 28%;
}


/* Thank you Page Styles */
.thankyouPage {
    align-content: center;
    background-image: url(../images/thankyou/tyBG.jpg);
    background-size: cover;
    display: grid;
}

.checked {
    margin-bottom: 1.25rem;
}

.thankyoutext {
    color: rgb(0, 0, 0);
    font-size: 3.4375rem;
    font-weight: bold;
    text-align: center;
}

.thankyouBtn {
    background-color: rgb(28, 27, 27);
    border: solid 0.125rem transparent;
    border-radius: 0.625rem;
    color: rgb(255, 255, 255);
    font-size: 0.875rem;
    height: 4.25rem;
    margin-top: 3.125rem;
    text-transform: uppercase;
    width: 17.875rem;
}


.timer {
     font-weight: 600;
     color: red;
}
