.quiz-section {
    margin: 100px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 1);
    padding-bottom: 64px;
}

.quiz-wrapper .quiz-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.quiz-wrapper .quiz-meta span {
    color: #666;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.quiz-wrapper .quiz-meta span#progress-text {
    font-weight: 400;
}

.quiz-wrapper .quiz-step h2 {
    color: #111;
    font-size: 36px;
    font-weight: 700;
    line-height: 45px;
    max-width: 860px;
}

.quiz-wrapper .options-grid .opt {
    border-radius: 15px !important;
    border: 2px solid #E5E7EB !important;
    background-color: #FFF !important;
    width: calc(20% - 12px);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all .3s;
}

.quiz-wrapper .options-grid .opt:hover,
.quiz-wrapper .options-grid .opt.selected {
    border: 2px solid #d88563 !important;
}

.quiz-wrapper .options-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 65px 0;
    justify-content: center;
}

.quiz-wrapper .options-grid .opt span.opt-val {
    display: block;
    color: #111;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: 48px;
    margin-bottom: 10px;
}

.quiz-wrapper .options-grid .opt span.opt-label {
    display: block;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.6px;
}

.quiz-nav .btn {
    border-radius: 5px;
    border: 1px solid #111;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--clay);
    border-color: var(--clay);
    border-radius: 0;
}

.quiz-nav #prev-btn svg {
    transform: scale(-1);
    margin-right: 5px;
    margin-left: 0;
}

.quiz-nav .btn svg {
    margin-left: 5px;
}

.quiz-nav .btn:hover {
    background-color: #111;
    border-color: #111;
    color: #fff;
}

.quiz-nav .btn:hover svg path {
    fill: #FFF;
}

.result-modal .mfp-close svg {
    display: block;
}

.result-modal .mfp-close {
    position: absolute;
    display: block;
    top: 24px;
    right: 24px;
    cursor: pointer;
    width: 24px;
    height: 20px;
}

.quiz-nav .btn svg path,
.result-modal span.close-modal svg path {
    transition: all .6s;
}

