/* Design Variables */
:root { 
    --action-blue: #3485fe;
    --brand-blue: #002d5a;
    --brand-white: #ffffff;
    --brand-grey: #cccccc;
    --action-blue: #0153cc;
    --light-blue: #dff2f9; /* Your preferred aesthetic color */
    --font-main: 'SSTRoman', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Base Reset for Iframe Stability */
body, html {
    margin: 0;
    padding: 0;
    background-color: transparent;
}

/* Fixed Height Container */
#quiz-container {
    max-width: 1000px;
    min-height: 600px; /* Fixed height to stabilize AEM grid/iframe */
    margin: 0 auto;
    padding: 30px;
    background: #003c71;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: var(--font-main);
    
    /* Flexbox layout to pin header to top and footer to bottom */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    box-sizing: border-box;
    overflow: hidden;
}



.step-text {
    font-size: 14px;
    color: var(--brand-white);
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

.progress-fill {
    background-color: var(--action-blue);
    height: 100%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

/* Question Content Area */
.inner {
    flex-grow: 1;
    display: grid;
    flex-direction: column;
    justify-content: center; /* Centers the question vertically in the fixed space */
}

.pa-header {
    color: #ffffff;
    font-size: 2.4rem;
    line-height: 120%;
    margin-bottom: 0px;
    padding-bottom: 0;
    font-weight: bold;
}
.pa-resultheader {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 120%;
    margin-bottom: 0px;
    padding-bottom: 0;
    font-weight: bold;
}

/* Horizontal Button Cards */
.pa-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    width: -webkit-fill-available;
}

/* 1. Base Unselected Card State */
.cmp-button.pa-radio {
    box-sizing: border-box;
    background: #ffffff;
    border: 2px solid #e0e7ff; /* Soft grey/blue unselected border */
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 220px;
    justify-content: center;
    position: relative;
    width: 90%;
    max-width: 400px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Base Hover Effect */
.cmp-button.pa-radio:hover {
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 118deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 3px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

/* 2. Selected Card State (Gradient Border Lines Only) */
.cmp-button.pa-radio.pa-selected {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 118deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 3px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}


/* Icon Container */
.tile-icon {
    
    pointer-events: none; /* Ensures click goes to button */
}
/* Tile Text Styling */
.tile-text {
    font-family: 'SSTRoman', Helvetica Neue, Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.3;
    font-weight: bold;
    color: #003c71;
    pointer-events: none;
}




/* Responsive Mobile view (Stack Tiles) */
@media (max-width: 650px) {
    .pa-btns {
        flex-direction: column;
        align-items: center;
    }
    .cmp-button.pa-radio {
        width: 100%;
        max-width: 330px;
        height: auto;
        padding:30px 20px;
        // min-height: 200px;
    }
}




.next-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}


/* Responsive Adjustments */
@media (max-width: 600px) {
    #quiz-container {
        height: auto; /* Allow growth on small mobile screens */
        min-height: 550px;
    }
    .pa-btns {
        flex-direction: column;
    }
    .cmp-button.pa-radio {
        width: 100% !important;
        height: auto !important;
    }
}




/* Navigation Footer */
.navigation-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-wrapper, .next-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.back-btn, .next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--brand-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    transition: opacity 0.2s;
}

.next-btn {
    background-color: #3485fe; /* Matching your purple result button color */
}

.back-text, .next-text {
    font-size: 14px;
    font-weight: bold;
    color: var(--brand-white);
}

/* Arrow Icons */
.arrow-left::before { content: "←"; color: white; font-size: 18px; }
.arrow-right::before { content: "→"; color: white; font-size: 18px; }

/* Mobile Adaptations */
@media only screen and (max-width: 480px) {
    .pa-btns {
        flex-direction: column;
        width:100%;
    }
    .cmp-button.pa-radio {
        width: 100% !important;
        height: auto !important;
    }

}

