/* Quiz Layout Wrapper */
.quiz-wrap {
    padding-top: 96px;
    padding-bottom: 96px;
    margin: 0 !important;
    min-height: 100vh;
    flex: 1;
    background: var(--light, linear-gradient(135deg, #FFF7EE 0%, var(--Purple-1, #F0E9F7) 100%), #FFF);
}
#quiz-container {
    max-width: 650px;
    margin: 32px auto 0;
    padding: 0 20px;
}
/* .quiz-wrap .custom-header {
    border-bottom: 1px solid var(--Gray-3, #DBD7E3);
    padding: 16px 48px;
} */
.page-template-quiz-template header, 
.page-template-quiz-template #footer, .page-template-quiz-combo header, 
.page-template-quiz-combo #footer,
.page-template-quiz-result header,
.page-template-quiz-result #footer {
    display: none;
}
body .quiz-above-heading h3 {
    font-weight: 400;
}
/* Step Card */
.quiz-card {
    padding: 48px;
    text-align: center;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}
.quiz-card img {
    width: 25%;
}
.quiz-card form {
    position: relative;
}

.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
}

/* Title */
.quiz-title {
        font-size: 24px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #0D0231;
    letter-spacing: 0.72px;
    margin-top: 16px;
    font-family: 'TASA Explorer';
}

.quiz-description p {
    font-size: 16px;
    color: #0D0231;
    margin-bottom: 48px;
    line-height: 1.38;
}

/* Question text */
.quiz-question {
    font-weight: 400;
    text-align: left;
    font-size: 16px;
    color: #0D0231;
    line-height: 1.38;
    margin-bottom: 24px;
    font-family: 'TASA Explorer';
}

.quiz-share-wrap {
    padding-top: 16px;
    border-top: 1px solid rgba(69, 85, 108, 0.17);
}
.quiz-share-wrap a:hover svg path {
    fill: #3A1058;
}
.copy-msg {
    display: none;
    margin-left: 10px;
    font-size: 14px;
    color: #28a745;
    position: absolute;
    left: 0;
    bottom: -30px;
}
.share-icons {
    position: relative;
}
.copy-msg.show {
    display: inline-block;
}

