/* ==================== Modal Styles ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, #F26C00 0%, #D45D00 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.modal-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Modal Body */
.modal-body {
    padding: 2rem;
}

/* Quick Facts */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
}

.fact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
    border-color: #F26C00;
}

.fact-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.fact-text {
    display: flex;
    flex-direction: column;
}

.fact-text strong {
    color: #0f172a;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.fact-text span {
    color: #64748b;
    font-size: 0.85rem;
}

/* Modal Sections */
.modal-section {
    margin-top: 2.5rem;
}

.modal-section h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

/* Service List */
.service-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.check-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #F26C00 0%, #D45D00 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.85rem;
}

.service-item strong {
    color: #0f172a;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.3rem;
}

.service-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Support Levels / Packages */
.support-levels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-level {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s;
}

.support-level:hover {
    border-color: #F26C00;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    transform: translateX(5px);
}

.level-badge {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    text-align: center;
    line-height: 1.2;
    padding: 0.3rem;
}

.level-badge.level-1 {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.level-badge.level-2 {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.level-badge.level-3 {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.level-content h4 {
    color: #0f172a;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.level-content p {
    color: #64748b;
    margin-bottom: 0.8rem;
}

.level-time {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: #F26C00;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Modal CTA */
.modal-cta {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
    border-radius: 20px;
    text-align: center;
}

.modal-cta h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 0.8rem;
}

.modal-cta p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ==================== Responsive ==================== */
/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .modal-overlay {
        padding: 1.5rem;
    }

    .modal-content {
        max-width: 700px;
    }

    .quick-facts {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        margin-top: auto;
    }

    .modal-header {
        padding: 1.8rem 1.2rem 1.2rem;
        border-radius: 20px 20px 0 0;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }

    .modal-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.2rem;
    }

    .quick-facts {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .fact-item {
        padding: 0.8rem;
    }

    .fact-icon {
        font-size: 1.3rem;
    }

    .modal-section {
        margin-top: 1.5rem;
    }

    .modal-section h3 {
        font-size: 1.2rem;
    }

    .service-item {
        padding: 0.8rem 0;
    }

    .service-item strong {
        font-size: 0.95rem;
    }

    .service-item p {
        font-size: 0.85rem;
    }

    .check-icon {
        font-size: 0.9rem;
        min-width: 22px;
        height: 22px;
    }

    /* Support Levels */
    .support-levels {
        gap: 0.8rem;
    }

    .support-level {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }

    .level-badge {
        margin: 0 auto;
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .level-content h4 {
        font-size: 1rem;
    }

    .level-content p {
        font-size: 0.85rem;
    }

    .level-time {
        font-size: 0.8rem;
    }

    /* CTA */
    .modal-cta {
        padding: 1.5rem 1.2rem;
        text-align: center;
    }

    .modal-cta h3 {
        font-size: 1.2rem;
    }

    .modal-cta p {
        font-size: 0.9rem;
    }

    .modal-cta .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 0;
    }

    .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .fact-item {
        padding: 0.6rem;
    }

    .fact-text strong {
        font-size: 0.85rem;
    }

    .fact-text span {
        font-size: 0.75rem;
    }
}

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

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

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

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