/* Checkout Popup Styles */
.checkout-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px 0;
}

.checkout-popup {
    background: #fff;
    max-width: 900px;
    margin: 20px auto;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-checkout {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.close-checkout:hover {
    color: #333;
}

.checkout-popup h2 {
    background: #4a6f28;
    color: white;
    margin: 0;
    padding: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.checkout-content {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.checkout-form, .payment-section {
    flex: 1;
    min-width: 300px;
    padding: 15px;
}

.checkout-form h3, .payment-section h3 {
    color: #4a6f28;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: #4a6f28;
    box-shadow: 0 0 0 2px rgba(74, 111, 40, 0.2);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #4a6f28;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #3a5a1e;
}

/* Payment Section */
.qr-code-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.qr-code {
    margin: 20px 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    max-width: 200px;
    height: auto;
}

.upi-id {
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 6px;
    font-family: monospace;
    font-size: 15px;
}

.note, .verification-note {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.verification-note {
    color: #e65100;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-content {
        flex-direction: column;
    }
    
    .checkout-form, .payment-section {
        width: 100%;
        padding: 10px 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-popup {
        margin: 20px 10px;
    }
    
    .qr-code img {
        max-width: 180px;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    border-radius: 8px;
}

.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #4a6f28;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
