@font-face {
    font-family: "Lato-Regular";
    src: url("../font/lato/Lato-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Lato-Black";
    src: url("../font/lato/Lato-Black.ttf") format("truetype");
}

@font-face {
    font-family: "Lato-Bold";
    src: url("../font/lato/Lato-Bold.ttf") format("truetype");
}

:root {
    --primary-color: #290091;
    --secondary-color: #fecf00;
    --blue-text: #00a8eb;
    --text-color: #000;
    --color-BG: #a1d0ef;
    --color-FG: #4d9bcf;
    --color-BG2: #e0effa;
    --hyperlink-color: #62b0e4;
}

.consent-txt {
    font-weight: 100;
}

html {
    scroll-behavior: smooth !important;
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 120%;
    color: var(--text-color);
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#footer-section {
    margin-top: auto;
}

.no-wrap-txt {
    white-space: nowrap;
}

section {
    background: url("../img/blue-BG.png") no-repeat;
    background-size: 100% 100%;
    background-position: center 0;
    padding-bottom: 80px;
    margin-bottom: 60px;
}

section .container h1 {
    text-align: center;
    color: var(--white);
    font-size: 30px;
    font-weight: bold;
    padding: 40px 0 20px;
    margin-bottom: 0;
}

.welcome-box-container {
    padding-top: 50px;
}

.welcome-box-container,
#choose-card {
    max-width: 900px;
}

.form-wrap,
.elig-critia-container {
    max-width: 980px;
}

.elig-critia-container {
    margin-bottom: 50px;
}

.welcome-box {
    width: 100%;
    border-radius: 35px;
    padding-top: 35px;
    padding-bottom: 30px;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    background: var(--color-FG);
}

.my-saving-prg {
    width: 90%;
    max-width: 320px;
}

.welcome-box h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.divider-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    width: 100%;
    margin: 20px auto;
}

.divider-line .line {
    height: 5px;
    background: #fed100;
    border-radius: 5px;
    width: calc(50% - 20px);
}

.divider-line .full-line {
    height: 5px;
    background: #fed100;
    border-radius: 5px;
    width: 100%;
}

.divider-line .dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background: var(--white);
}

.checkmark-img {
    display: block;
    max-width: 50px;
}

.exclamation-img {
    display: block;
    max-width: 70px;
}

.result-section-header-txt {
    width: 100%;
    text-align: center;
    color: white;
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
    margin-top: 20px;
}

.result-section-subtxt {
    width: 100%;
    color: white;
    margin-top: 20px;
    text-align: center;
}

.result-section-subtxt p {
    max-width: 600px;
    margin: auto;
    display: block;
    font-size: 16px;
}

#download-copay-card-section .result-section-subtxt p {
    line-height: 21px;
}

#activated-copay-card-section .result-section-subtxt p {
    line-height: 24px;
    max-width: 500px;
}

#api-error-section .result-section-subtxt p {
    max-width: 460px;
}

#old-card-section .result-section-subtxt p {
    max-width: 400px;
    line-height: 24px;
}

.result-section-wrapper a,
.result-section-wrapper a:hover {
    color: white;
    text-decoration: none;
}

#download-copay-card-section .btn-wrapper,
#api-error-section .btn-wrapper,
#already-enrolled-section .btn-wrapper,
#old-card-section .btn-wrapper {
    max-width: 300px;
    margin: auto;
    margin-top: 30px;
    display: block;
}

#download-copay-card-pdf-btn,
#api-error-back-btn,
#already-enrolled-back-btn,
#old-card-back-btn {
    font-family: "Lato-Bold";
    background-color: var(--color-FG);
    font-size: 16px;
}

#already-enrolled-data {
    margin-top: 10px;
}

#already-enrolled-date-wrapper {
    display: block;
}

.logo-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 520px;
}

.logo-wrap img {
    width: 190px;
}

.logo-wrap p {
    color: var(--white);
    font-size: 21px;
    font-weight: bold;
    line-height: 130%;
}

.logo-wrap p:last-of-type {
    font-weight: normal;
}

.logo-wrap .copay {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 40px;
}

.header-see-terms-txt {
    margin-top: 15px;
    color: var(--white);
    font-size: 13px;
}

.logo-wrap .copay sup {
    font-size: 36px;
    top: -3px;
}

#choose-card {
    position: relative;
    z-index: 1;
}

#choose-card ul {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

#choose-card ul li {
    width: calc(50% - 25px);
}

