.bg-primary{
    background-color: var(--brand-primary);
}
.bg-secondary{
    background-color: var(--brand-secondary);
}
.white{
    color: white;
}
.section-padding{
    padding-block: 4rem;
}

.app-container{
    width: 100%;
    max-width: 1024px;
    margin: 20px auto 50px;
    background-color: #fff;
    border-radius: 0;
    position: relative;
    z-index: 1;
}
.iq-test{
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.iq-test-question{
    width: 48%;
    padding: 0.5rem;
    border: 1px solid #eee;
}
.iq-test-question img{
    max-width: 100%;
    height: auto;
    display: block;
}
.iq-test-answers{
    width: 48%;
    padding: 3rem;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.iq-answers-row{
    display: flex;
}
.iq-answer{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 50%;
    cursor: pointer;
    position: relative;
}
.iq-answer::before{
    content: '';
    width: 100%;
    height: 120%;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    position: absolute;
    z-index: -1;
    top: -10%;
    left: 0;
    transition: all .2s linear;
}
.iq-answer:hover::before{
    background-color: #f4f4f4;
    border: 1px solid #f4f4f4;
}
.iq-answer[data-selected="true"]::before{
    background-color: #f4f4f4;
    border: 1px solid var(--app-accent-color);
    transition: all .1s linear;
}
.iq-answer span{
    font-size: 20px;
    color: var(--text-primary);
    margin-right: 0;
}
.iq-answer img{
    width: 90px;
    height: auto;
    display: block;
}
#indicator{
    position: absolute;
    width: 24px;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    top: calc(50% - 12px);
}
#next-question{
    width: 100%;
    display: grid;
    place-items: center;
    margin-top: 2.5rem;
}
#next-question .test-cta, #prev-question .test-cta{
    background-color: var(--brand-primary);
    color: var(--text-primary);
    font-weight: 500;
    text-transform: uppercase;
    font-family: var(--heading-font-family);
    width: 180px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-align: center;
    border-radius: 4px;
    line-height: 1;
    transition: all 0.3s ease;
}
#next-question .test-cta:hover{
    background-color: var(--brand-secondary);
    color: #fff;
}
#prev-question{
    width: 100%;
    margin-top: 1rem;
    display: grid;
    place-items: center;
}
#prev-question .test-cta{
    width: 130px;
    height: 30px;
    font-size: 12px;
    font-weight: 500;
    background-color: #f4f4f4;
    color: var(--text-primary);
    letter-spacing: 0;
    text-transform: none;
}

#age-modal{
    background-color: #f8fafc;
    box-shadow: none;
    height: 300px;
    width: 400px;
}
#age-modal form{
    display: flex;
    flex-direction: column;
    align-items: center;
}
#age-modal p{
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
#age-modal .input{
    box-shadow: none;
    background-color: #fff;
    border: 1px solid var(--brand-secondary);
    color: var(--text-primary);
    padding: 0;
    height: 44px;
    margin-inline: auto;
}
#age-modal .input:focus{
    border-color: var(--accent-color)
}
#age-modal #name-input{
    margin-bottom: 1rem;
}
#age-modal .field:first-of-type{
    margin-bottom: 0;
}
#age-modal .input::-webkit-input-placeholder{
    color: var(--text-secondary);
}
#submit-age{
    background-color: transparent;
    border: 1px solid var(--brand-secondary);
    margin-top: 1.5rem;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-primary);
    font-size: 14px;
}
.page-wrap.blur{
    pointer-events: none;
  
}
.page-wrap.blur::after{
    content: '';
    transition: opacity .2s linear;
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #283C53 0%, #213245 100%);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1; 
    z-index: 10;
}

