/* Package Modal Styles */

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: hidden;
}

/* Modal Content */
.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    /* border-radius: 8px; */
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 15px;
    border-bottom: 1px solid #eee;
    background-color: #666;
}

.modal-info {
    flex: 1;
}

.package-header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.package-header-info h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-weight: bold;
}

.package-header-info h3:nth-child(2) {
    font-size: 16px;
    font-weight: bold;
    color: #e0e0e0;
}

.package-header-info h3:last-child {
    font-size: 16px;
    font-weight: bold;
    color: #e0e0e0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
    padding: 10px 15px;
    margin-top: 5px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #e0e0e0;
}

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

.package-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.price-detail, .classes-detail, .description-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-detail h4, .classes-detail h4, .description-detail h4 {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.price-detail p, .classes-detail p, .description-detail p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.purchase-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.signup-link {
    margin-top: 10px;
    font-size: 11px;
    color: #666;
}

.signup-link-text {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}

.signup-link-text:hover {
    text-decoration: underline;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-pop {
    background-color: #666666;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    max-width: 200px;
}

.btn-primary:hover {
    background-color: #555555;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        padding: 0;
        margin: 0;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .modal-header {
        padding: 12px 15px;
        margin: 0;
    }

    .modal-info {
        flex: 1;
    }

    .package-header-info {
        gap: 2px;
        margin: 0;
        width: 100%;
    }

    .package-header-info h3 {
        margin: 0;
        font-size: 18px;
        width: 100%;
    }

    .package-header-info h3:nth-child(2),
    .package-header-info h3:last-child {
        margin: 0;
        font-size: 14px;
        width: 100%;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-footer {
        margin-top: 20px;
        padding-top: 10px;
    }

    .purchase-buttons {
        width: 100%;
    }

    .btn-pop {
        padding: 10px 20px;
        font-size: 14px;
    }

    .signup-link {
        font-size: 12px;
    }

    .modal-close {
        font-size: 24px;
        padding: 8px 12px;
    }
}
