/* Checkout Page Styling - BookSaw Design */

.checkout-page {
    background: #fff;
    min-height: 100vh;
}

/* Header Section */
.checkout-header {
    background: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    text-decoration: none;
}

.checkout-logo {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.divider {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 300;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Checkout Content */
.checkout-content {
    padding: 3rem 0;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-image {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-info {
    flex: 1;
}

.summary-name {
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.summary-price {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.summary-total {
    font-weight: bold;
    color: #8e44ad;
    font-size: 1.1rem;
}

.summary-footer {
    border-top: 2px solid #2c3e50;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.total-amount {
    color: #8e44ad;
    font-size: 1.3rem;
}

/* Payment Section */
.payment-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.payment-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Customer Information */
.customer-info {
    margin-bottom: 2rem;
}

.customer-info h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8e44ad;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Payment Methods */
.payment-methods h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8e44ad;
}

.payment-option {
    margin-bottom: 1rem;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.payment-label:hover {
    border-color: #8e44ad;
    background: #f8f9fa;
}

.payment-option input[type="radio"]:checked + .payment-label {
    border-color: #8e44ad;
    background: rgba(142, 68, 173, 0.1);
}

.payment-icon {
    width: 50px;
    height: 50px;
    background: #8e44ad;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.payment-info {
    flex: 1;
}

.payment-info h5 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.payment-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Bank Details */
.bank-details {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #8e44ad;
}

.bank-details h4 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.bank-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.qr-code {
    text-align: center;
    flex: 0 0 auto;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.qr-code p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.bank-account {
    flex: 1;
}

.bank-account h5 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.bank-account p {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.bank-account strong {
    color: #8e44ad;
}

/* Checkout Actions */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.back-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.confirm-btn {
    background: #8e44ad;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    background: #7d3c98;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-content .row {
        flex-direction: column-reverse;
    }
    
    .order-summary {
        margin-top: 2rem;
    }
    
    .bank-info {
        flex-direction: column;
        text-align: center;
    }
    
    .qr-image {
        width: 150px;
        height: 150px;
    }
    
    .checkout-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-btn,
    .confirm-btn {
        width: 100%;
    }
    
    .checkout-logo {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .payment-section,
    .order-summary {
        padding: 1rem;
    }
    
    .summary-item {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-image {
        width: 80px;
        height: 100px;
    }
    
    .payment-label {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-icon {
        margin-bottom: 1rem;
    }
}