.result-modal span.close-modal:hover svg path {
    stroke: #111;
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.result-modal {
    max-width: 672px;
    margin: 0 auto;
    border-radius: 4px;
    border: 1px solid #111;
    background: #FFF;
    padding: 48px;
    position: relative;
    /* POPUP SCROLL FIX */
/*     max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box; */
}

.result-modal-data {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.result-modal .mfp-close {
    position: absolute;
    display: block;
    top: 24px;
    right: 24px;
    cursor: pointer;
}

.result-details h2,
.result-details h3 {
    color: #111;
    font-size: 36px;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 8px;
}

.result-details span {
    color: #99A1AF;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 0;
}

.result-details h3 {
    margin-top: 30px;
    font-weight: 600;
    margin-bottom: 25px;
}

.result-details p {
    color: #4A5565;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 29.25px;
}

.result-send {
    margin-top: 30px;
}

.result-send label {
    color: #4A5565;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    display: block;
    margin-bottom: 12px;
}

.result-send input[type="email"],
.result-send input[type="email"]::placeholder {
    color: #111;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.result-send input[type="email"] {
    border: 1px solid #E5E7EB;
    background-color: transparent;
    padding: 16px;
}

.result-send .btn {
    border-radius: 0px;
    background: var(--clay);
    border-color: var(--clay);
    width: 100%;
    margin: 24px 0;
    color: #111;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
}

.result-send .btn:hover{
    background-color: #111;
    border-color: #111;
    color: #fff;
}

.result-send p {
    color: #99A1AF;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

div#result-modal {
    display: none;
}

.result-modal:has(.quiz-thank-you) {
    padding: 0;
    border: 0;
}

.result-modal:has(.quiz-thank-you) .mfp-close {
    right: -30px;
    top: 0;
    opacity: 1;
}

.result-modal:has(.quiz-thank-you) .mfp-close svg path {
    stroke: #fff;
    opacity: 1;
}

.result-modal .quiz-thank-you {
    padding: 0 !important;
    width: 100%;
}

.quiz-inner-text {
    max-width: 100%;
    margin: 0 auto;
    background: #f8f8f8;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.quiz-header {
    color: #fff;
    padding: 15px 30px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quiz-category-title {
    font-size: 20px;
    text-transform: uppercase;
    line-height: normal;
    font-weight: 600;
}

.quiz-score {
    font-size: 14px;
    font-weight: 600;
}

.quiz-content {
    text-align: left;
    background: #f3f3f3;
    padding: 30px;
}

.quiz-result-title {
    font-size: 24px;
    margin: 0 0 10px;
    color: #111;
    line-height: normal;
}

.quiz-result-desc {
    font-size: 14px;
    margin-bottom: 10px;
    font-style: italic;
}

.quiz-cta-wrap {
    margin-top: 40px;
}

.quiz-cta-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.quiz-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: normal;
}

.quiz-content h6 {
    font-weight: 600;
}

.quiz-content p,
.quiz-content ul li {
    font-size: 14px;
}

.quiz-content ul {
    list-style-type: none;
}

.quiz-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.quiz-content ul li:before {
    content: '';
    width: 15px;
    height: 1px;
    display: block;
    background-color: #111111;
    position: absolute;
    left: 0;
    top: 12px;
}

.result-details p br,
.quiz-content p br,
.quiz-content ul li br {
    display: none;
}

/* MAGNIFIC POPUP SAFE FIX */

body.mfp-open {
    overflow: hidden !important;
}

.mfp-wrap {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.mfp-container {
    padding: 20px;
    box-sizing: border-box;
}

.mfp-content {
    width: 100%;
    max-width: 100%;
}

 input#user-email.error {
    border: 1px solid red;
}

@media only screen and (max-width:1199px) {
    .quiz-wrapper .options-grid .opt span.opt-val {
        font-size: 24px;
        line-height: 24px;
        margin-bottom: 15px;
    }

    .quiz-wrapper .options-grid .opt {
        padding: 30px 20px;
    }

    .quiz-wrapper .options-grid .opt span.opt-label {
        font-size: 14px;
        line-height: 14px;
    }

    .quiz-wrapper .options-grid {
        margin: 40px 0;
    }

    .quiz-section {
        margin: 60px 0;
        padding-bottom: 60px;
    }

    

    .quiz-wrapper .quiz-step h2 {
        font-size: 30px;
        line-height: 39px;
    }

    .quiz-wrapper .quiz-meta {
        margin-bottom: 30px;
    }

    .result-modal {
        padding: 40px 30px;
    }

    .result-details h3 {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .result-details h2,
    .result-details h3 {
        font-size: 26px;
        line-height: 30px;
    }

    .result-details p {
        font-size: 16px;
        line-height: 25px;
    }

    .result-send {
        margin-top: 20px;
    }
}

@media only screen and (max-width:991px) {
    .quiz-wrapper .options-grid .opt {
        width: calc(33.33% - 12px);
    }

    .quiz-content {
        padding: 20px;
    }
}

@media only screen and (max-width:767px) {

    .mfp-container {
        padding: 10px;
    }

    .result-modal {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);
        padding: 30px 20px;
    }

    .quiz-wrapper .options-grid .opt {
        width: calc(50% - 12px);
        padding: 20px 15px;
    }

    .quiz-wrapper .quiz-step h2 {
        font-size: 20px;
        line-height: 25px;
    }

    .quiz-wrapper .options-grid {
        margin: 30px 0;
    }

    .quiz-wrapper .options-grid .opt span.opt-val {
        font-size: 20px;
        line-height: 20px;
    }

    .quiz-nav .btn {
        letter-spacing: normal;
        cursor: pointer;
        padding: 13px 10px;
    }

    .result-details h2,
    .result-details h3 {
        font-size: 20px;
        line-height: 24px;
    }

    .result-modal .mfp-close {
        top: 10px;
        right: 10px;
    }

    .result-modal:has(.quiz-thank-you) .mfp-close {
        right: -4px;
        top: -25px;
        opacity: 1;
    }
}