/* =========================================================
   iCallMart Firebase OTP - Flipkart-inspired clean mobile UI
   ========================================================= */

.icm-otp-wrap{
    width:100%;
    max-width:470px;
    margin:0 auto 25px;
    padding:0 14px;
    box-sizing:border-box;
    font-family:inherit;
}

.icm-brand{
    text-align:center;
    font-size:30px;
    line-height:1;
    font-weight:800;
    margin:5px 0 22px;
    letter-spacing:-1.2px;
}

.icm-brand-i{
    color:#2874f0;
}

.icm-brand-mart{
    color:#172337;
}


/* =========================================================
   LOGIN CARD
   ========================================================= */

.icm-login-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:28px 24px 22px;
    box-shadow:0 3px 14px rgba(0,0,0,.07);
    box-sizing:border-box;
    position:relative;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.icm-step h2{
    margin:0 0 7px;
    text-align:center;
    color:#172337;
    font-size:25px;
    line-height:1.25;
    font-weight:700;
}

.icm-subtitle{
    margin:0 0 22px;
    text-align:center;
    color:#6b7280;
    font-size:14px;
    line-height:1.5;
}


/* =========================================================
   LABEL
   ========================================================= */

.icm-label{
    display:block;
    color:#374151;
    font-size:13px;
    font-weight:600;
    margin:0 0 7px;
}


/* =========================================================
   PHONE ROW
   ========================================================= */

.icm-phone-row{
    display:flex;
    gap:8px;
    width:100%;
    margin-bottom:13px;
}

#icm-country{
    flex:0 0 104px;
    height:48px;
    padding:0 8px;
    border:1px solid #d1d5db;
    border-radius:7px;
    background:#fff;
    color:#172337;
    font-size:14px;
}

#icm-phone,
#icm-otp{
    width:100%;
    height:48px;
    box-sizing:border-box;
    border:1px solid #d1d5db;
    border-radius:7px;
    background:#fff;
    color:#172337;
    padding:0 13px;
    font-size:16px;
    outline:none;
}

#icm-phone:focus,
#icm-otp:focus{
    border-color:#2874f0;
    box-shadow:0 0 0 2px rgba(40,116,240,.10);
}


/* =========================================================
   FIREBASE RECAPTCHA
   ========================================================= */

#icm-recaptcha{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    min-height:1px !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
}

#icm-recaptcha iframe{
    width:1px !important;
    height:1px !important;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.icm-primary-btn{
    display:block;
    width:100%;
    min-height:48px;
    border:0 !important;
    border-radius:7px !important;
    background:#2874f0 !important;
    color:#fff !important;
    font-size:15px;
    line-height:1;
    font-weight:600;
    cursor:pointer;
    transition:opacity .2s ease, transform .1s ease;
}

.icm-primary-btn:hover{
    opacity:.94;
}

.icm-primary-btn:active{
    transform:scale(.99);
}

.icm-primary-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
}


/* =========================================================
   ERROR
   ========================================================= */

.icm-error{
    color:#d32f2f;
    font-size:13px;
    line-height:1.4;
    min-height:0;
    margin-top:0;
    text-align:center;
}

.icm-error:empty{
    display:none !important;
}


/* =========================================================
   TRUST ROW
   ========================================================= */

.icm-trust-row{
    display:none !important;
}

.icm-trust-row div{
    flex:1;
    text-align:center;
}

.icm-trust-row span{
    display:block;
    font-size:19px;
    margin-bottom:3px;
}

.icm-trust-row b{
    display:block;
    font-size:12px;
    color:#172337;
}

.icm-trust-row small{
    display:block;
    font-size:10px;
    color:#7b8190;
    margin-top:1px;
}


/* =========================================================
   TERMS & PRIVACY
   ========================================================= */

.icm-terms{
    margin:18px 0 0 !important;
    padding:0 !important;
    text-align:center;
    color:#8a8f98;
    font-size:10px;
    line-height:1.5;
    transform:none !important;
}

