/* =========================================
   CHECKOUT PAGE STYLES
   ========================================= */

.checkout-section {
    padding-bottom: 80px;
}

/* --- Layout Grid --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Left side wider, Right side narrower */
    gap: 40px;
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Billing Form --- */
.form-row {
    display: flex;
    gap: 20px;
}
.form-group {
    width: 100%;
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-group .required { color: red; }

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

/* Focus Effect (Neon Green) */
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(128, 235, 14, 0.2);
}

/* --- Order Summary Box --- */
.order-summary-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    position: sticky; /* Sticky sidebar */
    top: 100px;
}

.order-col {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
    font-size: 0.95rem;
    color: #555;
}
.order-col:first-child { font-weight: 700; color: var(--dark); border-width: 2px; }

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.item-name { font-size: 0.9rem; color: #555; width: 70%; }
.item-name .qty { margin-left: 5px; font-weight: 700; }
.item-price { font-weight: 600; }

.subtotal, .shipping { font-weight: 600; color: var(--dark); }

.total {
    border-bottom: none;
    font-size: 1.2rem;
    color: var(--dark);
    margin-top: 10px;
}
.total-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* --- Payment Methods --- */
.payment-methods {
    margin-top: 30px;
    margin-bottom: 20px;
}
.payment-option {
    margin-bottom: 15px;
}
.payment-option input[type="radio"] {
    accent-color: var(--primary);
    margin-right: 10px;
    transform: scale(1.2);
}
.payment-option label {
    font-weight: 600;
    cursor: pointer;
}
.payment-desc {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    margin-left: 25px;
    line-height: 1.4;
    display: none; /* JS will show/hide */
}
/* Show description when input checked (CSS Logic) */
.payment-option input:checked ~ .payment-desc {
    display: block;
}

/* --- Place Order Button --- */
.place-order-btn {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}
.place-order-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.5;
    text-align: justify;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-summary-box {
        margin-top: 20px;
    }
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}