/* ===== CUSTOM CHECKOUT PAGE STYLES ===== */

.custom-checkout-page {
    padding: 2rem 0;
    min-height: 80vh;
}

.checkout-header {
    text-align: center;
    margin-bottom: 3rem;
}

.checkout-header h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.checkout-header p {
    font-size: 1.1rem;
    color: #000000;
    margin: 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Order Summary */
.order-summary {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-header h3 {
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
}

.summary-items {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.summary-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8f9fa;
}

.item-details h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #000000;
}

.item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #000000;
}

.item-price {
    font-weight: 600;
    color: #000000;
}

.summary-total {
    border-top: 2px solid #000000;
    padding-top: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
}

.total-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000000;
}

/* Customer Form */
.customer-form-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-header h3 {
    color: #000000;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h4 {
    color: #000000;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

/* Payment Method */
.payment-method {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-option input[type="radio"] {
    width: auto;
    margin: 0;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    margin: 0;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.payment-option label:hover {
    transform: translateY(-2px);
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-text strong {
    color: #000000;
    font-size: 1rem;
}

.payment-text small {
    color: #000000;
    font-size: 0.8rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #000000;
}

.btn-back,
.btn-confirm {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.btn-back {
    background: none;
    color: black;
    border: 3px solid black;
}

.btn-back:hover {
    transform: translateY(-2px);
}

.btn-confirm {
    background:none;
    color: rgb(0, 0, 0);
    border: 3px solid black;
}

.btn-confirm:hover {
    transform: translateY(-2px);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-confirm {
        width: 100%;
    }
    
    .checkout-header h1 {
        font-size: 2rem;
    }
    
    .order-summary {
        position: static;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3498db;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}