@media screen and (max-width: 1280px) {
    .section-padding{
        padding-inline: 2.5rem;
    }
}
@media screen and (max-width: 1024px) {
    .app-container{
        max-width: 94%;
    }
    .iq-answer img{
        width: 79px;
    }
}
@media screen and (max-width: 940px) {
    .iq-test-answers{
        padding: 2rem;
    }
}
@media screen and (max-width: 820px) {
    .iq-answer img{
        width: 68px;
    }
}
@media screen and (max-width: 700px) {
    .iq-answer img{
        width: 57px;
    }
}
@media screen and (max-width: 640px) {
    .section-padding{
        padding-inline: 1.5rem;
        padding-block: 3rem;
    }
    .iq-test-question{
        padding: 0;
    }
    .iq-test-answers{
        padding: 1.25rem;
    }
    .iq-answer img{
        width: 52px;
    }
    .progressData{
        margin-bottom: 1rem;
    }
}
@media screen and (max-width: 580px) {
   #iq-test{
    display: block;
   }
  .iq-test-question{
    width: 400px;
    max-width: 96%;
    margin: 0 auto 0.5rem
  }
  .iq-test-answers{
    width: 400px;
    max-width: 96%;
    margin: 0 auto;
    padding: 1.5rem 0;
    gap: 0.75rem;
  }
  .iq-answer img{
    width: 76px;
  }
  #next-question{
    margin-top: 1.5rem;
  }
}
@media screen and (max-width: 400px) {
    .section-padding{
        padding-inline: 1rem;
        padding-block: 2.5rem;
    }
  .iq-answer img{
    width: 62px;
  }
}
/* Preloading Animation */
#preloading-animation{
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    width: 1280px;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 21;
    padding: 2rem 0 1rem 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all .5s ease .3s
}
#preloading-animation.play{
    opacity: 1;
    visibility: visible;
    transition: all .2s ease .2s
}
#preloading-animation > p{
    font-size: 36px;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-family: var(--heading-font-family);
    max-width: initial;
    margin-bottom: 1rem;
}
#bell-curve{
    width: 100%;
    max-width: 1140px;
    margin: 6rem auto 0;
}
#bell-curve img{
    display: block;
    max-width: 100%;
    height: auto;
}
.line-wobble {
    --uib-size: 160px;
    --uib-speed: 2s;
    --uib-color: #f6c565;
    --uib-line-weight: 10px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--uib-line-weight);
    width: var(--uib-size);
    border-radius: calc(var(--uib-line-weight) / 2);
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  
  .line-wobble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #223448;
  }
  
  .line-wobble::after {
    content: '';
    height: 100%;
    width: 100%;
    border-radius: calc(var(--uib-line-weight) / 2);
    transform: translate3d(-95%, 0, 0);
    background-color: var(--uib-color);
  }
  .line-wobble.active::after{
    animation: wobble var(--uib-speed) ease-in-out infinite;
  }
  
  @keyframes wobble {
    0%,
    100% {
      transform: translate3d(-95%, 0, 0);
    }
    50% {
      transform: translate3d(95%, 0, 0);
    }
  }

  #preloading-success{
    width: 100%;
    display: flex;
    justify-content: center;
    display: none;
  }

  .checkmark {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #25384e;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #f6c26c;
  }

  .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #f6c26c;
    fill: none;
  }
  
  .checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
  }
  .checkmark.success{
    animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.5s both;
  }
  .checkmark.success .checkmark__circle{
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  .checkmark.success .checkmark__check{
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
  }
  
  
  @keyframes stroke {
    100% {
      stroke-dashoffset: 0;
    }
  }
  @keyframes scale {
    0%, 100% {
      transform: none;
    }
    50% {
      transform: scale3d(1.1, 1.1, 1);
    }
  }
  @keyframes fill {
    100% {
      box-shadow: inset 0px 0px 0px 60px #f6c26c;
    }
  }

@media screen and (max-width: 1280px) {
    #preloading-animation{
        width: 100%;
    }
}
@media screen and (max-width: 960px) {
    #preloading-animation > p{
        font-size: 30px;
    }
    #bell-curve{
        max-width: 100%;
    }
}
@media screen and (max-width: 640px) {
    #preloading-animation > p{
        font-size: 26px;
    }
    #bell-curve{
        margin: 3rem auto 0;
    }
    .line-wobble{
        --uib-size: 120px;
        --uib-speed: 1.75s;
        --uib-line-weight: 8px;
    }
    .checkmark{
        width: 58px;
        height: 58px;
    }
}


