/* ==========================================================
   SSG FOODS PRIVATE LIMITED
   ADVANCE PAYMENT PAGE
========================================================== */


/* ==========================================================
   RESET
========================================================== */

*{

    margin:0;

    padding:0;

    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Segoe UI", Arial, sans-serif;

    background:#f5f6f8;

    color:#333;

    line-height:1.6;

    padding-top:150px;

}


/* ==========================================================
   COMMON CONTAINER
========================================================== */

.payment-container{

    width:100%;

    max-width:1400px;

    margin:auto;

    padding:0 20px;

}


/* ==========================================================
   LINKS
========================================================== */

a{

    text-decoration:none;

    color:inherit;

}


/* ==========================================================
   BUTTON
========================================================== */

button{

    font-family:inherit;

    cursor:pointer;

    border:none;

    outline:none;

}


/* ==========================================================
   INPUT
========================================================== */

input,
select,
textarea{

    font-family:inherit;

    outline:none;

}


/* ==========================================================
   IMAGE
========================================================== */

img{

    max-width:100%;

    display:block;

}
/* ==========================================================
   HERO SECTION
========================================================== */

.hero{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:150px;

    overflow:hidden;

    z-index:9999;

}

/* ==========================================================
   HERO BANNER
========================================================== */

.hero-banner{

    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:fill;

}

/* ==========================================================
   HERO OVERLAY
========================================================== */

.hero-overlay{

    position:relative;
    z-index:2;
    width:100%;
    max-width:1400px;
    height:100%;
    margin:auto;

    padding:15px 25px;

    display:flex;
    flex-direction:column;
    justify-content:flex-start;

}

/* ==========================================================
   HERO TOP
========================================================== */

.hero-top{

    display:grid;
    grid-template-columns:170px 1fr 190px;
    align-items:flex-start;

}

/* ==========================================================
   HERO LOGO
========================================================== */

.hero-logo img{

    width:135px;

    height:135px;

}

/* ==========================================================
   COMPANY NAME
========================================================== */

.hero-company{

    flex:1;

    text-align:center;

}

.hero-company h1{

    font-size:28px;

    font-weight:700;

    color:#980000;

    letter-spacing:.5px;

}

/* ==========================================================
   BACK BUTTON
========================================================== */

.back-home-btn{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:10px 18px;

    background:#ffffff;

    border-radius:8px;

    color:#2E7D32;

    font-size:19px;

    font-weight:600;

    transition:.3s;

}

.back-home-btn:hover{

    background:#f7f7f7;

}

/* ==========================================================
   HERO CENTER
========================================================== */

.hero-center{

    position:absolute;

    left:49%;

    top:70%;

    transform:translate(-50%,-50%);

    text-align:center;

}


/* ==========================================================
   HEADING
========================================================== */

.hero-center h2{

    display:flex;
    align-items:center;
    justify-content:center;

    gap:12px;

    font-size:28px;

    color:#980000;

    margin-bottom:6px;

}

.hero-center h2 i{

    color:#2E7D32;

}

/* ==========================================================
   SUBTITLE
========================================================== */

.hero-center p{

    margin-top:4px;

    font-size:18px;

    color:#2E7D32;

}
/* ==========================================================
   PAYMENT SECTION
========================================================== */

.payment-section{

    padding:25px 0 40px;

}


/* ==========================================================
   3 COLUMN GRID
========================================================== */

.payment-grid{

    display:grid;

    grid-template-columns:0.90fr 1.1fr 1.15fr;

    gap:25px;

    align-items:start;

}


/* ==========================================================
   PAYMENT CARD
========================================================== */

.payment-card{

    background:#ffffff;

    border-radius:16px;

    border:1px solid #e5e7eb;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    padding:25px;

    transition:.30s;

}

.payment-card:hover{

    box-shadow:0 14px 35px rgba(0,0,0,.10);

}


/* ==========================================================
   CARD HEADER
========================================================== */

.card-title{

    display:flex;

    align-items:center;

    gap:12px;

    margin-bottom:25px;

    padding-bottom:15px;

    border-bottom:1px solid #eeeeee;

}

.card-title i{

    width:42px;

    height:42px;

    border-radius:50%;

    background:#2E7D32;

    color:#ffffff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:18px;

}

.card-title h3{

    font-size:22px;

    color:#980000;

    font-weight:700;

}


/* ==========================================================
   FORM GROUP
========================================================== */

.form-group{

    margin-bottom:18px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

    color:#333;

}

