@font-face {
    font-family: bbold;
    src: url(../fonts/Brandon_bld.otf);
}
@font-face {
    font-family: bblack;
    src: url(../fonts/Brandon_blk.otf);
}
@font-face {
    font-family: blight;
    src: url(../fonts/Brandon_light.otf);
}
@font-face {
    font-family: breg;
    src: url(../fonts/Brandon_reg.otf);
}

html {
    scroll-behavior: smooth;
}
body,
html {
    height: 100%;
    position: relative;
    overflow: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    font-weight: normal;
}
a {
    outline: none;
    text-decoration: none !important;
}
a,
button,
i {
    text-decoration: none;
}
a:focus,
a:hover {
    text-decoration: none;
}
ul,
ol {
    margin: 0;
    padding: 0;
}
input:focus,
input.form-control:focus,
textarea:focus,
textarea.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    border-color: unset;
    border: 0;
}
input::placeholder {
    color: #fff;
}
#global {
    display: flex;
    align-items: start;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: relative;
}
#global .bg {
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -11;
}
#global .borderbtm {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: auto;
}
#global .borderbtm img {
    width: 100%;
}
#global .confidential {
    font-family: blight;
    font-size: 0.5rem;
    border: 1px solid #fff;
    color: #fff;
    position: absolute;
    left: 40px;
    bottom: 15px;
    padding: 5px;
    letter-spacing: 2px;
}
#global .pmra {
    font-family: blight;
    font-size: 0.4rem;
    color: #fff;
    position: absolute;
    left: 150px;
    bottom: 15px;
    padding: 5px;
    letter-spacing: 2px;
}
#global .text {
    font-family: blight;
    font-size: 0.7rem;
    color: #fff;
    position: absolute;
    left: 150px;
    bottom: 30px;
    padding: 5px;
    letter-spacing: 2px;
    width: 55%;
}
.index .content,
.aggrement .content {
    text-align: center;
    padding-top: 30px;
    max-width: max-content;
}
.index .content img,
.aggrement .content img {
    width: 200px;
}
.index .content h1 {
    font-size: 3rem;
    font-family: bblack;
    margin-top: 75px;
    color: #000a66;
}
.index .content a {
    background: linear-gradient(
        90deg,
        rgba(189, 128, 43, 1) 0%,
        rgba(217, 178, 110, 1) 10%,
        rgba(255, 246, 200, 1) 20%,
        rgba(247, 232, 182, 1) 25%,
        rgba(228, 198, 137, 1) 30%,
        rgba(198, 144, 64, 1) 45%,
        rgba(189, 128, 43, 1) 50%,
        rgba(231, 190, 109, 1) 75%,
        rgba(252, 221, 142, 1) 80%,
        rgba(255, 246, 200, 1) 100%
    );
    width: 250px;
    border: unset;
    border-radius: 50px;
    font-family: bblack;
    color: #000a66;
    margin-top: 100px;
}
.index .content p {
    font-size: 1rem;
    font-family: blight;
    color: #000a66;
    margin-top: 15px;
    text-decoration: underline;
}
.aggrement .content h1 {
    font-size: 1.5rem;
    font-family: bbold;
    margin-top: 50px;
    color: #000a66;
}
.aggrement .content a {
    background: linear-gradient(
        90deg,
        rgba(189, 128, 43, 1) 0%,
        rgba(217, 178, 110, 1) 10%,
        rgba(255, 246, 200, 1) 20%,
        rgba(247, 232, 182, 1) 25%,
        rgba(228, 198, 137, 1) 30%,
        rgba(198, 144, 64, 1) 45%,
        rgba(189, 128, 43, 1) 50%,
        rgba(231, 190, 109, 1) 75%,
        rgba(252, 221, 142, 1) 80%,
        rgba(255, 246, 200, 1) 100%
    );
    width: 250px;
    border: unset;
    border-radius: 50px;
    font-family: bblack;
    color: #000a66;
    margin-top: 30px;
}
.aggrement .content p {
    font-size: 1rem;
    font-family: blight;
    color: #000a66;
    margin-top: 15px;
}
.form .content a {
    background: linear-gradient(
        90deg,
        rgba(189, 128, 43, 1) 0%,
        rgba(217, 178, 110, 1) 10%,
        rgba(255, 246, 200, 1) 20%,
        rgba(247, 232, 182, 1) 25%,
        rgba(228, 198, 137, 1) 30%,
        rgba(198, 144, 64, 1) 45%,
        rgba(189, 128, 43, 1) 50%,
        rgba(231, 190, 109, 1) 75%,
        rgba(252, 221, 142, 1) 80%,
        rgba(255, 246, 200, 1) 100%
    );
    width: 250px;
    border: unset;
    border-radius: 50px;
    font-family: bblack;
    color: #000a66;
    margin-top: 15px;
}
.form-page {
    padding-top: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
}
.form-page .title {
    text-align: center;
    font-family: bblack;
    color: #000a66;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.step {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}
.step-content {
    display: none;
}
.step-content.active {
    display: unset;
}
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 30px;
    position: relative;
}
.step-indicator span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #000a66;
    color: #fff;
    font-family: bbold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-right: 40px;
}
.step-indicator span:last-child {
    margin-right: 0;
}
.step-indicator span:not(:last-child)::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: #ecb138;
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}
.step-indicator span.active {
    background: #ecb138;
    color: #000a66;
}
.patient-form {
    max-width: 800px;
    margin: auto;
}
.patient-form h2 {
    color: #000a66;
    font-family: bbold;
    font-size: 1rem;
}
.patient-form .row {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}
.patient-form .row.center {
    justify-content: center;
}
.patient-form .col {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.patient-form label {
    font-family: breg;
    font-size: 1rem;
    color: #000a66;
    margin-bottom: 8px;
}
.patient-form input,
.patient-form select {
    height: 60px;
    border-radius: 30px;
    border: 1px solid #000a66;
    padding: 0 20px;
    font-family: breg;
    font-size: 1rem;
    color: #000a66;
    background: #fff;
}
.patient-form input::placeholder {
    color: #000a66;
}
.must-form {
    max-width: 900px;
}
.must-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}
.must-item:last-child {
    border-bottom: none;
}
.must-item .question {
    font-family: breg;
    font-size: 1rem;
    color: #000a66;
    width: 65%;
}
.must-item .option {
    display: flex;
    gap: 15px;
}
.must-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #000a66;
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    font-family: bbold;
    font-size: 0.9rem;
    color: #000a66;
}
.must-item input {
    display: none;
}
.must-item .opt {
    border: 1px solid #000a66;
    border-radius: 30px;
    padding: 10px 26px;
    cursor: pointer;
    font-family: bbold;
    font-size: 0.9rem;
    color: #000a66;
    background: #fff;
    transition: all 0.2s ease;
}
.must-item input:checked + .opt,
.must-item label:has(input:checked) {
    background: #000a66;
    color: #fff;
}
.step-content.sarcf-layout.active {
    display: block;
}
.sarcf-title {
    font-family: bbold;
    font-size: 1rem;
    color: #000a66;
    margin-bottom: 20px;
}
.sarcf-item {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    margin-bottom: 10px;
}
.sarcf-item:last-of-type {
    border-bottom: none;
}
.sarcf-question span {
    font-family: bbold;
    font-size: 1rem;
    color: #f0b44c;
    display: block;
    margin-bottom: 4px;
}
.sarcf-question p {
    font-family: bbold;
    font-size: 1rem;
    color: #000a66;
}
.sarcf-question small {
    font-family: blight;
    color: #000a66;
}
.sarcf-item select {
    height: 45px;
    border-radius: 30px;
    border: 1px solid #000a66;
    padding: 0 20px;
    font-family: breg;
    font-size: 0.95rem;
    color: #000a66;
    background: #fff
        url("data:image/svg+xml,%3Csvg fill='%23000a66' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat right 16px center;
    background-size: 14px;
    appearance: none;
    width: 100%;
}
.sarcf-layout .row.center.full {
    margin-top: 10px;
}
.divider.light {
    opacity: 0.3;
}
.result-layout .summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}
.summary span {
    font-size: 0.8rem;
    font-family: breg;
    color: #000a66;
}
.summary strong {
    font-family: bbold;
    color: #000a66;
}
.label-col {
    width: 220px;
    font-family: bbold;
    font-size: 0.85rem;
    color: #f0b44c;
}
.screening-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.risk-section {
    display: block;
}
.recommend-section {
    display: block;
}
.score-col {
    display: flex;
    gap: 40px;
}
.score-item strong {
    font-family: bbold;
    color: #000a66;
}
.score-item small {
    display: block;
    font-size: 0.75rem;
    color: #000a66;
}
.risk-box {
    flex: 1;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    font-family: bblack;
    font-size: 2.2rem;
    color: #fff;
}
.risk-box.low {
    background: #86e191 !important;
}
.risk-box.medium {
    background: #fdbf2e !important;
}
.risk-box.high {
    background: #eb1b2e !important;
}
.recommend-box {
    flex: 1;
}
.rec-short {
    border: 1px solid #000a66;
    border-radius: 12px;
    padding: 15px;
    font-family: bbold;
    margin-bottom: 12px;
    color: #000a66;
    font-size: 0.8rem;
}
.rec-long {
    border: 1px solid #000a66;
    border-radius: 12px;
    padding: 15px;
    font-family: breg;
    color: #000a66;
    font-size: 0.8rem;
}
.note {
    font-size: 0.75rem;
    color: #000a66;
}
.field-error {
    color: #e53935;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
select.error {
    border: 1.5px solid #e53935;
    background: #fff5f5;
}
.product {
    background: url("../images/BG\ Ensure_1920x1080px.jpeg") no-repeat center
        center;
    background-size: cover;
}
.product .content {
    text-align: center;
    padding-top: 30px;
}
.product .content h1 {
    font-size: 2rem;
    color: #fff;
    font-family: bbold;
    text-transform: uppercase;
}
.product .content img {
    width: 50%;
    margin-top: 30px;
}
.product .content h2 {
    font-size: 2rem;
    color: #fff;
    font-family: bbold;
    text-transform: uppercase;
    margin-top: 15px;
    background: linear-gradient(
        90deg,
        rgba(189, 128, 43, 1) 0%,
        rgba(217, 178, 110, 1) 10%,
        rgba(255, 246, 200, 1) 20%,
        rgba(247, 232, 182, 1) 25%,
        rgba(228, 198, 137, 1) 30%,
        rgba(198, 144, 64, 1) 45%,
        rgba(189, 128, 43, 1) 50%,
        rgba(231, 190, 109, 1) 75%,
        rgba(252, 221, 142, 1) 80%,
        rgba(255, 246, 200, 1) 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.product .content h3 {
    font-size: 1.5rem;
    color: #fff;
    font-family: bbold;
    text-transform: uppercase;
    margin-top: 15px;
}
.terms .content a {
    font-size: 0.8rem;
    color: #000a66;
    font-family: breg;
    text-transform: uppercase;
    padding: 0;
    text-decoration: underline !important;
}
.terms .content a:active {
    border: none !important;
    color: #000a66;
    transition: none;
}
.terms .content h1 {
    font-size: 2rem;
    color: #000a66;
    font-family: bbold;
    text-transform: uppercase;
    text-align: center;
}
.terms .content p {
    font-size: 1rem;
    color: #000a66;
    font-family: blight;
    margin-top: 30px;
}
.terms .content {
    overflow-y: auto;
    max-height: 70vh;
    margin-top: 30px;
}
.terms .content::-webkit-scrollbar {
    width: 6px;
    position: absolute;
}
.terms .content::-webkit-scrollbar-track {
    background: transparent;
}
.terms .content::-webkit-scrollbar-thumb {
    background: #000a66;
    border-radius: 10px;
}
@media (orientation: portrait) {
    body,
    html {
        overflow-y: scroll !important;
    }
    #global {
        align-items: center;
        justify-content: center;
        height: 100%;
    }
    /* .step-indicator span {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    .form-page .title {
        font-size: 1rem;
        margin-top: 50px;
    }
    .patient-form {
        margin-top: 50px;
    }
    .patient-form label {
        font-size: 1rem;
    }
    .patient-form h2 {
        font-size: 1rem;
    } */

    .patient-form input,
    .patient-form select {
        height: 35px;
        font-size: 1rem;
    }
    .form .content a {
        width: 80%;
        margin-top: 15px;
        font-size: 0.8rem;
    }
    .patient-form input {
        margin-bottom: 10px;
    }
    .risk-box {
        font-size: 0.8rem;
    }
    #global .borderbtm {
        bottom: 0;
    }
    .must-item .question {
        font-size: 1rem;
    }
    .must-item .question b {
        font-size: 0.8rem;
    }
    .must-item .opt {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    .form-page {
        padding-top: 0;
    }
    .step-content.sarcf-layout.active {
        display: block !important;
    }
    .sarcf-item {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 14px;
    }
    .sarcf-question span {
        font-size: 0.7rem;
    }
    .sarcf-question p {
        font-size: 0.7rem;
    }
    .sarcf-strength {
        margin-top: 30px;
    }
    .summary span {
        font-size: 0.7rem;
        display: block;
    }
    .label-col {
        font-size: 0.7rem;
        width: 100%;
    }
    .patient-form .row {
        gap: 0;
    }
    .score-item strong {
        font-size: 0.8rem;
    }
    .score-item small {
        font-size: 0.8rem;
    }
    .rec-short {
        font-size: 0.6rem;
    }
    .rec-long {
        font-size: 0.6rem;
    }
    .note {
        font-size: 0.6rem;
    }
    .recommend-box {
        margin-top: 15px;
    }
    .summary strong {
        font-size: 0.8rem;
    }
    .risk-box {
        margin-top: 15px;
    }
    .index .content img,
    .aggrement .content img {
        width: 200px;
    }
    .index .content h1 {
        font-size: 2rem;
        margin-top: 30px;
    }
    .index .content a {
        font-size: 1rem;
        width: 80%;
        margin-top: 30px;
    }
    .index .content p {
        font-size: 0.8rem;
    }
    #global .confidential {
        font-size: 0.3rem;
        bottom: 5px;
    }
    #global .pmra {
        bottom: 0;
        left: 120px;
    }
    .aggrement .content a {
        font-size: 1rem;
        width: 80%;
    }
    .aggrement .content p {
        font-size: 1.5rem;
        margin-top: 30px;
    }
    #global .text {
        width: 55%;
        font-size: 0.4rem;
    }
    .product .content img {
        width: 100%;
    }
    .terms .content {
        margin-top: 0;
        max-height: 80vh;
    }
    /* .step-indicator span:not(:last-child)::after {
        width: 65px;
        left: 50px;
    } */
    .aggrement .content h1 {
        font-size: 1rem;
    }
    .aggrement .content p {
        font-size: 0.8rem;
    }
    .product {
        background: url("../images/BG\ Ensure_1080x1920px.jpeg") no-repeat
            center center;
        background-size: cover;
    }
}

