/* ==========================================================
   CHECKOUT
========================================================== */

:root{
    --checkout-primary:#ff6a00;
    --checkout-dark:#222;
    --checkout-text:#555;
    --checkout-border:#e9ecef;
    --checkout-bg:#f7f8fa;
    --checkout-white:#fff;
    --checkout-shadow:0 8px 30px rgba(0,0,0,.06);
    --checkout-radius:16px;
}

/* ==========================================================
   PAGE
========================================================== */

.checkout-page{
    padding:30px 0 50px;
    background:var(--checkout-bg);
    min-height:100vh;
}

/* ==========================================================
   HEADER
========================================================== */

.checkout-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
}

.checkout-header h2{
    margin:0;
    font-size:32px;
    font-weight:700;
    color:var(--checkout-dark);
}

.checkout-header p{
    margin-top:8px;
    color:var(--checkout-text);
    font-size:15px;
}

.checkout-date{
    background:#fff;
    padding:12px 18px;
    border-radius:12px;
    box-shadow:var(--checkout-shadow);
    font-weight:600;
    color:#666;
    white-space:nowrap;
}

/* ==========================================================
   LAYOUT
========================================================== */

.checkout-layout{
    display:grid;
    grid-template-columns:minmax(0,2fr) 360px;
    gap:30px;
    align-items:start;
}

/* ==========================================================
   CARDS
========================================================== */

.checkout-card{
    background:var(--checkout-white);
    border-radius:var(--checkout-radius);
    box-shadow:var(--checkout-shadow);
    padding:28px;
    border:1px solid var(--checkout-border);
}

.card-title{
    margin:0 0 25px;
    font-size:22px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:12px;
}

.card-title i{
    color:var(--checkout-primary);
}

/* ==========================================================
   FORM
========================================================== */

.checkout-card label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#444;
}

.checkout-card .form-control{
    border-radius:10px;
    min-height:48px;
    border:1px solid #dcdcdc;
    box-shadow:none;
    transition:.25s;
}

.checkout-card textarea.form-control{
    min-height:120px;
    resize:vertical;
    padding-top:12px;
}

.checkout-card .form-control:focus{
    border-color:var(--checkout-primary);
    box-shadow:0 0 0 .15rem rgba(255,106,0,.15);
}

.form-check{
    margin-top:8px;
}

.form-check-label{
    margin-left:6px;
    color:#555;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.checkout-sidebar{
    position:relative;
}

.sticky-summary{
    position:sticky;
    top:20px;
}

/* ==========================================================
   SUMMARY
========================================================== */

.summary-items{
    margin-bottom:20px;
}

.summary-item{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:12px 0;
    border-bottom:1px dashed #eee;
    font-size:15px;
}

.summary-item:last-child{
    border-bottom:none;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:12px 0;
    font-size:15px;
}

.summary-row.total{
    font-size:22px;
    font-weight:700;
    color:var(--checkout-primary);
}

.summary-row strong{
    font-weight:700;
}

/* ==========================================================
   BUTTON
========================================================== */

.checkout-sidebar .btn{
    height:52px;
    border-radius:12px;
    font-size:16px;
    font-weight:600;
}

.checkout-sidebar .btn-primary{
    background:var(--checkout-primary);
    border-color:var(--checkout-primary);
}

.checkout-sidebar .btn-primary:hover{
    background:#ea5e00;
    border-color:#ea5e00;
}

/* ==========================================================
   ALERTS
========================================================== */

.alert{
    border-radius:12px;
    margin-bottom:20px;
}

/* ==========================================================
   DIVIDERS
========================================================== */

.checkout-card hr{
    margin:20px 0;
    border-top:1px solid #eee;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width:991px){

    .checkout-layout{
        grid-template-columns:1fr;
    }

    .checkout-sidebar{
        order:-1;
    }

    .sticky-summary{
        position:static;
    }

}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width:767px){

    .checkout-page{
        padding:20px 0 35px;
    }

    .checkout-header{
        flex-direction:column;
        align-items:flex-start;
    }

    .checkout-header h2{
        font-size:28px;
    }

    .checkout-date{
        width:100%;
        text-align:center;
    }

    .checkout-card{
        padding:20px;
    }

    .card-title{
        font-size:20px;
    }

    .summary-item{
        flex-direction:column;
        gap:6px;
    }

    .summary-row{
        font-size:14px;
    }

    .summary-row.total{
        font-size:20px;
    }

}

/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:480px){

    .checkout-card{
        padding:16px;
        border-radius:12px;
    }

    .checkout-header h2{
        font-size:24px;
    }

    .checkout-header p{
        font-size:14px;
    }

    .checkout-card label{
        font-size:14px;
    }

    .checkout-card .form-control{
        min-height:44px;
        font-size:14px;
    }

    .checkout-sidebar .btn{
        height:48px;
        font-size:15px;
    }

}


.success-card{

max-width:650px;
margin:50px auto;
background:#fff;
padding:45px;
border-radius:18px;
box-shadow:0 10px 35px rgba(0,0,0,.08);
text-align:center;

}

.success-icon{

font-size:90px;
color:#28a745;
margin-bottom:20px;

}

.success-card h2{

font-weight:700;
margin-bottom:10px;

}

.success-card p{

color:#666;
margin-bottom:30px;

}

.success-order{

background:#f8f9fa;
border-radius:12px;
padding:25px;
text-align:left;
margin-bottom:30px;

}

.success-order div{

display:flex;
justify-content:space-between;
padding:10px 0;
border-bottom:1px solid #eee;

}

.success-order div:last-child{

border-bottom:none;

}

.success-buttons{

display:flex;
gap:15px;
justify-content:center;
flex-wrap:wrap;

}

.success-buttons .btn{

min-width:180px;

}