.form-group span{

    color:#d32f2f;

}


/* ==========================================================
   INPUT
========================================================== */

.form-group input,

.form-group select,

.form-group textarea{

    width:100%;

    border:1px solid #d6d6d6;

    border-radius:10px;

    font-size:14px;

    padding:12px 14px;

    transition:.30s;

    background:#fff;

}

.form-group input,

.form-group select{

    height:46px;

}

.form-group textarea{

    resize:vertical;

    min-height:95px;

}

.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus{

    border-color:#2E7D32;

    box-shadow:0 0 0 3px rgba(46,125,50,.12);

}
/* ==========================================================
   CUSTOM AMOUNT
========================================================== */

#customAmountBox{

    display:none;

    animation:fadeIn .25s ease;

}

#customAmount{

    width:100%;

    height:46px;

    padding:12px 14px;

    border:1px solid #d6d6d6;

    border-radius:10px;

    font-size:14px;

    background:#fff;

    transition:.30s;

}

#customAmount:focus{

    border-color:#2E7D32;

    box-shadow:0 0 0 3px rgba(46,125,50,.12);

}


/* ==========================================================
   FADE ANIMATION
========================================================== */

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(-8px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/* ==========================================================
   FORM ROW
========================================================== */

.form-row{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

}
/* ==========================================================
   PRODUCT CATEGORY
========================================================== */

.category-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:12px;

    margin-top:10px;

}

.category-item{

    display:flex;

    align-items:center;

    gap:10px;

    border:1px solid #dddddd;

    border-radius:10px;

    padding:12px 15px;

    background:#ffffff;

    cursor:pointer;

    transition:.30s;

    font-size:14px;

    font-weight:600;

}

.category-item:hover{

    border-color:#2E7D32;

    background:#F4FFF4;

}

.category-item input{

    width:18px;

    height:18px;

    accent-color:#2E7D32;

}



/* ==========================================================
   PAYMENT SUMMARY
========================================================== */

.summary-box{

    border:1px solid #e6e6e6;

    border-radius:12px;

    overflow:hidden;

    background:#fafafa;

}

.summary-row{

    display:grid;

    grid-template-columns: 42% 58%;

    align-items:center;

    gap:15px;

    padding:16px 18px;

    border-bottom:1px solid #ececec;

}

.summary-row:last-child{

    border-bottom:none;

}

.summary-row span{

    color:#333;

    font-size:15px;

    font-weight:600;

}

.summary-row strong{

    color:#980000;

    font-size:15px;

    font-weight:700;

    text-align:right;

    line-height:1.6;

    word-break:break-word;

    overflow-wrap:anywhere;

}
#summaryCategory{

    display:block;

    text-align:right;

    line-height:1.6;

    white-space:normal;

}

/* ==========================================================
   SECURE PAYMENT
========================================================== */

.secure-box{

    margin-top:22px;

    text-align:center;

    border:1px solid #CDEBCF;

    background:#F5FFF6;

    border-radius:12px;

    padding:22px 15px;

}

.secure-box i{

    font-size:36px;

    color:#2E7D32;

    margin-bottom:10px;

}

.secure-box h4{

    color:#2E7D32;

    font-size:20px;

    margin-bottom:8px;

}

.secure-box p{

    color:#666;

    font-size:14px;

    line-height:1.6;

}



/* ==========================================================
   PAY BUTTON
========================================================== */

.pay-btn{

    width:100%;

    margin-top:22px;

    height:52px;

    border:none;

    border-radius:10px;

    background:#2E7D32;

    color:#ffffff;

    font-size:16px;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    cursor:pointer;

    transition:.30s;

}

.pay-btn:hover{

    background:#256427;

    transform:translateY(-2px);

    box-shadow:0 10px 20px rgba(46,125,50,.25);

}

.pay-btn:active{

    transform:scale(.98);

}
/* ==========================================================
   TERMS & CONDITIONS
========================================================== */

.terms-section{

    margin-top:35px;

}

.terms-check{

    display:flex;

    align-items:flex-start;

    gap:12px;

    background:#ffffff;

    border:1px solid #e5e5e5;

    border-radius:12px;

    padding:18px 22px;

    box-shadow:0 5px 15px rgba(0,0,0,.05);

}

.terms-check input{

    width:18px;

    height:18px;

    margin-top:2px;

    accent-color:#2E7D32;

    cursor:pointer;

}

.terms-check span{

    font-size:14px;

    color:#444;

    line-height:1.7;

}