.icm-terms a{
    color:#2874f0;
    text-decoration:none;
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.icm-back-btn{
    display:block;
    border:0;
    background:none;
    color:#2874f0;
    padding:0;
    margin:0 0 16px;
    font-size:13px;
    cursor:pointer;
}


/* =========================================================
   SECURITY BOX
   ========================================================= */

.icm-security-box{
    display:flex;
    gap:11px;
    align-items:flex-start;
    background:#eef6ff;
    border-radius:9px;
    padding:13px;
    margin-top:17px;
}

.icm-security-icon{
    font-size:22px;
    line-height:1;
}

.icm-security-box b{
    display:block;
    color:#172337;
    font-size:12px;
    margin-bottom:3px;
}

.icm-security-box small{
    display:block;
    color:#667085;
    font-size:10px;
    line-height:1.45;
}


/* =========================================================
   RESEND OTP
   ========================================================= */

.icm-resend-btn{
    display:block;
    border:0;
    background:none;
    color:#2874f0;
    margin:14px auto 0;
    padding:4px 8px;
    font-size:13px;
    cursor:pointer;
}

.icm-resend-btn:disabled{
    color:#9ca3af;
    cursor:not-allowed;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.icm-success-icon{
    width:76px;
    height:76px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:10px auto 20px;
    border-radius:50%;
    background:#dff7ea;
    color:#19a974;
    font-size:50px;
    font-weight:700;
}

.icm-redirect-text{
    text-align:center;
    color:#6b7280;
    font-size:13px;
}


/* =========================================================
   LOADING
   ========================================================= */

.icm-loading{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#555;
    font-size:12px;
    margin-top:13px;
}

.icm-spinner{
    width:15px;
    height:15px;
    border:2px solid #d8e5f7;
    border-top-color:#2874f0;
    border-radius:50%;
    animation:icm-spin .7s linear infinite;
}

@keyframes icm-spin{
    to{
        transform:rotate(360deg);
    }
}


/* =========================================================
   NO SIGNUP
   ========================================================= */

.icm-no-signup{
    text-align:center;
    margin:13px 0 0;
    color:#667085;
    font-size:11px;
}

.icm-no-signup span{
    color:#19a974;
    font-weight:700;
    margin-right:3px;
}


/* =========================================================
   HIDDEN
   ========================================================= */

.icm-hidden{
    display:none !important;
}


/* =========================================================
   LOGIN PAGE BANNER
   ========================================================= */

.icm-login-banner{
    width:100%;
    margin:14px 0 18px;
    overflow:hidden;
    border-radius:8px;
}

.icm-login-banner img{
    display:block;
    width:100%;
    height:auto;
    max-width:100%;
    border:0;
}


/* =========================================================
   MOBILE MY ACCOUNT LOGIN
   BOTTOM SHEET POPUP
   ========================================================= */

.icm-login-modal{
    display:none;

    position:fixed;
    inset:0;

    z-index:999999;

    width:100%;
    height:100%;

    box-sizing:border-box;
}


/* =========================================================
   OPEN STATE
   ========================================================= */

.icm-login-modal.icm-modal-open{
    display:flex;

    align-items:flex-end;
    justify-content:center;
}


/* =========================================================
   DARK OVERLAY
   ========================================================= */

.icm-login-modal-overlay{
    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.55);
}


/* =========================================================
   BOTTOM SHEET BOX
   ========================================================= */

.icm-login-modal-box{

    position:relative;

    z-index:2;

    width:100%;

    max-width:520px;

    max-height:92vh;

    margin:0;

    padding:0;

    box-sizing:border-box;

    overflow-x:hidden;
    overflow-y:auto;

    background:#fff;

    border-radius:24px 24px 0 0;

    box-shadow:
        0 -5px 25px rgba(0,0,0,.18);

    transform:translateY(100%);

    animation:icm-login-sheet-up .28s ease-out forwards;

    -webkit-overflow-scrolling:touch;
}


/* =========================================================
   BOTTOM SHEET ANIMATION
   ========================================================= */

@keyframes icm-login-sheet-up{

    from{
        transform:translateY(100%);
    }

    to{
        transform:translateY(0);
    }

}

@-webkit-keyframes icm-login-sheet-up{

    from{
        -webkit-transform:translateY(100%);
    }

    to{
        -webkit-transform:translateY(0);
    }

}


/* =========================================================
   REMOVE OUTER OTP SPACING INSIDE POPUP
   ========================================================= */

.icm-login-modal-box .icm-otp-wrap{

    width:100%;

    max-width:none;

    margin:0;

    padding:0;

    box-sizing:border-box;
}


/* =========================================================
   POPUP LOGIN CARD
   ========================================================= */

.icm-login-modal-box .icm-login-card{

    width:100%;

    margin:0;

    border:0;

    border-radius:24px 24px 0 0;

    box-shadow:none;

    box-sizing:border-box;
}


/* =========================================================
   POPUP CLOSE BUTTON
   ========================================================= */

.icm-login-modal-close{

    position:absolute;

    top:12px;
    right:12px;

    z-index:20;

    width:38px;
    height:38px;

    border:0;

    border-radius:50%;

    background:#f5f5f5;

    color:#333;

    font-size:25px;

    line-height:38px;

    text-align:center;

    padding:0;

    margin:0;

    cursor:pointer;

    box-shadow:none;
}


/* =========================================================
   MOBILE BOTTOM SHEET
   ========================================================= */

@media(max-width:767px){

    .icm-login-modal{

        align-items:flex-end;

    }


    .icm-login-modal.icm-modal-open{

        align-items:flex-end;

    }


    .icm-login-modal-box{

        width:100%;

        max-width:100%;

        max-height:92vh;

        border-radius:24px 24px 0 0;

    }


    .icm-login-modal-box .icm-login-card{

        border-radius:24px 24px 0 0;

    }


    .icm-login-modal-box .icm-otp-wrap{

        padding:0;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:480px){

    .icm-otp-wrap{

        padding:0 8px;

    }


    .icm-login-card{

        padding:23px 17px 19px;

        border-radius:10px;

    }


    .icm-brand{

        font-size:28px;

        margin-bottom:18px;

    }


    .icm-step h2{

        font-size:23px;

    }


    #icm-country{

        flex-basis:96px;

    }


    .icm-login-banner{

        margin:12px 0 16px;

        border-radius:7px;

    }


    .icm-login-modal-box{

        max-height:90vh;

        border-radius:22px 22px 0 0;

    }


    .icm-login-modal-box .icm-login-card{

        border-radius:22px 22px 0 0;

    }


    .icm-login-modal-close{

        top:10px;

        right:10px;

        width:38px;

        height:38px;

        line-height:38px;

        font-size:24px;

    }

}