#choose-card ul li label {
    background: var(--color-FG);
    border-radius: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 22px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 20px 20px 15px;
    margin-bottom: 0;
}

#choose-card ul li input {
    display: none;
}

#choose-card ul li .selection-btn {
    position: relative;
    padding-left: 40px;
    margin-top: 20px;
}

#choose-card ul li .selection-btn::before {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 20px;
    background: var(--white);
    border: 3px solid var(--white);
    position: absolute;
    left: 0;
    top: 5px;
}

#choose-card ul li .selection-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 16px;
    font-weight: 400;
    gap: 3px;
}

#choose-card ul li .selection-btn span strong {
    font-size: 18px;
    font-weight: 600;
}

#choose-card ul li input:checked ~ label {
    background: var(--secondary-color);
    color: var(--primary-color);
}

#choose-card ul li input:checked ~ label .selection-btn::before {
    background: var(--primary-color);
}

section:has(#choose-card li input:checked) {
    background-size: 100% 580px !important;
    padding-bottom: 40px;
    margin-bottom: 20px;
}

section:has(#div-age input:checked) {
    background-size: 100% 640px !important;
}

.form-wrap {
    background: var(--color-BG2);
    border-radius: 15px;
    padding-top: 80px;
    padding-bottom: 40px;
    padding-right: 140px;
    padding-left: 140px;
    margin-top: -50px;
}

.form-wrap .btm-download-txt,
.btm-activate-txt {
    font-size: 14px;
    line-height: 150%;
    font-weight: 500;
}

.form-control {
    background: var(--white);
    border: transparent;
    height: 34px;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
}

.form-control::-ms-input-placeholder {
    color: #999;
}

.form-control::placeholder {
    color: #999;
}

.error .form-control {
    border: 1px solid rgba(201, 12, 47, 0.5);
}

#heading-tag {
    font-size: 12px;
    font-weight: 700;
}

.radio-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.radio-wrap .radio-btn:first-of-type {
    margin-right: 30px;
}

.radio-wrap .radio-btn input {
    display: none;
}

.radio-wrap .radio-btn label {
    padding-left: 28px;
    position: relative;
    cursor: pointer;
}

.radio-wrap .radio-btn label::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 20px;
    border: 3px solid var(--white);
    outline: 1px solid #999;
    background: var(--white);
    position: absolute;
    left: 0;
    top: -2px;
}

.radio-wrap .radio-btn input:checked ~ label::before {
    background: var(--color-FG);
}

/* Make links with class 'plain-link' look like normal text */
.plain-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.eligibility-ques {
    margin-bottom: 20px;
}

.eligibility-ques > label {
    font-weight: bolder;
    margin-bottom: 16px;
}

.eligibility-ques > label span {
    font-weight: normal;
    font-size: 14px;
    display: block;
    margin-top: 10px;
}

.eligibility-error {
    font-weight: bold;
}

.eligibility-error a {
    color: var(--blue-text);
    display: inline-block;
    margin-top: 10px;
    padding-right: 20px;
    background: url("../img/external-icon.svg") no-repeat right -1px;
    background-size: 19px auto;
}

.patient-info-wrap h3 {
    color: var(--primary-color);
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
}

.patient-info-wrap h6 {
    font-weight: 800;
    margin-bottom: 25px;
}

.field-wrap {
    font-weight: 700;
    margin-bottom: 30px;
}

.field-wrap label {
    margin-bottom: 5px;
}

.select-wrap {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    max-width: 320px;
}

.select-wrap .form-control:nth-child(2) {
    min-width: 120px;
}

.consent-wrap {
    border-radius: 10px;
    background: var(--white);
    padding: 25px 15px;
    margin: 40px 0 30px;
}

#market-research-wrapper,
#hippa-consent-wrapper {
    display: flex;
}

.wallet-icon-wrapper img {
    width: 150px;
    height: auto;
    object-fit: cover;
    margin-right: 30px;
    margin-top: 20px;
}

#learn-more-dtc-wrapper {
    font-size: 14px;
}

#learn-more-tandc-wrapper {
    font-size: 14px;
}

#hippa-consent-txt-wrapper,
#market-research-txt-wrapper {
    padding-left: 8px;
}

#hippa-consent-wrapper p {
    font-size: 14px;
    margin-bottom: 0px;
}

.text-alert-wrapper {
    margin-left: 30px;
}

