/* #psy-test-form {
    max-width: 700px;
    margin: auto;
} */

.psy-question {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

.psy-type {
    margin-top: 30px;
    font-size: 20px;
}

button {
    padding: 10px 20px;
    margin-top: 20px;
}

.success {
    color: green;
    font-weight: bold;
}

#psy-message .success {
    color: green;
    font-weight: bold;
    padding: 15px;
    background: #00800042;
    margin-top: 8px;
    border-radius: 8px;
}
#psy-message .error {
    color: red;
    font-weight: bold;
    padding: 15px;
    background: #ff000052;
    margin-top: 8px;
    border-radius: 8px;
}
 /* .psy-option {
    display: flex;
    align-items: left;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 15px;
}

.psy-option input {
    display: none;
}

.psy-box {
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 4px; 
    margin-right: 10px;
    position: relative;
}

.psy-option input:checked + .psy-box::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 8px;
    height: 8px;
    background: #333;
}  */
/* WRAPPER */
.psy-form-wrapper {
    max-width: 100%;
    margin: 10px;
    font-family: Poppins, sans-serif;
    color: #0b2545;
}

/* TITLE */
.psy-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 0;
    color: #0b2545;
    padding-left: 30px;
}

/* TOP SECTION */
.psy-top-section {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.psy-image img {
    width: 500px;
    border-radius: 6px;
}

/* BASIC FORM */
/* .psy-basic-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.psy-basic-form input,
.psy-basic-form select {
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 13px;
} */

/* START BUTTON */
.psy-start-btn {
    grid-column: span 2;
    background: #0b2545;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* INSTRUCTION BAR */
.psy-instruction {
    /* background: linear-gradient(90deg,#e53935,#8e24aa,#0d2c54); */
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin: 25px 0;
    font-size: 14px;
    background: linear-gradient(93deg,#F82C44 0%,#F82C44 15%,#04244C 100%
);
}

/* NOTE BAR */
.psy-note {
    /* background: linear-gradient(90deg,#ff3b4d,#7b2c6f,#0b2a4a); */
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    margin: 30px 0 15px;
    font-size: 14px;
    background: linear-gradient(93deg,#F82C44 0%,#F82C44 15%,#04244C 100%
);
}
.psy-image {
    padding: 30px;
}

/* QUESTIONS */
/* .psy-question {
    margin-bottom: 25px;
} */
form#psy-test-form * {
    font-family: 'Poppins', sans-serif;
}
.psy-basic-question label {
    line-height: 2em;
}
.psy-question-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.ans-div {
    display: flex;
    gap: 2px;
    align-items: center;
}
/* LIKERT SCALE */
/* .psy-likert {
    margin-bottom: 25px;
} */

.psy-likert p {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.psy-likert label {
    display: inline-block;
    margin-right: 25px;
    font-size: 13px;
}

/* SUBMIT */
.psy-submit-btn {
    background: #0b2545;
    color: #fff;
    padding: 12px 30px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-left: 30px;
}

#psy-dob:required:invalid::before {
    content: "Date OF Birth";
    color: #999;
    position: absolute;
}

#psy-dob:focus::before,
#psy-dob:valid::before {
    display: none;
}
/* Hide date format text */
input[type="date"]::-webkit-datetime-edit {
    color: transparent;
}

/* Show typed date normally */
input[type="date"]:focus::-webkit-datetime-edit,
input[type="date"]:valid::-webkit-datetime-edit {
    color: #000;
}

a#psy-pdf-link {
    text-decoration:none!important;
    background: #ed2226;
    color: #fff;
    padding: 17px 30px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}
.psy-submit-btn:hover,.psy-submit-btn:focus ,.psy-submit-btn:active  {
    background: #fff;
    color: #0b2545;
    border: 1px solid #0b2545;
}
a#psy-pdf-link:hover,a#psy-pdf-link:focus ,a#psy-pdf-link:active  {
    background: #fff;
    color: #0b2545;
    border: 1px solid #0b2545;
}
/* CONTAINER */
.psy-label {
    display: flex;
    gap: 90px;
    align-items: center;
}
div#psy-questions {
    margin: 0 30px;
}
/* HIDE DEFAULT RADIO */
.psy-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cfcfcf;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    margin-right: 6px;
}

/* CHECKED STATE */
.psy-label input[type="radio"]:checked {
    background-color: #0b2545;
    border-color: #0b2545;
}

/* CHECK ICON */
.psy-label input[type="radio"]:checked::after {
    content: "✔";
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: -1px;
    left: 2px;
}

/* LABEL */
.psy-label label {
    font-size: 13px;
    color: #333;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    /* .psy-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    } */

    .psy-label {
    display: block;
    gap: 0px;
    align-items: start;
}
}

/* besic form user info */

/* Wrapper */
.psy-basic-form {
    width: 50%;
    padding: 20px;
    display: grid;
    gap: 18px;
    background: #ffffff;
    font-family: "Segoe UI", sans-serif;
    grid-template-columns: repeat(2, 1fr);
    align-content: center;
}

/* Inputs & Select */
.psy-basic-form input,
.psy-basic-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    outline: none;
}

/* Placeholder color */
.psy-basic-form input::placeholder {
    color: #bdbdbd;
}

/* Select arrow spacing */
.psy-basic-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

/* Date icon spacing */
/* .psy-basic-form input[type="date"] {
    padding-right: 40px;
} */

/* Error message */
.error-msg {
    grid-column: span 1;
    font-size: 12px;
    color: red;
    margin-top: -10px;
}

/* Full width fields */
.psy-basic-form input[placeholder="Sport(s) you play"],
.psy-basic-form input[placeholder="City"],
#startTestBtn {
    grid-column: span 2;
}
.psy-basic-field {
    height: 65px;
}
.psy-basic-field select,
.psy-basic-field #psy-dob{
      padding: .6180469716em;
    background-color: #f2f2f2;
    color: #43454b;
    border: 0;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}
/* Button */
#startTestBtn {
    margin-top: 10px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    background: #0b2a52;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

/* Button hover */
#startTestBtn:hover {
    background: #083060;
}
.psy-basic-question p {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}
.psy-basic-question select {
    width: 100%;
    font-size: 14px;
    color: rgb(51, 51, 51);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 2px 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(238, 238, 238);
    border-image: initial;
    background: rgb(255, 255, 255);
    outline: none;
}

.psy-pdf-btn {
    display: none;
    padding: 12px 22px;
    background-color: #2b6cb0;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.psy-pdf-btn:hover {
    background-color: #1e4f8a;
    transform: translateY(-2px);
}

.psy-pdf-btn:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .psy-basic-form {
        grid-template-columns: 1fr;
    }

    #startTestBtn {
        grid-column: span 1;
    }
    div#psy-questions {
    margin: 0 5px;
}
.ans{
    position: relative;
    top: -102px;
}
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .psy-top-section {
        flex-direction: column;
    }

    .psy-image img {
        width: 100%;
    }

    .psy-basic-form {
        width: 100%;
        grid-template-columns: 1fr;
    }
   .psy-basic-field {
    height: auto;
}
.psy-basic-question p {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}
}