/* CHECKOUT */
#checkout-hero{
    width: 100%;
    padding-block: 6rem 3rem;
    background: url(../images/checkout-hero-bg.svg), linear-gradient(180deg, #FFFBF0 -6.13%, rgba(255, 245, 224, 0) 78.48%);
    background-repeat: no-repeat;
    background-position: center top 3.5rem, top left;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#checkout-hero h1{
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: center;
}
#checkout-hero h1 span{
    color: var(--accent-color);
    font-weight: 500;
}
.checkout-hero-badge{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(237, 142, 0, 0.05);
    border-radius: 8px;
    border: 1px solid #f8d297;
    margin-bottom: 1rem;
}
.checkout-hero-badge p{
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
}
.checkout-hero-summary{
    font-size: 1.4rem;
    color: hsla(215, 30%, 22%, 0.75);
    max-width: 40ch;
    margin-inline: auto;
    text-align: center;
}
#checkout-hero h2{
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
}
.checkout-result-blur{
    margin-bottom: 1.5rem;
}
.flex-columns{
    display: flex;
    justify-content: center;
    gap: var(--gap);
}
.flex-columns.default{
    --gap: 3rem;
}
.flex-columns > div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.flex-columns.default > div p{
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.35;
    max-width: 20ch;
    margin-inline: auto;
    margin-block: 0.5rem 0;
}
h3.title{
    text-align: center;
    font-size: 2.25rem;
    font-weight: 500;
}
.flex-columns.cards{
    --gap: 1.5rem;

}
.checkout-cards{
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    flex-wrap: wrap;
}
.checkout-card{
    border-radius: 8px;
    background-color: var(--brand-primary);
    padding: 2.5rem 1.5rem;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    display: flex;
    flex: 0 1 32%;
}