.consent-wrap label strong,
.consent-wrap .consent-wrap-alert label strong,
.adv-wrap .chkbox-btn label strong {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-content: center;
    justify-content: center;
    font-size: 3px;
    padding: 3px;
    border: 1px solid #999;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 5px;
}

input[type="checkbox"]::before {
    content: "";
    width: 15px;
    height: 15px;
    clip-path: polygon(28% 38%, 41% 53%, 75% 24%, 86% 38%, 40% 78%, 15% 50%);
    transform: scale(0);
    background-color: #00a8eb;
    top: 0px;
    position: relative;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"][disabled] {
    cursor: default;
    background-color: #ebebeb;
    border: 2px solid #ebebeb;
}

.chkbox-btn label {
    padding-top: 2px;
    cursor: pointer;
}

.chkbox-btn label.disabled-checkbox-label {
    color: gray;
    cursor: default;
}

.chkbox-btn label {
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0;
    position: relative;
}

.chkbox-btn label span {
    margin-top: 2px;
    margin-left: 8px;
}

#learn-more-dtc-wrapper p a,
.consent-wrap p a,
.btm-activate-txt a,
.btm-download-txt a {
    color: var(--hyperlink-color);
    font-weight: 600;
}

#hippa-consent-phone {
    font-weight: 400;
    color: black;
}

#hippa-consent-phone:hover {
    font-weight: 400;
    color: black;
    text-decoration: none;
}

.btn-wrap {
    background: none;
    border: none;
    display: block;
    justify-content: center;
    text-align: center;
    margin: 30px auto 0;
}
.btn-wrap img {
    display: block;
    max-width: 200px;
}

.to-do-bold {
    font-weight: bold;
}

#txt-alert-cls {
    margin-left: 40px;
}

.adv-wrap {
    border-radius: 10px;
    background: var(--white);
    padding: 25px 15px;
    margin: 40px 0 30px;
}

.adv-label {
    font-weight: 700;
    margin-left: 10px;
    position: absolute;
}

.adv-text {
    font-weight: 600;
}

.adv-padding {
    padding-left: 3px;
}

.tnc-style {
    font-weight: 500 !important;
}

.checkbox-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 30px;
}

.tnc-wrap {
    font-size: 16px;
    line-height: 24px;
}

.tnc-wrap h5 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 15px;
}

.tnc-wrap p {
    margin-bottom: 10px;
}

.tnc-wrap ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tnc-wrap ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 15px;
}

.tnc-wrap ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 18px;
    line-height: 24px; /* this needs to match the line height of the text */
}

.tnc-wrap ul li a {
    color: currentColor;
}

.footer-wrap {
    background: var(--color-BG);
    color: var(--primary-color);
}

.footer-wrap .container {
    position: relative;
    padding-top: 40px;
    padding-bottom: 40px;
    font-size: 10px;
}

.footer-wrap .back-to-top {
    position: absolute;
    right: 0;
    top: 0;
    width: 28px;
    transform: translateY(-50%);
    cursor: pointer;
}

.footer-wrap img {
    width: 200px;
    margin-bottom: 20px;
}

.footer-wrap p {
    margin: 10px 0 20px;
}

.footer-wrap ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
}

.footer-wrap ul li:not(:last-of-type) {
    margin-right: 25px;
}

.footer-wrap ul li a {
    color: var(--primary-color);
}

.resp-only {
    display: none;
}

#form-submit-btn-wrapper {
    display: block;
    margin: auto;
    max-width: 300px;
}

.submit-btn {
    background-color: #00a9eb;
    font-size: 12px;
    color: #fff;
    border: 0;
    padding: 16px 0px;
    border-radius: 36px;
    font-weight: bold;
    position: relative;
    display: block;
    margin: auto;
    width: 100%;
}

.activate-copay-card-btn img {
    margin-top: -4px;
    margin-left: 10px;
}

.download-copay-card-btn img {
    width: 20px;
    margin-top: -4px;
    margin-left: 5px;
}

.form-element-validation-error {
    color: #c90c2e;
    font-weight: 400;
    font-size: 13px;
}

#receive-comm-error-wrapper {
    margin-top: 10px;
}