.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons {
    width: 100%;
    margin: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    font-size: 3.01067vw;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-ordinal-group: 7;
    -ms-flex-order: 3;
    order: 3;
}
.pa-step-copy
{
 -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    position: relative;
    text-align: center;
 
}
.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons button {
    background: #ffffff;
    margin: 0 0 20px 1em;
    padding: .61111em 0.6em 1em;
    border: none;
    border-radius: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Hover & Selected States */
.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons button:hover {
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 150deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 3px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons button.pa-selected {
     /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 150deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 3px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons button p {
    margin: 0 0 .34em;
    color: #003c71;
    font-size: 2.77778em;
    line-height: 1;
}
p{color:#ffffff;}
.pain-assessment-quiz button {
    cursor: pointer;
}

.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons button img {
    width: 4.66667em;
    height: auto;
}
.pain-assessment-quiz .inner .pa-step.pa-step3 .pa-level {
    margin: 0 0 .33333em;
    font-size: 1.83333em;
    font-weight: 500;
}

@media (min-width: 767px) {
    .pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons {
        width: auto;
        -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
        order: 0;
    }
}
@media (min-width: 500px) {
    .pain-assessment-quiz .inner .pa-step.pa-step3 .pa-step3-buttons {
        /* width: 500px; */
        font-size: 15.0534px;
    }
}

.pa-desc
{
 margin-top:0;
 font-weight: normal;
}
.pa-level
{font-weight: bold;}
.pain-assessment-quiz button {
    cursor: pointer;
}



.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden
}

@media (min-width: 767px) and (max-width:900px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons {
        font-size:1.57111vw
    }
}

@media (min-width: 767px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons {
        width:auto;
        margin: 1.0em 0 0
    }
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin-right: 4em
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations {
        font-size:15.4px
    }
}



.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button {
    background: #ffffff;
    margin: .55556em 0 0;
    padding: .33333em 1.72222em .27778em .11111em;
    border: none;
    border-radius: 1.11111em
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button:first-child {
    margin-top: 0
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button:before {
    content: "";
    background: url(https://image.bostonscientificasiapacific.com/lib/fe4111727564047f701470/m/1/5c7ce6a4-1983-458c-9f10-5f30c85c76e1.svg) no-repeat 50% 50%;
    background-size: contain;
    width: 1.61111em;
    height: 1.61111em;
    display: block;
    float: left;
    margin-right: .72222em
}
.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button span {
    color: #003c71;
    font-size: 1.4em;
    line-height: 1.4em;
 vertical-align: -webkit-baseline-middle;
    font-weight: 500
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button.pa-selected {
     /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 100deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 1.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button.pa-selected span
{
 color:#003c71;
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations button.pa-selected:before {
    background-image: url(https://image.bostonscientificasiapacific.com/lib/fe4111727564047f701470/m/1/8ee36958-516b-4d96-b891-df0d7c3cdf88.svg);
    background-size: .61111em .61111em;
 background-color: #003c71;
    border-radius: 12px;
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg {
    width: 25.83167em;
    height: 32.60056em
}
.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg path {
    cursor: pointer
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-text {
    fill: #003C71;
    font-size: 20px;
    font-family: SSTRoman;
    letter-spacing: -.02em
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-b,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-c {
    fill: #eff0f0;
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-b,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-c,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-d,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-e {
    stroke: #003c71;
    stroke-linejoin: round;
    stroke-width: 2px
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-c,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-d {
    fill-rule: evenodd
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-d,.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-e {
    fill: #eff0f0;
}

.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons svg .pa-svg-pain {
    fill: #af272f;
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations {
        margin-right:0
    }
}

@media (max-width: 766px) and (max-width:374px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-locations {
        font-size:3.75vw
    }
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap {
        width:10.96904em;
        position: relative;
        overflow: hidden;
        margin-left: 2.4%;
        padding: .20188em 0 0;
        font-size: 14.86px;
        -webkit-transition: width .25s;
        transition: width .25s
    }
}

@media (max-width: 766px) and (max-width:374px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap {
        font-size:3.125vw
    }
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap svg {
        position:relative;
        left: 0;
        -webkit-transition: left .25s;
        transition: left .25s
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap svg .pa-svg-text {
        display: none
    }
.pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap.pa-backside {
        width: 11.23822em
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap.pa-backside svg {
        left: -14.53567em
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider {
        width: 100%;
        position: absolute;
        bottom: -.58824em;
        right: 0;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        font-size: 1.14401em;
        text-align: center;
        cursor: pointer
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider .pa-toggle {
        background: #698cab;
        width: 2.76471em;
        height: 1.23529em;
        display: inline-block;
        position: relative;
        margin: 0 .29412em;
        border-radius: .61765em;
        vertical-align: middle
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider .pa-toggle div {
        background: #fff;
        width: 1.47059em;
        height: 1.47059em;
        position: absolute;
        right: 0;
        top: -.11765em;
        border-radius: 50%;
        -webkit-transition: right .25s;
        transition: right .25s
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider .pa-selected+.pa-toggle div {
        right: 1.29412em
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider span {
        opacity: .6
    }

    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-body-wrap .pa-slider span.pa-selected {
        opacity: 1;
        font-family: SSTBold
    }
}

@media (min-width: 767px) {
    .pain-assessment-quiz .inner .pa-step.pa-step4 .pa-step4-buttons .pa-slider {
        display:none
    }
.pain-assessment-quiz .inner .pa-step.pa-step5 button
{
width: 22em;
}

}


.pain-assessment-quiz .inner .pa-step.pa-step5 .pa-step5-buttons {
    margin: 1.94444em 0 0
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button {
    background: #fff;
    width: 25em;
    height: 4.66667em;
    display: block;
    float: left;
    position: relative;
    margin: .55556em;
    padding: 0 0 0 0;
    border: none;
    border-radius: 1.38889em;
    text-align: center;
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button:nth-child(2n+3) {
    clear: both
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button:before {
    content: "";
    background: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/treatment-+.svg) no-repeat 50% 50%;
    background-size: contain;
    width: 1.61111em;
    height: 1.61111em;
    display: block;
    position: absolute;
    top: 1.52778em;
    right: 1.5em
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button span {
    color: #053f73;
    font-size: 1.4em;
    line-height: 1.4em;
    font-weight: 500
}


.pain-assessment-quiz .inner .pa-step.pa-step5 button:hover {
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 98deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 2.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button.pa-selected {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 98deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 2.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button.pa-selected:before {
    background-image: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/treatment-x.svg)
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button.pa-selected span {
    color: #053f73;
}

@media (max-width: 1024px) and (min-width:767px) {
    .pain-assessment-quiz .inner .pa-step.pa-step5>div {
        font-size:1.38086vw
    }
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step5 {
        padding-top:4em
    }

    .pain-assessment-quiz .inner .pa-step.pa-step5>div {
        font-size: 15.3px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center
    }

   .pain-assessment-quiz .inner .pa-step.pa-step5>div button {
        width: 25em;
    }
}

.pain-assessment-quiz .inner .pa-step.pa-step6 div {
    margin: 1.33333em 0 1.16667em
}

.pain-assessment-quiz .inner .pa-step.pa-step6 p.pa-info {
    background: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/info.svg) no-repeat 0 0;
    background-size: 1.11111em;
   // width: 50.22222em;
    position: relative;
    margin: 0 auto;
    padding: 0 1.83333em;
    font-size: 1em;
    line-height: 1.33333em;
    text-align: center;
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step6 .pa-larger {
        max-width:100%
    }

    .pain-assessment-quiz .inner .pa-step.pa-step6 div {
        margin: 1em 0
    }

    .pain-assessment-quiz .inner .pa-step.pa-step6 p.pa-info {
        max-width: 100%;
        font-size: 1.20226em
    }
}

.pain-assessment-quiz .inner .pa-step.pa-step7 .pa-step7-buttons {
    margin: 1.94444em 0 0
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button {
    background: #fff;
    width: 25em;
    height: 4.66667em;
    display: block;
    float:left;
    position: relative;
    margin: .55556em;
    padding: 0 0 0 0;
    border: none;
    border-radius: 1.38889em;
    text-align: center;
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button:nth-child(2n+3) {
    clear: both
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button:before {
    content: "";
    background: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/treatment-+.svg) no-repeat 50% 50%;
    background-size: contain;
    width: 1.61111em;
    height: 1.61111em;
    display: block;
    position: absolute;
    top: 1.52778em;
    right: 1.5em
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button span {
    color: #053f73;
    font-size: 1.4em;
    line-height: 1.4em;
    font-weight: 500
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button:hover {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 98deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 1.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button.pa-selected {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 98deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 1.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button.pa-selected:before {
    background-image: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/treatment-x.svg)
}

.pain-assessment-quiz .inner .pa-step.pa-step7 button.pa-selected span {
    color: #053f73;
}

@media (max-width: 1024px) and (min-width:767px) {
    .pain-assessment-quiz .inner .pa-step.pa-step7>div {
        font-size:1.38086vw
    }
}

@media (max-width: 766px) {
    .pain-assessment-quiz .inner .pa-step.pa-step7 {
        padding-top:4em
    }

    .pain-assessment-quiz .inner .pa-step.pa-step7>div {
        font-size: 15.3px;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center
    }

   .pain-assessment-quiz .inner .pa-step.pa-step7>div button {
        width: 25em;
       // padding-right: 3.26797em
    }
}


/* STEP 8 */
.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-step-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pain-assessment-quiz .inner .pa-step.pa-step8 button {
    background: #fff;
    width: 22.77778em;
    height: 4.66667em;
    display: block;
    position: relative;
    margin: .55556em;
    padding: 0 0 0 0;
    border: none;
    border-radius: 1.38889em;
    text-align: center;
}

.pain-assessment-quiz .inner .pa-step.pa-step8 button:nth-child(2n+3) {
    clear: both
}

.pain-assessment-quiz .inner .pa-step.pa-step8 button:before {
    content: "";
    background: url(https://www.pain.com/etc.clientlibs/gwc/paindotcom/clientlibs/clientlib-site/resources/images/pain-assessment/treatment-+.svg) no-repeat 50% 50%;
    background-size: contain;
    width: 1.61111em;
    height: 1.61111em;
    display: block;
    position: absolute;
    top: 1.52778em;
    right: 1.5em;
}

.pain-assessment-quiz .inner .pa-step.pa-step8 button span {
    color: #053f73;
    font-size: 1.2em;
    line-height: 1.2em;
    font-weight: 500;
}


.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-larger {
  width: 100%;
  text-align: center;
  margin: 2rem 0 1rem;
}

/* BUTTON GROUP */
.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-btns {
  display: flex;
  flex-direction: column;   /* ðŸ”¥ stack vertically */
  gap:1px;
  width: 100%;
  align-items: center;
}

/* BUTTON STYLE */
.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-radio {
  width: 100%;              /* ðŸ”¥ full width */
  max-width: 80%;          
  display: block;
  text-align: center;         /* optional for better UX */
  padding: 18px 20px;
}

.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-radio:hover {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 95deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 1.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}

/* SELECTED STATE */
.pain-assessment-quiz .inner .pa-step.pa-step8 .pa-radio.pa-selected {
    /* Paints an opaque white interior mask layer over a complete underlying conic gradient framework */
    background: linear-gradient(#ffffff, #ffffff) padding-box, 
                conic-gradient(from 95deg, #f0a0ff 0%, #f0a0ff 50%, #00e5ff 50%, #00e5ff 100%) border-box;
    border: 1.5px solid transparent; 
    border-radius: 16px;
    
    /* Slightly lifts up on click selection */
    transform: translate(0px, -2px); 

    /* Generates the exact solid offset shadow layer peeking out the bottom-left edge */
    box-shadow: 0px 2px 0px 0px #f0a0ff, 
                0px 2px 0px 0px #f0a0ff;
}
.pain-assessment-quiz .inner .pa-step.pa-step8 button.pa-selected span {
    color: #053f73;
}

.pa-body-back .pa-body-front
{
color:#ffffff;
}


/* MOBILE */
@media (max-width: 766px) {

  .pain-assessment-quiz .inner .pa-step.pa-step8 .pa-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .pain-assessment-quiz .inner .pa-step.pa-step8 .pa-radio {
    width: 100%;
    max-width: 100%;
  }

  .pain-assessment-quiz .inner .pa-step.pa-step8 .pa-larger {
    text-align: center;
  }
}
.pa-step9
{
padding-top:30px;
padding-bottom:30px;
}
.form-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 20px 40px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input, 
.form-group select {
  padding: 12px 15px;
  border: 1px solid #d1d9e6;
  border-radius: 10px;
  background: white;
  font-size: 1rem;
  color: #333;
}

/* Consent Styling */
.consent-section {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.consent-text {
  font-weight: bold;
  color: #003366;
  font-style: italic;
  font-size: 0.95rem;
}

.privacy-note {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #003366;
  line-height: 1.4;
}
@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
.pa-header {
    color: #ffffff;
    font-size: 1.2rem !important;
    line-height: 120%;
    margin-bottom: 0px;
    padding-bottom: 0;
    font-weight: bold;
}
img
{
width:80px;
}

.pain-assessment-quiz .inner .pa-step.pa-step5 button
{
float:none;
}
.pain-assessment-quiz .inner .pa-step.pa-step7 button
{
float:none;
}
}