.checkout-card > span{
    max-width: 180px;
    width: 100%;
    display: block;
}
.checkout-card > span img{
    max-width: 100%;
    height: auto;
    display: block;
}
.checkout-card-title{
    font-size: 1.5rem;
    color: #1f2228;
    width: 100%;
    max-width: 28ch;
    text-align: left;
    font-weight: 500;
    line-height: 1.25;
    margin-block: 1.25rem 0.75rem;
}
.checkout-card-text{
    font-size: 1rem;
    color: hsla(220, 13%, 14%, 0.75);
    font-weight: 400;
    text-align: left;
    max-width: 36ch;
    margin-bottom: 0;
}
#checkout-wrap{
    background: linear-gradient(180deg, rgba(39, 53, 73, 0.03) 0%, rgba(39, 53, 73, 0) 100%);
}
.subheading{
    font-size: 2rem;
    color: #1f2228;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    margin-bottom: 0.5rem;
}
#checkout-wrap .subheading + p{
    text-align: center;
    max-width: 100%;
}
#checkout-wrap .subheading + p span{
    display: inline-block;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    cursor: help;
}
.tooltip{
    position: relative;
    cursor: help;
}
.tooltip::before{
    content: attr(data-tooltip);
    position: absolute;
    z-index: 999;
    width: 340px;
    background: #0a2540;
    color: #fff;
    text-align: center;
    padding: 11px 13px;
    line-height: 1.5;
    border-radius: 8px;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s;
    bottom: 125%;
    font-size: 13px;
    font-weight: 400;
    visibility: hidden;
    transform: translateX(-15%);
    text-decoration: none;
}
.tooltip:hover::before{
    opacity: 1;
    visibility: visible;
}
#banner-reserved{
 width: 100%;
 max-width: 640px;
 background: linear-gradient(180deg, #283C53 0%, #213245 100%);
 border-radius: 6px;
 margin: 4rem auto 0;
 padding: 1rem 2rem;
}
#banner-reserved .top{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 6px;
    border-bottom: 1px solid hsla(240, 11%, 98%, 0.1);
}
#banner-reserved .top > p{
    margin-bottom: 0;
    color: #F7C666;
    font-weight: 400;
    font-size: 18px;
    width: fit-content;
}
.reserved-ribbon{
  padding: 2px 16px 8px 16px;
  width: fit-content;
  background-image: url(../images/reserved-ribbon.svg);
  background-size: contain;
  transform: translateY(2px);
}
.reserved-ribbon p{
    color: #273A4F;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0;
    width: max-content;
}
#banner-reserved .bottom{
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#banner-reserved .bottom p:nth-of-type(1){
    color: #FAFAFB;
    font-size: 22px;
    font-weight: 400;
    width: 12ch;
    line-height: 1.3;
    margin-bottom: 0;
}
#banner-reserved .bottom p:nth-of-type(2){
    color: #F6C76B;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    width: fit-content;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 0;
}
#banner-reserved .bottom p:nth-of-type(2) span{
    color: hsla(240, 11%, 98%, 0.5);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: line-through;
}
/* CHECKOUT FORM */
.htmx-checkout{
    opacity: 1;
    transition: opacity 0.6s linear;
}
.htmx-checkout.loading{
    opacity: 0;
}
#checkout-loader{
    width: 24px;
    height: 24px;
    position: absolute;
    top: calc(50vh - 12px);
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    z-index: 99;
}
#payment-form{
    width: 100%;
    max-width: 640px;
    margin: 4rem auto 2rem;
    margin-block-start: 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-heading{
    font-size: 1.5rem;
    font-weight: 500;
    color: #1f2228;
    text-align: left;
    border-bottom: 1px solid #eceeee;
    margin-block-end: 1.5rem;
}
.form-group{
 width: 100%;
}
.form-group + .form-heading{
    margin-block: 0.5rem 1.5rem;
}
.form-control{
    margin-block-end: 1rem;
}
.form-label{
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    padding-inline-start: 2px;
}
.form-input{
    width: 100%;
}
.form-input input{
    width: 100%;
    height: 54px;
    background-color: #EFF0F7;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-indent: 1rem;
    font-size: 1rem;
    color: #1f2228;
    font-weight: 400;
    transition: border-color .2s ease;
}
.form-input input:focus{
    border-color: #f7c667;
}
.form-input input::placeholder{
    font-size: 14px;
    color: rgba(39, 53, 73, 0.9);
}
.error-message{
    font-size: 14px;
    color: #df1b41;
    padding: 3px 3px 3px 3px;
}
button.submit-form{
    width: 100%;
    height: 64px;
    border-radius: 4px;
    background-color: var(--brand-primary);
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    margin-block: 1.5rem 4rem;
    transition: all 0.3s ease;
}
button.submit-form:hover{
    background-color: var(--brand-secondary);
    color: #fff;
}
#payment-methods .form-control{
    margin-block-end: 0;
}
form.processing{
    filter: opacity(0.7) blur(0.6px);
  }
form.processing button.submit-form{
   pointer-events: none;
  }
form.processingx #loading-spinner {
    opacity: 1;
    visibility: visible;
  }

