/* ===== CHECKOUT LAYOUT ===== */
.checkout-section {
    background: #f9f7f3;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* ===== CATEGORY INFO CARD ===== */
.category-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}
.category-info-card .cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--clr-primary-lighter, #f0ebe2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--clr-primary, #5c6d3f);
    flex-shrink: 0;
}
.category-info-card h3 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.category-info-card .cat-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}
.category-info-card .cat-range {
    display: inline-block;
    background: var(--clr-primary-lighter, #f5f1ea);
    color: var(--clr-primary, #5c6d3f);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 50px;
    margin-top: 0.5rem;
}

/* ===== AMOUNT SELECTOR ===== */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}
.amount-btn {
    padding: 14px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.amount-btn:hover {
    border-color: var(--clr-primary, #5c6d3f);
    background: var(--clr-primary-lighter, #f5f1ea);
}
.amount-btn.active {
    border-color: var(--clr-primary, #5c6d3f);
    background: var(--clr-primary, #5c6d3f);
    color: #fff;
}

/* ===== FORM CARD ===== */
.checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 1.5rem;
}
.checkout-card h5 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkout-card h5 .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--clr-primary, #5c6d3f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.checkout-card .form-control,
.checkout-card .form-select {
    border-radius: var(--radius-sm, 10px);
    padding: 12px 16px;
    border: 1px solid #ddd;
}
.checkout-card .form-control:focus,
.checkout-card .form-select:focus {
    border-color: var(--clr-primary, #5c6d3f);
    box-shadow: 0 0 0 3px rgba(92, 109, 63, 0.12);
}
.checkout-card label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

/* ===== MPESA PAYMENT BOX ===== */
.mpesa-box {
    background: var(--clr-primary-lighter, #f5f1ea);
    border-radius: 14px;
    padding: 1.5rem;
    border: 2px solid var(--clr-primary, #5c6d3f);
}
.mpesa-box .mpesa-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #4caf50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}
.mpesa-box h6 {
    font-weight: 700;
    margin-bottom: 2px;
}
.mpesa-box p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* ===== ORDER SUMMARY SIDEBAR ===== */
.order-summary {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 120px;
}
.order-summary h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.95rem;
}
.order-summary .summary-row.total {
    border-top: 2px solid #eee;
    margin-top: 12px;
    padding-top: 16px;
    font-weight: 700;
    font-size: 1.1rem;
}
.order-summary .btn-contribute-main {
    width: 100%;
    border-radius: 50px;
    padding: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}
.order-summary .secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 12px;
}
.order-summary .secure-note i {
    color: var(--clr-primary, #5c6d3f);
}

/* ===== SAVE HISTORY SECTION ===== */
.save-history-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px dashed #ccc;
    text-align: center;
}
.save-history-section .sh-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--clr-primary-lighter, #f0ebe2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--clr-primary, #5c6d3f);
}
.save-history-section h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}
.save-history-section p {
    color: #777;
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto 1.2rem;
}

/* ===== BACK LINK ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--clr-primary, #5c6d3f);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .order-summary {
        position: static;
        margin-top: 1.5rem;
    }
    .amount-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 575px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
