/* ==========================================
   AAROGYAM INDIA - CHECKOUT PAGE CSS
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f5f7fb;
    color: #222;
    line-height: 1.5;
}

/* ===========================
   HEADER
=========================== */
.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    text-decoration: none;
    color: #2e7d32;
    font-size: 15px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkout-header h1 {
    font-size: 20px;
    color: #1e293b;
}

/* ===========================
   MAIN CONTAINER (2-Column Grid)
=========================== */
.checkout-container {
    max-width: 900px;
    margin: 25px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media(max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        margin: 15px auto;
    }
}

/* ===========================
   CARDS & SECTIONS
=========================== */
.book-summary,
.customer-details,
.order-summary,
.payment-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
    border: 1px solid #e2e8f0;
}

/* ===========================
   BOOK SUMMARY
=========================== */
.book-summary {
    display: flex;
    gap: 15px;
    align-items: center;
}

.book-cover img {
    width: 95px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.book-info h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: #1e293b;
}

.book-info p {
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.mrp {
    color: #64748b;
}

.offer {
    color: #e65100;
    font-weight: bold;
}

.access {
    color: #2e7d32;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 4px;
}

/* ===========================
   CUSTOMER DETAILS FORM
=========================== */
.customer-details h2,
.order-summary h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
}

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    background: #f8fafc;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #2e7d32;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

/* ===========================
   ORDER SUMMARY
=========================== */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #475569;
}

.total {
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #1e293b;
}

/* ===========================
   PAYMENT SECTION
=========================== */
.payment-section {
    text-align: center;
    padding: 15px 20px;
}

.payment-info {
    margin-bottom: 12px;
    color: #0d9488;
    font-size: 0.85rem;
    font-weight: 600;
}

#payNowBtn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #2e7d32;
    color: #fff;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

#payNowBtn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}

/* ===========================
   FOOTER
=========================== */
.checkout-footer {
    text-align: center;
    padding: 20px 15px;
    color: #64748b;
    font-size: 0.85rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin-top: 20px;
}

.checkout-footer a {
    text-decoration: none;
    color: #2e7d32;
    margin: 0 6px;
    font-weight: 500;
}

.checkout-footer a:hover {
    text-decoration: underline;
}