/* assets/css/aula_modal.css */

.aula-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 2rem;
    box-sizing: border-box;
}

.aula-modal-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.aula-modal {
    background: #fff;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);

    transform: translateY(20px);
    transition: transform 0.3s ease;

    display: flex;
    flex-direction: column;
}

.aula-modal-backdrop.is-visible .aula-modal {
    transform: translateY(0);
}

.aula-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    padding: 0.5rem;
    z-index: 10;
}

.aula-modal-close:hover {
    color: #333;
}

.aula-modal-content {
    padding: 3.5rem 3rem;
    /* Adjusted vertical padding slightly back */
    color: #333;
    font-family: inherit;
    line-height: 1.7;
    text-align: center;
    /* Centered Text */
}

/* Modal Typography */
.aula-modal h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #C75B35;
    /* Primary */
    text-align: center;
}

.aula-modal p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.aula-modal strong {
    font-weight: 700;
}

/* CTA Section inside modal */
.aula-modal-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    /* Center buttons */
}

/* Reduce CTA size by 25% and fix width */
.aula-modal-actions .btn-aula {
    font-size: 0.95rem;
    padding: 1rem 2rem;
    width: auto;
    /* No longer full width */
    min-width: 220px;
    max-width: 100%;
}