@font-face {
    font-family: 'Apis';
    src: url('assets/fonts/WOFF-2-TT/ApisWeb-Regular.woff2') format('woff2'),
    url('assets/fonts/WOFF-TT/ApisWeb-Regular.woff')  format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Apis';
    src: url('assets/fonts/WOFF-2-TT/ApisWeb-Bold.woff2')  format('woff2'),
    url('assets/fonts/WOFF-TT/ApisWeb-Bold.woff')  format('woff');
    font-weight: 700;
    font-style: normal;
}
body {
    font-family: 'Apis', Arial, sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header {
    padding-left: 128px;
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    justify-content: start;
    align-items: start;
    max-width: 1241px;
    width: 100%;
}
.logo-svg {
    width: 220px;
    height: auto;
    display: block;
}
.hero-img {
    width: 100%;
    max-width: 1241px;
    height: 482px;
    object-fit: cover;
    /* Match Figma: rounded top-left + bottom-right */
    border-radius: 100px 0 100px 0;
    margin-bottom: 8px;
    display: block;
}
.image-disclaimer {
    width: 100%;
    max-width: 1241px;
    margin: 0 auto 24px;
    padding: 0 16px;
    box-sizing: border-box;
    text-align: left;
    color: #474747;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
}
.content {
    padding-left: 16px;
    padding-right: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1241px;
    margin: 0 auto;
    box-sizing: border-box;
}
.content-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
    align-items: start;
    box-sizing: border-box;
}
@media screen and (min-width: 769px) {
    .content-columns {
        grid-template-columns: 1fr 1fr;
    }
}
.content-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.content-col-2 .message {
    margin-top: 0;
}
.content-col-2 .patient-btn,
.content-col-2 .hcp-btn {
    width: 100%;
    max-width: 100%;
}
/* AU homepage: single-column layout (ISD-14589) */
.home-au {
    align-items: stretch;
}
.home-au .welcome-title {
    text-align: left;
    font-size: 40.09px;
    line-height: normal;
}
/* Patient enrolment: tighter heading/body spacing (design feedback) */
.patient-enrol .welcome-title {
    margin-bottom: 0;
}
.patient-enrol .message {
    margin-top: 16px;
    margin-bottom: 40px;
}
.patient-enrol .text-content p {
    margin: 0 0 12px;
}
.patient-enrol .text-content p:last-child {
    margin-bottom: 0;
}
.home-au-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.home-au-actions .patient-btn,
.home-au-actions .hcp-btn {
    width: 100%;
    max-width: 602px;
    margin-bottom: 0;
}
/* Responsive 16:9 video embed */
.video-embed {
    width: 100%;
    height: 0;
    position: relative;
    padding-bottom: 56.25%;
    margin-top: 24px;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-link-wrap {
    color: #474747;
    text-align: center;
    font-family: Apis;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}
.video-direct-link {
    color: #007EA8;
    text-decoration: none;
}
.video-direct-link:hover {
    text-decoration: underline;
}
.product-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.welcome-title {
    width: 100%;
    max-width: 1241px;
    font-family: 'Apis', Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    /* Patient / HCP / Thank you titles (Figma ~46.556px) */
    font-size: 46.556px;
    line-height: 50px;
    text-align: start;
    color: #0092BC;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    box-sizing: border-box;
}
.welcome-title .wegovycare,
.welcome-title .wegovycare i,
.welcome-title .wegovycare sup {
    color: #C6007E;
}
.wegovycare i,
.info-text i,
.video-link-wrap i,
.title2 i {
    margin-left: -0.06em;
}
.container {
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    justify-items: center;
}
.container2 {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 16px;
    box-sizing: border-box;
    flex: 1;
}
.message {
    width: 100%;
    margin: 40px 0 60px 0;
    font-size: 1.2rem;
    text-align: left;
}
.info-text {
    width: 100%;
    max-width: 1241px;
    font-family: 'Apis', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: normal;
    color: #474747;
    align-self: stretch;
    flex-grow: 0;
}
.barcode-register-text {
    color: #474747;
    font-family: Apis, Arial, sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.patient-btn {
    background: #C6007E;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 25.04px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
    width: 602px;
    max-width: 100%;
    height: auto;
    min-height: 53px;
    padding: 10px 24px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.hcp-btn {
    background: #007EA8;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 24px;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 25.04px;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
    width: 602px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.patient-btn:hover {
    background: #a00063;
}
.footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 16px;
    width: 100%;
    max-width: 1240px;
    min-height: 110px;
    height: auto;
    margin-top: auto;
    margin-bottom: 24px;
}
.footer-line {
    max-width: 1240px;
    width: 100%;
    height: 0px;
    border: 1px solid #C1C6C8;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}
.success-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 100;
    padding-left: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}
.footer-text {
    max-width: 1240px;
    width: 100%;
    font-family: 'Apis', Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: #474747;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    text-align: left;
}
/* Figma keeps this instruction on a single line at desktop (205:475) */
.hcp-access-instruction {
    font-weight: 700;
    white-space: nowrap;
}
@media screen and (max-width: 1200px) {
    .hcp-access-instruction {
        white-space: normal;
    }
}
.hcp-field {
    position: relative;
    width: 507px;
    max-width: 100%;
    margin-top: 8px;
}
.hcp-field-label {
    position: absolute;
    left: 12px;
    top: -8px;
    z-index: 1;
    padding: 0 6px;
    background: #fff;
    color: #757575;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    pointer-events: none;
}
.hcp-access-code-input {
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    color: #0F1E2D;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
    text-align: left;
    padding: 16px;
    margin: 0;
    border: 1px solid #C1C6C8;
    border-radius: 4px;
    background: #fff;
    outline: none;
}
.hcp-access-code-input:focus {
    border-color: #C6007E;
}
.hcp-field.is-error .hcp-field-label {
    color: #AD1208;
}
.hcp-field.is-error .hcp-access-code-input {
    border-color: #AD1208;
}
.hcp-access-code-form {
    margin-top: 30px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}
.hcp-access-code-btn, .hcp-form-btn {
    padding: 8px 20px;
    font-size: 16px;
    margin-top: 40px;
    width: 507px;
    height: 68px;
    background: #C6007E;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 32px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}
.hcp-access-code-btn:disabled, .hcp-form-btn:disabled {
    background: #E0E0E0;
    color: #9E9E9E;
    cursor: not-allowed;
    opacity: 0.7;
}

.title1 {
    color: #0092BC;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 46.556px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 75%;
    margin-top: 32px;
    margin-bottom: 8px;
}


.title2{
    color: #474747;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 75%;
    margin-top: 8px;
    margin-bottom: 8px;
}

.title3 {
    font-family: 'Apis', Arial, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: normal;
    letter-spacing: 0%;
    color: #474747;
    margin-bottom: 24px;
}


.section1 {
    width: 100%;
    margin-top: 32px;
}

md-grid-row{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 16px;
    margin-bottom: 32px;
}

md-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 16px;
}

md-grid-cell {
    flex: 1 1 300px; /* Flex-grow, flex-shrink, and base width */
    display: flex;
    flex-direction: column;
    gap: 28px;
}

md-outlined-text-field{
    width: 100%;
}

.checkpoint-agreement{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: start;
    gap: 16px;
}

.checkpoint-agreement > div {
    width: 100%;
    margin-top: -12px;
    padding-left: 48px;
    box-sizing: border-box;
}

.checkpoint-agreement > label {
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.checkpoint-agreement > label md-checkbox {
    flex: 0 0 auto;
    margin-top: 2px;
}

.label {
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #474747;
    height: 10px;
}

.checkpoint-label{
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding-top: 0;
    margin-left: 0;
    color: #474747;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}
.checkpoint-label a {
    color: #1861D3;
    text-decoration: underline;
}

.submit-section{
    margin-top: 48px;
    width: 100%;
    justify-content: end;
    align-content: center;
    display: flex;
}

.signup-form{
    padding-bottom: 32px;
}

.form-container {
    width: 100%;
    max-width: 1241px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.info-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.qr-code-placeholder {
    width: 317.102px;
    height: 317.102px;
    flex-shrink: 0;
    border-radius: 32px;
    background: #D9D9D9;
}

.text-content {
    margin-bottom: 24px;
}

.app-stores {
    display: flex;
    gap: 16px;
    align-items: center;
}

.app-store-btn {
    width: 196.185px;
    height: 58.129px;
    flex-shrink: 0;
}

.desktop-only {
    display: flex;
}

.tablet-only {
    display: none;
}
.hcp-error-message{
    display: none;
    color: #AD1208;
    font-family: 'Apis', Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 19.5px;
    margin: 8px 0 0 16px;
}
@media screen and (max-width: 1024px) {
    .header {
        padding-left: 0;
        padding-right: 0;
        justify-content: center;
    }
    .container {
        padding: 0 16px;
    }
    .container2 {
        padding: 0 16px;
    }
    .content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .welcome-title {
        width: 100%;
    }
    .patient-btn, .hcp-btn {
        width: 100%;
        max-width: 602px;
    }
    .home-au-actions .patient-btn,
    .home-au-actions .hcp-btn {
        max-width: 602px;
    }
    .hcp-field, .hcp-access-code-btn, .hcp-form-btn {
        width: 100%;
        max-width: 507px;
    }
    .title1, .title2 {
        width: 100%;
    }
    .hcp-access-code-form {
        align-items: center;
        text-align: center;
    }
    .form-container {
        max-width: 90%;
    }
    .submit-section {
        justify-content: center;
    }
    .info-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    .qr-code-placeholder {
        width: 100%;
        max-width: 317.102px;
        aspect-ratio: 1;
    }
    .desktop-only {
        display: none;
    }
    .tablet-only {
        display: flex;
        justify-content: center;
        margin-top: 48px;
        margin-left: -10px;
    }
}

/* Mobile 390px (Figma 144:175) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0;
    }
    .container2 {
        padding: 0;
    }
    /* Figma 144:176 — 206×38 at x:49 y:18 on 390px frame */
    .header {
        padding: 18px 0 13px 49px;
        justify-content: flex-start;
        max-width: 100%;
    }
    .header svg,
    .logo-svg {
        width: 206px;
        height: 38px;
    }
    /* Full-bleed hero: ~245px tall, ~51px corner radius */
    .hero-img {
        width: 100%;
        max-width: 100%;
        height: 245px;
        border-radius: 51px 0 51px 0;
        margin-bottom: 8px;
    }
    .image-disclaimer {
        padding: 0 31px;
        margin-bottom: 16px;
        max-width: 100%;
    }
    .content {
        padding-left: 31px;
        padding-right: 31px;
        max-width: 100%;
    }
    .home-au .welcome-title,
    .welcome-title {
        font-size: 32px;
        line-height: 38px;
    }
    .info-text,
    .barcode-register-text {
        font-size: 18px;
        line-height: normal;
    }
    .home-au-actions {
        gap: 16px;
    }
    .patient-btn,
    .hcp-btn,
    .home-au-actions .patient-btn,
    .home-au-actions .hcp-btn {
        width: 293px;
        max-width: 100%;
        min-height: 73px;
        height: auto;
        padding: 6px 26px;
        font-size: 20px;
        font-weight: 700;
        line-height: normal;
        border-radius: 45px;
    }
    .message {
        margin: 24px 0 32px;
    }
    .footer {
        padding: 0 19px 24px;
        max-width: 100%;
        box-sizing: border-box;
    }
    .footer-text {
        font-size: 14px;
        text-align: center;
    }
}