.terms-check a{

    color:#980000;

    font-weight:600;

}

.terms-check a:hover{

    text-decoration:underline;

}


/* ==========================================================
   FEATURES
========================================================== */

.features-section{

    padding:40px 0;

}

.features-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-top:0px;

}

.feature-box{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:12px;

    background:#fff;

    border:1px solid #e5e7eb;

    border-radius:14px;

    padding:15px 18px;

    min-height:40px;

    box-shadow:0 8px 20px rgba(0,0,0,.05);

    transition:.3s;

}

.feature-box:hover{

    transform:translateY(-5px);

    border-color:#2E7D32;

    box-shadow:0 12px 25px rgba(0,0,0,.10);

}

.feature-box i{

    font-size:28px;

    color:#2E7D32;

    flex-shrink:0;

}

.feature-box h4{

    font-size:16px;

    color:#333;

    font-weight:600;

}


/* ==========================================================
   FOOTER
========================================================== */

.payment-footer{

    background:#980000;

    color:#ffffff;

    text-align:center;

    padding:18px;

    font-size:14px;

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width:992px){

    body{
        padding-top:150px;
    }

    .hero{
        height:150px;
    }

    .hero-top{

        grid-template-columns:130px 1fr 150px;

        align-items:start;
    }

    .hero-logo img{
        width:125px;
        height:125px;
    }

    .hero-company h1{
        font-size:28px;
        white-space:nowrap;
    }

    .back-home-btn{
        padding:8px 14px;
        font-size:18px;
    }

    .hero-center{

        position:absolute;

        left:50%;

        top:60%;

        transform:translate(-52%,-50%);

        width:100%;
    }

    .hero-center h2{
        font-size:30px;
    }

    .hero-center p{
        font-size:16px;
    }

    .payment-grid{
        grid-template-columns:1fr;
    }

    .features-grid{
        grid-template-columns:repeat(2,1fr);
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:768px){

    body{
        padding-top:100px;
    }

    .hero{
        height:100px;
    }

    .hero-overlay{
        padding:15px;
    }

    .hero-top{

        display:grid;

        grid-template-columns:90px 1.1fr 90px;

        align-items:start;

        gap:10px;
    }

    .hero-logo img{
        width:80px;
        height:80px;
    }

    .hero-company h1{

        font-size:12px;

        line-height:1.35;

        text-align:center;

        white-space:normal;
    }

    .back-home-btn{

        padding:7px 10px;

        font-size:8px;
    }

    .hero-center{

        position:absolute;

        left:50%;

        top:60%;

        transform:translate(-50%,-60%);

        width:100%;

        padding:0 10px;

        text-align:center;
    }

    .hero-center h2{

        font-size:11px;

        display:flex;

        justify-content:center;

        gap:8px;
    }

    .hero-center p{

        font-size:10px;
    }

    .payment-grid{
        grid-template-columns:1fr;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .category-grid{
        grid-template-columns:1fr;
    }

    .features-grid{
        grid-template-columns:1fr;
    }

    .payment-card{
        padding:20px;
    }

}
/*=========================================
      PAYMENT CONFIRM POPUP
=========================================*/

.payment-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.payment-popup.show{
    display:flex;
}

.payment-popup-box{

    width:420px;
    max-width:90%;

    background:#fff;

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:0 20px 60px rgba(0,0,0,.25);

    animation:popupScale .30s ease;
}

@keyframes popupScale{

    from{

        transform:scale(.85);
        opacity:0;

    }

    to{

        transform:scale(1);
        opacity:1;

    }

}

.payment-popup-box h2{

    color:#8B0000;
    font-size:32px;
    margin-bottom:10px;

}

.payment-popup-box p{

    color:#555;
    font-size:18px;
    margin-bottom:20px;

}

.payment-popup-details{

    background:#f8f8f8;

    border-radius:12px;

    padding:20px;

    margin-bottom:25px;

}

.payment-popup-details p{

    display:flex;

    justify-content:space-between;

    margin:12px 0;

    font-size:18px;

}

.popup-buttons{

    display:flex;

    gap:15px;

}

.popup-buttons button{

    flex:1;

    border:none;

    border-radius:10px;

    padding:14px;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.popup-cancel{

    background:#ddd;
    color:#333;

}

.popup-cancel:hover{

    background:#cfcfcf;

}

.popup-confirm{

    background:#2E7D32;
    color:#fff;

}

.popup-confirm:hover{

    background:#1f6a28;

}