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

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0px 10px 8px;
    color: #666;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
	text-align: left;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.terms-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.terms-section ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-section ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.terms-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.go-back {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.go-back:hover {
    background-color: #005177;
}

.accept-terms {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.accept-terms:hover {
    background-color: #005177;
}

/* Estilos para el enlace de términos en el formulario */
.terms-trigger {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.terms-trigger:hover {
    color: #005177;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }

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

    .modal-body {
        padding: 15px;
    }
}