@media only screen and (max-width: 767px) {
    .resp-only {
        display: block;
    }

    .welcome-box {
        border: none;
    }

    .two-dots {
        background: none;
    }

    .two-dots .left-bar,
    .two-dots .right-bar {
        border-radius: 5px;
    }

    .two-dots.resp-only {
        top: inherit;
        bottom: 0;
    }

    section {
        background-size: 160% 980px !important;
        height: 1000px;
        max-height: 1000px;
        margin-bottom: 0px;
    }

    section.old-card-section-background {
        background-size: 160% 600px !important;
        height: 600px;
        max-height: 600px;
        margin-bottom: 0px;
    }

    section.activated-card-section-background {
        background-size: 160% 500px !important;
        height: 530px;
        max-height: 530px;
        margin-bottom: 0px;
    }

    section.api-error-section-background {
        background-size: 160% 550px !important;
        height: 560px;
        max-height: 560px;
        margin-bottom: 0px;
    }

    section.already-enrolled-section-background {
        background-size: 160% 550px !important;
        height: 560px;
        max-height: 560px;
        margin-bottom: 0px;
    }

    section:has(#choose-card li input:checked) {
        background-size: 160% 980px !important;
        background-color: var(--color-BG2);
        padding-bottom: 20px;
        height: auto;
        max-height: none;
    }

    section:has(#div-age input:checked) {
        background-size: 160% 980px !important;
        background-color: var(--color-BG2);
        height: auto;
        max-height: none;
    }

    .logo-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #choose-card ul {
        flex-direction: column;
        gap: 20px;
    }

    #choose-card ul li {
        width: calc(100% - 10px);
    }

    .form-wrap {
        padding: 0px 20px 40px;
        border-radius: 0px;
        margin-top: 193px;
        margin-bottom: 0px;
    }

    .select-wrap {
        max-width: 100%;
        gap: 10px;
    }

    .select-wrap .form-control:nth-child(2) {
        min-width: 45%;
    }

    .footer-wrap .back-to-top {
        right: 20px;
    }

    .footer-wrap ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-wrap p {
        margin: 15px 0;
    }

    .doc-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .comm-wrap {
        margin-left: -12px;
        padding-top: 8px;
    }

    .text-alert {
        margin-left: -10px;
        padding-top: 8px;
    }

    #email-chkbox {
        padding-left: 30px;
        font-weight: 400;
        margin-bottom: 0;
        position: relative;
        padding-top: 0px;
        margin-left: 0px;
    }

    .text-alert {
        margin-left: 80px;
        margin-top: -32px;
    }

    #txt-alert-cls {
        padding-top: 0px;
    }

    #tnc-link ul li {
        color: var(--text-color) !important;
    }

    #tnc-link p {
        color: var(--text-color) !important;
    }

    .consent-txt {
        font-weight: 100 !important;
    }

    .consent-wrap-alert {
        flex-direction: column;
        gap: 10px !important;
    }

    .text-alert-wrapper {
        margin-left: 0px;
    }
}

@media only screen and (max-width: 825px) {
    .radio-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media only screen and (max-width: 576px) {
    section.already-enrolled-section-background {
        background-size: 160% 600px !important;
        height: 610px;
        max-height: 610px;
    }
}

@media only screen and (max-width: 540px) {
    section.download-card-section-background {
        background-size: 190% 1050px !important;
        height: 1070px;
        max-height: 1070px;
    }
}

@media only screen and (max-width: 520px) {
    .select-wrap {
        flex-direction: column;
    }
}

@media only screen and (max-width: 455px) {
    section.activated-card-section-background {
        background-size: 160% 550px !important;
        height: 580px;
        max-height: 580px;
    }
}

@media only screen and (max-width: 415px) {
    section.api-error-section-background {
        background-size: 160% 600px !important;
        height: 610px;
        max-height: 610px;
    }
}

@media only screen and (max-width: 410px) {
    section.already-enrolled-section-background {
        background-size: 160% 650px !important;
        height: 660px;
        max-height: 660px;
    }
}

@media only screen and (max-width: 390px) {
    section.old-card-section-background {
        background-size: 160% 700px !important;
        height: 1000px;
        max-height: 1000px;
    }
}

@media only screen and (max-width: 380px) {
    section.download-card-section-background {
        background-size: 190% 1150px !important;
        height: 1170px;
        max-height: 1170px;
    }
}

@media only screen and (max-width: 360px) {
    section.activated-card-section-background {
        background-size: 160% 600px !important;
        height: 630px;
        max-height: 630px;
    }
}

@media only screen and (max-width: 330px) {
    section.already-enrolled-section-background {
        background-size: 160% 670px !important;
        height: 680px;
        max-height: 680px;
    }
}

@media only screen and (min-width: 576px) {
    #already-enrolled-date-wrapper {
        display: inline-block;
        margin-left: 20px;
    }
}
