﻿/* ============================================
   PAY BILLS - PAGE ONE RESPONSIVE OVERRIDES
   ============================================ */


/* Main form container */
.pageone {
    width: 100%;
    max-width: 480px;
    margin: 0 auto !important;
    padding: 70px 16px 16px;
    float: none;
    display: grid;
    grid-gap: 30px;
    box-sizing: border-box;
}


    /* Account Number / Email fields */
    .pageone .field {
        width: 100%;
    }


    .pageone .field__input {
        width: 70%;
        max-width: 70%;
    }


    /* Account Number information icon */
    .pageone .iconfirst {
        position: absolute;
        right: 30%;
        margin-top: 15px;
    }


    /* SOA Preview */
    /*.pageone .tipsoa {
        position: absolute;
        width: 338px;
        max-width: calc(100% - 32px);
        margin-left: -8px;
        margin-top: 61px;
        top: 0;
        height: auto;
        z-index: 10;
    }*/

    .pageone .tipsoa {
        position: absolute;
        width: 338px;
        max-width: calc(100% - 32px);
        height: auto;
        /* Move SOA below the Account Number field */
        top: 135px;
        left: 59px;
        margin: 0;
        z-index: 10;
    }


    /* NEXT / CANCEL */
    .pageone #forbtn,
    .pageone #closebtn {
        width: 100%;
        max-width: 100%;
    }


    .pageone .btn.btn-main-dessa {
        width: 70% !important;
        max-width: 70% !important;
    }


    /* Terms / Privacy / Note */
    .pageone .adjust70width {
        width: 70%;
    }


/* ============================================
   TABLET / SMALL SCREEN
   ============================================ */

@media (max-width: 991px) {

    .pageone {
        max-width: 480px;
        padding: 40px 16px 16px;
        grid-gap: 30px;
    }

        .pageone .field__input {
            width: 100%;
            max-width: 100%;
        }

        .pageone .iconfirst {
            right: 0;
        }

        .pageone .tipsoa {
            width: calc(100% - 32px);
            max-width: 100%;
            margin-left: 0;
            margin-top: 70px;
        }

        .pageone .btn.btn-main-dessa {
            width: 100% !important;
            max-width: 100% !important;
        }

        .pageone .adjust70width {
            width: 100%;
        }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 768px) {

    .pageone {
        width: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }


        /* Fields */
        .pageone .field__input {
            width: 100%;
            max-width: 100%;
        }


        /* Keep info icon visible and clickable */
        .pageone .iconfirst {
            right: 0;
            z-index: 20;
            cursor: pointer;
        }


        /* SOA Preview */
        .pageone .tipsoa {
            position: absolute;
            /* Position below Account Number / Email area */
            top: 95px;
            left: 20px;
            /* Fit within mobile screen */
            width: calc(100% - 40px);
            max-width: none;
            height: auto;
            margin: 0;
            z-index: 10;
        }


        /* Buttons */
        .pageone .btn.btn-main-dessa {
            width: 100% !important;
            max-width: 100% !important;
        }


        /* Terms / Privacy */
        .pageone .adjust70width {
            width: 100%;
        }
}