@media screen and (max-height: 620px) and (orientation: landscape) {
    body,
    html {
        overflow: auto !important;
    }

    #global {
        height: auto !important;
        min-height: 100vh;
        align-items: flex-start;
        padding-bottom: 60px;
    }

    #global .bg {
        height: 100vh;
        min-height: 100%;
        object-fit: cover;
    }

    #global .text {
        width: 30% !important;
    }

    /* ── INDEX PAGE ── */
    .index .content .btn {
        margin-top: 50px !important;
    }
    /* ── AGREEMENT PAGE ── */

    .aggrement .content h1 {
        font-size: 1.5rem !important;
    }

    .aggrement .content a {
        margin-top: 15px !important;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .aggrement .content p {
        font-size: 1rem !important;
        margin-top: 10px !important;
    }

    /* ── FORM PAGE ── */
    .form-page {
        padding-top: 12px !important;
        overflow-y: auto;
    }

    .form-page .title {
        font-size: 1.1rem !important;
        margin-bottom: 8px !important;
    }

    .step-indicator {
        margin-bottom: 12px !important;
    }

    .step-indicator span {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
    }

    .patient-form {
        max-width: 700px;
    }

    .patient-form .row {
        gap: 15px !important;
        margin-bottom: 8px !important;
    }

    .patient-form label {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
    }

    .patient-form h2 {
        font-size: 0.85rem !important;
        margin-bottom: 6px;
    }

    .patient-form input,
    .patient-form select {
        height: 40px !important;
        font-size: 0.85rem !important;
        padding: 0 14px !important;
    }

    .form .content a {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-top: 8px !important;
    }

    /* ── MUST FORM ── */
    .must-item {
        padding-bottom: 8px !important;
    }

    .must-item .question {
        font-size: 0.85rem !important;
    }

    .must-item .opt {
        font-size: 0.8rem !important;
        padding: 6px 14px !important;
    }

    /* ── SARC-F LAYOUT ── */
    .sarcf-item {
        grid-template-columns: 1.2fr 1fr !important;
        gap: 20px !important;
        margin-bottom: 6px !important;
    }

    .sarcf-question span {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
    }

    .sarcf-question p {
        font-size: 0.85rem !important;
    }

    .sarcf-question small {
        font-size: 0.75rem;
    }

    .sarcf-item select {
        height: 38px !important;
        font-size: 0.85rem !important;
    }

    .sarcf-title {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }

    /* ── RESULT LAYOUT ── */
    .result-layout .summary {
        gap: 10px !important;
        margin-bottom: 6px !important;
    }

    .summary span {
        font-size: 0.72rem !important;
    }

    .summary strong {
        font-size: 0.85rem !important;
    }

    .label-col {
        font-size: 0.75rem !important;
        width: 160px !important;
    }

    .screening-row {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .score-item strong {
        font-size: 1rem;
    }

    .score-item small {
        font-size: 0.7rem !important;
    }

    .risk-box {
        font-size: 1.4rem !important;
    }

    .rec-short,
    .rec-long {
        font-size: 0.72rem !important;
        padding: 10px !important;
        margin-bottom: 8px !important;
    }

    .note {
        font-size: 0.7rem !important;
    }

    .product .content {
        padding-top: 12px;
    }

    .product .content h1 {
        font-size: 1.2rem !important;
    }

    .product .content img {
        width: 50% !important;
        margin-top: 10px !important;
    }

    .product .content h2 {
        font-size: 1.2rem !important;
        margin-top: 8px !important;
    }

    .product .content h3 {
        font-size: 1rem !important;
        margin-top: 8px !important;
    }

    .terms .content {
        max-height: 65vh !important;
        margin-top: 10px !important;
    }

    .terms .content h1 {
        font-size: 1.3rem !important;
    }

    .terms .content p {
        font-size: 0.85rem !important;
        margin-top: 12px !important;
    }

    #global .borderbtm {
        bottom: -10px !important;
    }
}
