/**
 * Checkout Modal Styles
 * Modal de checkout integrado com backend
 */

/* ========================================
   CHECKOUT MODAL - Container
   ======================================== */
.checkout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.checkout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.checkout-modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 10001;
}

/* ========================================
   CHECKOUT HEADER
   ======================================== */
.checkout-header {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.checkout-header h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

.selected-package-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.selected-package-info span {
    font-size: 16px;
}

.amount-highlight {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CLOSE BUTTON
   ======================================== */
.checkout-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.checkout-close-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* ========================================
   CHECKOUT FORM
   ======================================== */
.checkout-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    color: #FF6B35;
    margin-right: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */
.payment-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.payment-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
    text-align: center;
}

#paypal-button-container {
    margin: 20px 0;
    min-height: 150px;
}

.secure-payment {
    text-align: center;
    color: #28a745;
    font-size: 14px;
    margin-top: 15px;
}

.secure-payment i {
    margin-right: 6px;
}

/* ========================================
   CHECKOUT FOOTER
   ======================================== */
.checkout-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.checkout-footer p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.checkout-footer i {
    color: #28a745;
    margin-right: 6px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .checkout-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .checkout-header {
        padding: 20px;
    }
    
    .checkout-header h2 {
        font-size: 22px;
    }
    
    .amount-highlight {
        font-size: 28px !important;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .selected-package-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkout-header h2 {
        font-size: 20px;
    }
    
    .amount-highlight {
        font-size: 24px !important;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */
.checkout-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.checkout-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