/* Options */
.quiz-option {
    padding: 16px;
    margin: 12px 0;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
    color: #7B7384;
    display: flex;
    gap: 12px;
    border-radius: 10px;
    border: 2px solid var(--Gray-2, #F1EFF6);
    transition: all 0.3s ease-in-out;
    line-height: 1.4;
}
.quiz-option:hover {
    border-radius: 10px;
    background: var(--purple);
    border-color: transparent;
    color: #fff;
    transition: all 0.3s 
ease-in-out;
}

/* Option icon */
.quiz-option::before {
    content: "";
    font-size: 20px;
    color: #c48aff;
    background: url('/wp-content/plugins/upgrade-labs-quizzes/img/spark-checkmark-w.svg') no-repeat center;
    width: 24px;
    height: 24px;
    background-size: 24px;
    border-radius: 50%;
    flex: 0 0 24px;
}
.quiz-option:hover:before {
    background: url('/wp-content/plugins/upgrade-labs-quizzes/img/spark-checkmark-o.svg') no-repeat center;
}

/* Progress Bar */
.quiz-progress-top {
    width: 100%;
    max-width: 610px;
    margin: 0 auto 0px auto;
    padding: 38px 0px 5px !important;
    font-size: 14px;
    color: #0D0231;
    display: flex;
    justify-content: space-between;
}

.progress-track {
    width: 100%;
    height: 8px;
    max-width: 610px;
    margin: 0 auto;
    border-radius: 16777200px;
    background: var(--Gray-3, #DBD7E3);
}
.progress-bar {
    height: 8px !important;
    border-radius: 16777200px !important;
    background: linear-gradient(271deg, var(--Purple-2, #D4BBE2) 0.9%, #4b36c1 95.94%);
    width: 0%;
    transition: width 0.4s ease;
    margin: 0 !important;
}
.quiz-back-btn {
    font-size: 16px;
    margin-bottom: 48px;
    cursor: pointer;
    color: #7B7384;
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: start;
    gap: 8px;
}

.quiz-back-btn:hover {
    color: #0D0231;
}
.quiz-card .floating-wrapper:has(.form-control) {
    border-radius: 10px;
    border: 2px solid var(--Gray-2, #F1EFF6);
    /* height: 52px; */
    margin-bottom: 26px;
    padding: 0;
}
.floating-wrapper p {
    margin-bottom: 0px;
    line-height: 37px;
}
.floating-wrapper .submit-field p{
    line-height: 0px;
}
.quiz-card .floating-form .floating-wrapper .form-control {
    box-shadow: none !important;
    border: 0px solid var(--Gray-2, #F1EFF6);
    background-color: #fff!important;
    height: 55px;
    padding: 20px 15px 0px !important;
    border-radius: 7px !important;
    width: 100%;
    font-size: 16px;
    color: #1F1626;
}
.quiz-card .floating-wrapper .form-label {
    font-size: 16px;
    color: #7B7384;
    top: 10px !important;
    padding: 0 !important;
    left: 16px !important;
}
.quiz-card .floating-wrapper.animate label.form-label {
    top: 13px !important;
}
#quiz-container .quiz-card .floating-form .btn.blackbtn, .quiz-result-container .btn {
    border-radius: 10px;
    background: var(--Purple-3, #815996);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10) !important;
    height: 48px;
    border: 0px;
    line-height: normal;
    font-weight: 400;
    font-size: 14px;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Futura Book';
}
#quiz-container .quiz-card .floating-form .btn.blackbtn:hover ,  .quiz-result-container .btn:hover{
    background: var(--Purple-4, #674778);
}
.floating-form .floating-wrapper .wt-bg-location.form-control {
    padding: 15px 15px !important;
    display: flex;
    align-items: center;
    background: #fff url(/wp-content/themes/vida/images/d-arrow.png) no-repeat scroll right 15px top 50% / 14px auto;
}
.quiz-result .quiz-card, .quiz-result-container {
    max-width: 650px;
    margin: 32px auto 0;
    padding: 0;
        padding-top: 50px;
}
.quiz-result .quiz-card img {
    aspect-ratio: 655/369;
}
.quiz-result-wrap {
    padding: 48px;
    text-align: left;
}
.quiz-result-wrap .quiz-title {
    color: #0D0231;
}
.quiz-result-wrap p, .quiz-result-wrap ul li {
    font-size: 16px;
    line-height: 1.4;
    color: #314158;
}
.quiz-result-wrap ul li {
    position: relative;
    margin-bottom: 18px;
    padding-left: 40px;
}
.quiz-result-wrap ul li:before {
    content: "";
    font-size: 20px;
    color: #c48aff;
    background: url(/wp-content/plugins/upgrade-labs-quizzes/img/spark-list.svg) no-repeat center;
    width: 24px;
    height: 24px;
    background-size: 24px;
    border-radius: 50%;
    flex: 0 0 24px;
    position: absolute;
    left: 0;
}
.quiz-result-wrap ul {
    margin: 24px 0;
}
.quiz-card .floating-form .floating-wrapper .form-control.wpcf7-not-valid {
    position: relative;
    border: 2px solid #f15a2c !important;
    content: "";
    display: block;
    background: url(/wp-content/plugins/upgrade-labs-quizzes/img/exclaimation-circle.svg) no-repeat center right 10px;
}
.quiz-result-container .quiz-title svg {
    width: 20px;
    height: 20px;
    position: relative;
    top: -4px;
}
.quiz-result .quiz-title {
    margin-top: 0;
}
.quiz-result-container:has(.quiz-result) .quiz-card {
    overflow: hidden;
    padding: 0;
}
.page-template-quiz-template-php {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100%;
}
.quiz-result-wrap h4 {
    color: #2E0D46;
    font-size: 20px;
    font-weight: 400;
    margin-top: 0px;
}
.quiz-result-wrap blockquote, .quote-section {
    border-radius: 16px;
    background: var(--Purple-1, #F0E9F7);
    border: 0px;
    padding: 24px;
    color: #2E0D46;
}
.quiz-result-wrap blockquote p, .quote-section p {
    color: #2E0D46;
    margin-bottom: 0;
}
.quiz-result-wrap blockquote h3, .quote-section h4 {
    font-weight: 400;
    font-size: 24px;
}
.quiz-result-container .quiz-title {
    color: #45556C;
    text-align: center;
    margin-bottom: 27px;
    margin-top: 0;
    font-size: 24px !important;
}
.quiz-result-wrap .quiz-title {
    text-align: left;
}
.quiz-result-container {
    margin-top: 0;
    padding-top: 48px;
}
.quiz-result-container .quiz-card {
    margin-top: 0;
}
.quiz-result-container .white-btn {
    color: #3A1058;
    background: #fff;
}
.quiz-result-container .white-btn:hover, .quiz-result-container .main-btn:hover {
    background: #3A1058;
    color: #fff;
}
.result-btns {
    max-width: 650px;
    margin: 30px auto 0px;
    flex-direction: column;
    align-items: center;
}
.result-btns .btn {
    max-width: fit-content;
}
.quiz-card .floating-form .floating-wrapper.animate .form-control {
    background-color: #fff !important;
    color: #1F1626;
}
.quiz-wrap .progress-bar {
    max-width: 100%;
}
.quiz-result img {
    width: 100%;
    height: 369px;
    object-fit: cover;
}
@media only screen and (max-width: 991px)
{
    .quiz-wrap {
        min-height: auto;
        padding-top: 64px;
        padding-bottom: 64px;
    }
}
@media only screen and (max-width: 767px)
{
    .quiz-result img {
    height: auto;
}
.result-btns {
    padding: 0 15px;
}
    .quiz-card .wpcf7 form .wpcf7-response-output {
    bottom: -60px;
}
  .quiz-progress-top, .progress-track {
    max-width: calc(100% - 40px);
}  
.quiz-card, .quiz-result-wrap {
    padding: 20px;
}
.quiz-title, .quiz-result-wrap blockquote h3, .quote-section h4 {
    font-size: 20px;
}
.quiz-result-wrap blockquote h3, .quote-section h4
{
    margin-top: 0px;
}
.quiz-description p, .quiz-back-btn {
    font-size: 14px;
    margin-bottom: 20px;
}
h3.quiz-option {
    text-align: center;
    font-size: 14px;
}
.quiz-option {
    font-size: 14px;
}
.quiz-card .floating-wrapper:has(.form-control) {
    margin-bottom: 15px;
}
.result-btns {
    flex-direction: column;
    align-items: center;
}
.quiz-result .quiz-card, .quiz-result-container {
    padding: 0 15px;
}
}

/* ==========================================================================
   Upgrade Labs additions: Start step, Country/ZIP (location) step
   ========================================================================== */

/* Start screen button */
.quiz-start-btn {
    height: 48px;
    border: 0px;
    line-height: normal;
    font-weight: 400;
    font-size: 14px;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'TASA Explorer';
    cursor: pointer;
    margin-top: 24px;
    background: var(--purple);
    border-radius: 30px;
    border: 1px solid var(--purple);
}
.quiz-start-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
}

/* Country selection buttons */
.quiz-country-options {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}
.quiz-country-option {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 16px;
    color: #7B7384;
    border-radius: 10px;
    border: 2px solid var(--Gray-2, #F1EFF6);
    transition: all 0.3s ease-in-out;
}
.quiz-country-option:hover,
.quiz-country-option.selected {
    border-color: transparent;
    background: var(--orange);
    color: #fff;
}

/* ZIP step */
.quiz-zip-wrap {
    margin: 24px 0;
}
.quiz-zip-wrap input.quiz-zip-input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border-radius: 7px;
    border: 2px solid var(--Gray-2, #F1EFF6);
    font-size: 16px;
    color: #1F1626;
}
.quiz-zip-wrap input.quiz-zip-input:focus {
    outline: none;
    border-color: #BF83DE;
}
.quiz-location-error {
    color: #f15a2c;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}
.quiz-location-error.show {
    display: block;
}
.quiz-continue-btn {
    height: 48px;
    border: 0px;
    line-height: normal;
    font-weight: 400;
    font-size: 14px;
    width: 100%;
    color: #fff;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'TASA Explorer';
    cursor: pointer;
    margin-top: 24px;
    background: var(--purple);
    border-radius: 30px;
    border: 1px solid var(--purple);
}
.quiz-continue-btn:hover {
    background: var(--orange);
    border-color: var(--orange);
}
.quiz-continue-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}
.quiz-location-loading {
    font-size: 14px;
    color: #7B7384;
    margin-top: 12px;
    display: none;
}
.quiz-location-loading.show {
    display: block;
}

/* Tips list on result screen */
.quiz-result-tips {
    margin: 24px 0;
}
.quiz-result-tips h4 {
    color: #2E0D46;
    font-size: 20px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 12px;
}
.quiz-result-tips ul {
    margin: 0;
    padding-left: 0px;
    list-style: none;
}
.quiz-share-wrap .share-icons {
    gap: 16px !important;
}
.result-btns .main-btn {
    background: var(--purple);
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0px 4px 6px -1px #0000001A;
    border-radius: 10px;
    padding: 13px;
}
.result-btns .btn:not(.main-btn) {
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 6px -1px #0000001A;
    background: #fff;
    color: #3A1058;
    font-size: 14px;
    text-transform: uppercase;
    padding: 13px;
}
.result-btns .main-btn:hover, .result-btns .btn:hover {
    background: var(--orange);
    color: #fff;
}
.result-btns {
    margin-top: 30px;
}
/* Recommended path */
.quiz-recommended-path {
    border-radius: 16px;
    background: var(--Purple-1, #F0E9F7);
    padding: 24px;
    color: #2E0D46;
    margin: 24px 0;
}
.quiz-recommended-path h4 {
    font-weight: 400;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 8px;
}

/* Combo / tie result: two-column insight on larger screens */
.quiz-combo-results {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.quiz-combo-result-block {
    flex: 1 1 260px;
    text-align: left;
}
@media only screen and (max-width: 767px) {
    .quiz-country-options {
        flex-direction: column;
    }
}

/* Contact form "location" select, locked read-only after a ZIP match
   (see quiz.js lockSelect() - can't use [disabled], it would drop the
   field from the form submission). */
.quiz-select-readonly {
    background-color: #F1EFF6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Scenario-aware intro (WYSIWYG) shown above the per-outcome title on both
   result templates. */
.quiz-above-heading {
    margin-bottom: 8px;
}
.quiz-above-heading p {
    font-size: 14px;
    margin: 0 0 4px;
}
.quiz-above-heading p:first-child {
    font-size: 16px;
    font-weight: 600;
}

/* Fine print shown below the contact form (editable per quiz in wp-admin). */
.quiz-form-fine-print {
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    opacity: 0.8;
}
.quiz-form-fine-print p {
    margin: 0 0 6px;
}

/* Tie results: every tied outcome shown in full, stacked. */
.quiz-card .quiz-result-stacked + .quiz-result-stacked {
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}