/*
#paypal-button-container{
    position: relative;
    margin-block-start: 5px;
    height: 60px;
    border-radius: 4px;
}
#paypal-button-container::after{
    content: '';
    background-image: url(../images/paypal-button-cover.svg), url(../images/paypal-button-cover-hover.svg);
    border-radius: 4px;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 10000;
    pointer-events: none;
    display: block;
}
#paypal-button-container:hover::after{
    background-image: url(../images/paypal-button-cover-hover.svg), url(../images/paypal-button-cover.svg);
}
*/
.flex-columns.default.with-title{
    --gap: 1.5rem
}
.flex-columns.default.with-title > div{
    align-items: flex-start;
    padding: 1rem;
    border-radius: 4px;
    background-color: rgba(246, 200, 110, 0.08);
}
.flex-columns.default.with-title > div p{
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    line-height: 1.2;
    max-width: 24ch;
    margin-inline: initial;
    margin-block: 0.75rem 0.25rem;
}
.flex-columns.default.with-title > div p + p{
    color: hsla(220, 13%, 14%, 0.75);
    font-size: 15px;
    font-weight: 400;
    text-align: left;
    line-height: 1.3;
    max-width: 44ch;
    margin: 0;
}
@media screen and (max-width: 1024px) {
    #checkout-hero{
        padding-block: 4rem 2rem;
    }
    #checkout-hero h1{
        font-size: 3.25rem;
    }
    .checkout-hero-badge p{
        font-size: 1.25rem;
    }
    .checkout-hero-summary{
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 960px) {
    .flex-columns.cards {
        --gap: 0.5rem;
    }
    .checkout-cards{
        max-width: 96%;
        margin-inline: auto 0;
    }
    .flex-columns.default.with-title{
        --gap: 1rem
    }
}
@media screen and (max-width: 800px) {
    .flex-columns.cards {
        --gap: 3rem;
    }
    .flex-columns.cards{
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    overflow-y: hidden;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    }
    .checkout-card{
        flex: 1 0 auto;
        scroll-snap-align: center
    }
}
@media screen and (max-width: 640px) {
    #checkout-hero{
        padding-block: 3rem 1.5rem;
        padding-inline: 0.5rem;
    }
    .flex-columns.cards {
        --gap: 1.5rem;
    }
    .checkout-card{
        padding: 1.75rem 1.25rem 0.5rem;
    }
    .checkout-card-title{
        font-size: 1.25rem;
        max-width: 20ch;
    }
    .checkout-card-text{
        font-size: 1rem;
        max-width: 28ch;
    }
    #show-checkout{
        width: 320px;
        height: 56px;
        font-size: 1.25rem;
    }
    #checkout-hero h1{
        font-size: 2.5rem;
    }
    .checkout-hero-badge{
        padding: 0.5rem 1rem;
    }
    .checkout-hero-badge img{
        width: 20px;
    }
    .checkout-hero-badge p{
        font-size: 1rem;
    }
    .checkout-hero-summary{
        font-size: 1rem;
    }
    #checkout-hero h2{
        font-size: 1.25rem;
    }
    .flex-columns.default{
        gap: 1rem;
    }
    .flex-columns.default > div img{
        width: 54px;
    }
    .flex-columns.default > div p{
       font-size: 13px;
       max-width: 16ch;
    }
    .subheading{
        font-size: 1.5rem;
    }
    h3.title{
        font-size: 1.75rem;
    }
    #checkout-wrap .subheading + p{
        font-size: 14px;
    }
    #payment-form{
       margin-block-start: 3rem;
    }
    button.submit-form{
        height: 56px;
        font-size: 1.25rem;
        margin-block: 1.25rem
    }
    #banner-reserved{
        padding: 1rem 1rem;
    } 
    .form-input input{
        height: 48px;
    }
}
@media screen and (max-width: 480px) {
    .flex-columns.cards {
        --gap: 1rem;
    }
    .flex-columns.default.with-title{
        flex-direction: column;
        --gap: 1.5rem;
        padding-inline: 1rem;
    }
    .flex-columns.default.with-title > div{
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem
    }
    #payment-form{
        padding: 2rem 0.5rem;
    }
    .form-heading{
        font-size: 1.25rem;
    }
    .flex-columns.default{
        gap: 2rem;
        flex-direction: column;
    }
    .flex-columns.default > div{
        flex-direction: row;
        gap: 1.5rem
    }
    .flex-columns.default > div img{
        width: 64px;
    }
    .flex-columns.default > div p{
       font-size: 15px;
       max-width: 18ch;
       text-align: left;
       margin-block: 0;
       line-height: 1.5;
    }
    #banner-reserved .top{
        flex-direction: column;
        gap: 0.5rem;
    }
    #banner-reserved .bottom p:nth-of-type(1){
        font-size: 20px;
    }
    #banner-reserved .bottom p:nth-of-type(2){
        font-size: 32px;
    }
    #banner-reserved .bottom p:nth-of-type(2) span{
        font-size: 24px;
    }
}

