/* Sponsor Package Modals */

/* Package Actions Container */
.package-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

/* Details Link */
.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: transparent;
    color: #0066a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #0066a1;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-details:hover {
    background: #0066a1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 161, 0.3);
}

.btn-details i {
    font-size: 16px;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

/* Modal Content */
.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 20px;
    color: #333;
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-icon-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.modal-icon-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.modal-icon-bronze {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

.modal-icon i {
    font-size: 36px;
    color: white;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #003d66;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 36px;
    font-weight: 800;
    color: #0066a1;
}

.modal-price span {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-left: 8px;
}

/* Modal Body */
.modal-body {
    padding: 40px 30px;
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #003d66;
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h3 i {
    color: #e67e22;
    font-size: 22px;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.modal-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.modal-list li:last-child {
    border-bottom: none;
}

.modal-list li i {
    color: #22c55e;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-list li strong {
    color: #1e293b;
    font-weight: 700;
}

/* Modal Footer */
.modal-footer {
    padding: 30px;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
    text-align: center;
}

.btn-modal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-modal i {
    font-size: 18px;
}

.btn-modal-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-modal-silver {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

.btn-modal-bronze {
    background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
}

/* Scrollbar Styling */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .package-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-details,
    .btn-package {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 30px 20px;
    }
    
    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .modal-icon i {
        font-size: 32px;
    }
    
    .modal-header h2 {
        font-size: 26px;
    }
    
    .modal-price {
        font-size: 28px;
    }
    
    .modal-body {
        padding: 30px 20px;
    }
    
    .modal-body h3 {
        font-size: 18px;
    }
    
    .modal-list li {
        font-size: 14px;
    }
    
    .modal-footer {
        padding: 20px;
    }
    
    .btn-modal {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* Print Hide */
@media print {
    .modal {
        display: none !important;
    }
}

/* Accessibility */
.modal-close:focus,
.btn-details:focus,
.btn-modal:focus {
    outline: 3px solid #0066a1;
    outline-offset: 2px;
}
