/**
 * 10X Product Selection Quiz Styles
 * Minimal functional CSS
 */

 body.custom-background.page-template-page-quiz {
    background: linear-gradient(to bottom,  rgba(44,141,221,1) 0%,rgba(44,141,221,1) 50%,rgba(43,133,208,1) 100%);
    background-size: 100%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

:root {
    --blue: #285E8A;
    --blue-hover: #275E89;
    --dark-blue: #1F3549;
    --light-blue: #97D0FE;
    --epix: #FFC10C;
    --kinetix: #1ca2dc;
    --dynamix: #4cb848;
}

/* Iconmoon */
@font-face {
    font-family: 'quiz-icomoon';
    src:  url('../fonts/quiz-icomoon.eot?1ljt7k');
    src:  url('../fonts/quiz-icomoon.eot?1ljt7k#iefix') format('embedded-opentype'),
      url('../fonts/quiz-icomoon.ttf?1ljt7k') format('truetype'),
      url('../fonts/quiz-icomoon.woff?1ljt7k') format('woff'),
      url('../fonts/quiz-icomoon.svg?1ljt7k#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'quiz-icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
  
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .icon-arrow-left:before {
    content: "\e900";
  }
  .icon-arrow-right:before {
    content: "\e901";
  }
  .icon-star:before {
    content: "\e902";
  }
  .icon-cart:before {
    content: "\e903";
  }
  .icon-check-mark:before {
    content: "\e904";
  }

/* Quiz Container - basic layout */
.quiz-container {
    padding: 2rem;
    position: relative;
    min-height: 100vh;
}

.quiz-container p {
    color: #fff;
    line-height: 1.3;
    font-family: "Titillium Web", sans-serif;
    font-weight: 400;
}

.quiz-container h2 {
    color: #fff;
    line-height: 1.3;
    font-family: "Norwester", titillium-web, sans-serif;
    font-size: 29px !important;
    text-align: center;
    text-transform: uppercase;
}

.quiz-container h2::before {
    border: 0;
}


/* Quiz Header - Back to Home button */
.quiz-header {
    padding: 30px 0 30px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.btn-back-home {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

@media (max-width: 600px){
    .quiz-header {
        position: relative;
    }

    .quiz-back-home svg {
        width: 35px;
    }
}

@media (min-width: 601px){
    .quiz-header {
        padding: 70px 0;
    }
}

@media (max-width: 768px)  {
    .quiz-container {
        padding: 3rem 1rem 5rem;
    }

    .quiz-container h2 {
        line-height: 1.3;
    }
}

@media (min-width: 768px) {
    .quiz-container h2 {
        font-size: 50px !important;
    }
}

/* Welcome Page */

.welcome-title {
    font-family: "Norwester", titillium-web, sans-serif;
    font-weight: 400;
    font-size: 29px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

.welcome-subtitle {
    background: var(--light-blue);
    border-radius: 5px;
    padding: 18px;
    text-align: center;
    margin-bottom: 28px;
}

.welcome-subtitle p {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-blue);
}

.step-content .welcome-disclaimer p {
    font-size: 19px;
}

.welcome-sub-wrapper img {
    max-height: 45px;
    transition: all 0.3s ease 0s;
    opacity: 1;
}

.welcome-sub-wrapper img.dynamic-pg-logo {
    max-height: 49px;
    top: 5px;
    position: relative;
}


.welcome-sub-wrapper {
    background: #fff;
    border-radius: 5px;
    display: block;
    padding: 15px;
    transform: skewX(-13deg);
    width: 100%;
    margin: 15px auto 32px;
}

.welcome-sub-wrapper > div {
    transform: skewX(13deg);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    justify-content: center;
}

#step-welcome .btn-primary {
    margin: auto auto 30px;
}

@media (max-width: 600px) {
    .logo-container img {
        max-width: 141px;
    }
}
@media (max-width: 768px){

    .welcome-sub-wrapper{
        max-width: 350px;
    }
    .quiz-container p {
        font-size: 16px;
    }
}

@media (min-width: 768px){
    .welcome-sub-wrapper {
        width: 60%;
    }

    .welcome-sub-wrapper > div { 
        column-gap: 40px;
        row-gap: 20px;
    }
    .welcome-sub-wrapper img {
        max-height: 69px;
    }

    .welcome-sub-wrapper img.dynamic-pg-logo {
        max-height: 80px;
        top: 10px;
    }
}

@media (min-width: 1025px){
    .welcome-sub-wrapper a:hover img {
        opacity: 0.75;
        transform: translateY(-2px);
    }

    .welcome-title {
        font-size: 82px;
    }
    .welcome-subtitle p {
        font-size: 25px;
    }
}

/* Progress Steps - Modern step-based indicator */
.quiz-progress {
    margin-bottom: 2rem;
    max-width: 205px;
    margin-left: auto;
    margin-right: auto;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    position: relative;
    height: 20px;
}

.progress-step {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.progress-step:last-child {
    flex: 0;
}

.step-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}



.step-connector {
    flex: 1;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.progress-step:last-child .step-connector {
    display: none;
}

/* Completed Step Styling */
.progress-step.completed .step-circle {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    width: 16px;
    height: 16px;
}

.progress-step.completed .step-connector {
    background-color: var(--dark-blue);
}

/* Active Step Styling */
.progress-step.active .step-circle {
    background-color: var(--dark-blue);
    border-color: #fff;
    border-width: 2px;
    width: 17px;
    height: 17px;
    animation: pulse 2s infinite;
}

/* Pulse animation for active step */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.progress-text {
    text-align: center;
    color: #fff;
    font-family: "Titillium Web", sans-serif;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .progress-steps {
        padding: 0 20px;
    }
    
    .step-circle {
        width: 14px;
        height: 14px;
    }
    
    .progress-step.active .step-circle {
        width: 18px;
        height: 18px;
    }
    
    .progress-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 12px;
        height: 12px;
    }
    
    .progress-step.active .step-circle {
        width: 16px;
        height: 16px;
    }
    
    .step-connector {
        margin-left: 6px;
        margin-right: 6px;
        height: 2px;
    }
}

/* Quiz Steps - functional display */

.quiz-steps {
    /* Essential for layout */
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-step {
    display: none;
}

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

.step-content p {
    text-align: center;
    font-size: 19px;
}


/* Options Grid - functional layout */
.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px auto 45px;
}

/* Option Cards - functional interaction */
.option-card {
    box-shadow: 6px 6px 0px transparent;
    background: #fff;
    cursor: pointer;
    padding: 1rem;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all 0.3s ease 0s;
    position: relative;
}

.option-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.option-content h3 {
    width: 100%;
    padding-bottom: 0;
    font-size: 19px;
    font-family: "Titillium Web", sans-serif;
    line-height: 1.3;
}

.option-content:has(.option-image) h3 {
    width: calc(100% - 55px);
    padding-left: 15px;
}

.option-content .option-image {
    width: 55px;
    text-align: center;
    margin-bottom: 0;
}

.option-image {
    text-align: center;
}

.option-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 55px;
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.3));
}

.option-card::before,
.option-card::after {
    position: absolute;
    opacity: 0;
    transition: all 0.3s ease 0s;
}

.option-card::before {
    content: '';
    background: #fff;
    border-radius: 100%;
    width: 38px;
    height: 38px;
    right: -13px;
    top: -13px;
    text-align: center;
}

.option-card::after {
    content: "\e904";
    font-family: 'quiz-icomoon';
    color: var(--blue);
    top: -14px;
    right: -12px;
    font-size: 29px;
}

.option-card.active {
    border-color: #000;
    background: #000;
}

.option-card.active h3 {
    color: #fff;
}

.option-card.active::before,
.option-card.active::after {
    opacity: 1;
}

@media (min-width: 768px) {
    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .option-card:hover {
        box-shadow: 7px 7px 0px #000;
    }

    .step-content p {
        font-size: 24px;
    }

    .option-content h3 {
        font-size: 22px;
    }
    
    .option-content:has(.option-image) h3 {
        width: calc(100% - 70px);
    }
    
    .option-content .option-image {
        width: 70px;
    }
    .option-image img {
        max-height: 70px;
    }
}

/* Buttons - functional only */
.quiz-container .btn-primary,
.quiz-container .btn-next,
.quiz-container .btn-prev {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 18px;
    background-color: #fff;
    color: var(--blue);
    transition: all 0.3s ease 0s;
}

.quiz-container .btn-primary::after,
.quiz-container .btn-prev::before,
.quiz-container .btn-next::after {
    font-family: 'quiz-icomoon';
    font-size: 13px;
}

.quiz-container .btn-primary:hover,
.quiz-container .btn-next:hover,
.quiz-container .btn-prev:hover {
    background: var(--blue-hover);
    color: #fff;
}

.quiz-container .btn-prev {
    background: var(--blue);
    color: #fff;
}

.quiz-container .btn-next.disabled {
    background: #fff !important;
    color: var(--blue);
    opacity: 0.5;
    cursor: not-allowed;
}

.quiz-container .btn-prev::before {
    content: "\e900";
    margin-right: 6px;
}

.quiz-container .btn-next::after ,
.quiz-container .btn-primary::after {
    content: "\e901";
    margin-left: 6px;
}

@media (min-width: 1025px) {
    .quiz-container .btn-primary,
    .quiz-container .btn-next,
    .quiz-container .btn-prev {
        font-size: 20px;
    }

    .quiz-container .btn-prev:hover {
        background: #fff;
        color: var(--blue);
    }
    .quiz-container .btn-prev::before {
        margin-right: 10px;
    }
    .quiz-container .btn-next::after ,
    .quiz-container .btn-primary::after {
        margin-left: 10px;
    }

    .quiz-container .btn-primary::after,
    .quiz-container .btn-prev::before,
    .quiz-container .btn-next::after {
        font-size: 16px;
    }
}

/* Step Navigation */
.step-navigation {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.step-navigation.welcome-navigation {
    justify-content: center;
}

@media (min-width: 768px) {
    .step-navigation {
        justify-content: center;
    }
}

/* Results Summary */
.results-summary {
    margin-bottom: 2rem;
    display: none;
}

.summary-item {
    font-family: 'Titillium Web';
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.3;
}

.recommendation-chat {
    background: var(--light-blue);
    border-radius: 5px;
    padding: 30px;
}

.recommendation-chat h3 {
    font-family: 'Norwester';
    text-transform: uppercase;
    color: var(--dark-blue);
}

.recommendation-chat p {
    margin-bottom: 20px;
    font-size: 19px;
    color: var(--dark-blue);
    text-align: left;
    font-weight: 600;
}

.contact-options .btn-contact {
    background: #fff;
    color: var(--blue) !important;
}

.contact-options .btn-contact:hover {
    background: var(--dark-blue) !important;
    color: #fff !important;
}

.action-buttons {
    margin-top: 50px;
    text-align: center;
}


.btn-contact {
    background-color: var(--dark-blue);
    border-radius: 30px;
    color: var(--light-blue) !important;
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease 0s;
    display: inline-block;
}

 .btn-contact::after {
    content: '>';
    margin-left: 10px;
    content: "\e901";
    font-family: 'quiz-icomoon';
    font-size: 14px;
}

.btn-contact:hover {
    background: #fff !important;
    color: var(--dark-blue) !important;
}

/* Product Card - functional layout */
.product-card {
    background: transparent;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.recommendation .product-image {
    height: 250px;
    border-radius: 5px;
    background: #fff;
    position: relative;
}

.recommendation .product-image::before {
    content: '';
    background: #000;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    top: 7px;
    right: -7px;
    position: absolute;
    z-index: -1;
}

@media (min-width: 768px) {
    .recommendation .product-image {
        height: 340px;
        max-width: 390px;
        margin: auto 0 auto auto;
    }
}

/* Loading Placeholder */
.loading-placeholder {
    background: rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    color: #fff;
    font-style: italic;
}

.loading-placeholder::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    width: 1em;
    height: 1em;
    border: 2px solid #fff;
    border-top: 2px solid var(--light-blue, #97D0FE);
    border-radius: 50%;
    animation: quiz-loader-spin 1s linear infinite;
}

.recommendation .product-image .loading-placeholder {
    color: var(--dark-blue);
}

.product-review .loading-placeholder {
    margin-top: 20px;
}

@keyframes quiz-loader-spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* No Image Placeholder */
.no-image {
    padding: 2rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    margin-top: 1rem;
    padding-top: 1rem;
}

.contact-section:has(.contact-text) {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    justify-content: space-around;
}

.product-description {
    height: auto !important;
    padding: 0;
}

.product-description p {
    text-align: left;
    font-size: 19px;
}

/* Product Review - functional only */
.product-review {
    top: -20px;
    left: -20px;
    z-index: 1;
    position: relative;
}
.product-review h5 {
    display: none;
    font-family: "Norwester", titillium-web, sans-serif;
    color: #fff;
    font-size: 22px;
    margin-top: 20px;
    text-transform: uppercase;
}


.review-content {
    background: #97D0FE;
    border-radius: 5px;
    padding: 15px;
    text-align: left;
}

.review-content p {
    font-style: normal;
    font-size: 19px;
    text-align: left;
    color: var(--dark-blue);
    font-weight: 600;
}

.review-author * {
    color: var(--dark-blue);
    font-weight: 600;
    font-family: "Titillium Web", sans-serif;
}

.review-ratings {
    margin-bottom: 5px;
}

.review-text .icon-star {
    color: var(--blue);
}
@media (max-width: 767px) {
    .recommendation-product-right {
        margin-top: 30px;
        padding-left: 30px;
        width: calc(100% - 20px);
    }

    .review-content {
        padding: 30px 25px;
    }

    .contact-section:has(.contact-text) {
        justify-content: center;
    }
}

/* Recommendation Product */

.recommendation-product-left {
    font-family: "Titillium Web", sans-serif;
    color: #fff;
}

.recommendation-product-left ul li {
    position: relative;
    padding-left: 25px;
}

.recommendation-product-left ul li::before {
    content: '';
    background: no-repeat center;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1013_65)'%3E%3Cpath d='M7.70871 12.0829C4.02192 7.67087 1.33183 3.41411 0 0C3.41411 1.33183 7.67087 4.02192 12.0829 7.70871C11.309 8.36907 10.5499 9.06967 9.80961 9.80991C9.06937 10.5502 8.36877 11.309 7.70841 12.0832L7.70871 12.0829ZM15 10.2733C14.1955 11.0162 13.3907 11.7892 12.5898 12.5901C11.7889 13.391 11.0159 14.1955 10.273 15.0003C5.26667 20.4219 1.62342 25.8375 0 30C4.16246 28.3766 9.57808 24.7333 15 19.7267C15.9751 20.627 16.9496 21.4832 17.9171 22.2913C22.3291 25.9781 26.5859 28.6682 30 30C28.6682 26.5859 25.9781 22.3291 22.2913 17.9171C21.4832 16.9496 20.627 15.9751 19.7267 15C24.7333 9.57808 28.3766 4.16246 30 0C25.8375 1.62342 20.4219 5.26667 15 10.2733Z' fill='white' fill-opacity='0.8'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1013_65'%3E%3Crect width='30' height='30' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");    background-size: contain;
    width: 15px;
    height: 15px;
    position: absolute;
    left: 2px;
    top: 10px;
}

.product-variations h5 {
    font-family: "Norwester", titillium-web, sans-serif;
    color: #fff;
    font-size: 24px;
    margin-top: 20px;
    text-transform: uppercase;
}

.recommendation-product h4 {
    font-family: "Norwester", titillium-web, sans-serif;
    font-size: 26px;
    background: #fff;
    border-radius: 5px;
    color: #000;
    padding: 15px 20px;
    text-transform: uppercase;
    margin-bottom: 30px;
    text-align: center;
}

.recommendation-product h3 {
    font-family: "Norwester", titillium-web, sans-serif;
    font-size: 29px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 30px!important;
}

.recommendation-product[attr-label='epix'] h4 {
    background-color: var(--epix);
}

.recommendation-product[attr-label='kinetix'] h4 {
    background-color: var(--kinetix);
}

.recommendation-product[attr-label='dynamix'] h4 {
    background-color: var(--dynamix);
}


.product-actions {
    margin-top: 30px;
    text-align: center;
}

.contact-section p {
    font-size: 21px;
}

@media (max-width: 767px) {
    .recommendation-product-left {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column-reverse;
    }

    .recommendation-product h4 { order: 2; }

    .recommendation-product .product-actions {
        order: 1;
        text-align: center;
        margin-top: 0;
    }
}

@media (min-width: 768px) {
    .recommendation-product .product-card {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .recommendation-product h3 {
        font-size: 50px;
        padding-bottom: 50px!important;
    }
    .recommendation-product h4 {
        font-size: 40px;
        padding: 20px 30px;
        text-align: left;
    }

    .recommendation-product-left {
        width: 55%;
        padding-right: 55px;
    }
    
    .recommendation-product-right {
        width: 45%;
    }
}

/* animations */

.background-pattern-desktop { display: none; }
.background-pattern-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.background-pattern {
    position: relative;
    z-index: -1;
}

.desktop-pattern {
    position: fixed;
    right: -3%;
    top: -6%;
}

.desktop-pattern-animate{
    position: fixed;
    top: 264px;
    right: 0;
}

.pattern-x {
    animation: x-float-spin 9s ease-in-out infinite;
    position: fixed;
    top: 0;
    right: 0;
}

.pattern-x-1 {
    animation-delay: 2s;
    top: 14rem;
    right: 8%;
    position: fixed;
}

.pattern-x-2 {
    animation-delay: 0s;
    top: 20rem;
    right: -5%;
}

.pattern-x-3 {
    animation-delay: 0s;
    top: 35.5rem;
    right: 10%;
}

.pattern-x-4 {
    animation-delay: 3s;
    top: unset;
    bottom: -4%;
    right: 31rem;
}



@keyframes x-float-spin {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: translateY(-18px) rotate(180deg);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.8;
    }
}

@media (min-width: 768px) {
    .background-pattern-mobile {
        display: none;
    }   

    .background-pattern-desktop { display: block; }
}