/* The "Learn more" explanation of each wizard question (/costCalculator).
   Own class names (col-modal-*) so Bootstrap's .modal rules never apply to it; themed
   with the site's variables so it reads in every theme and in dark mode. */

.col-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1060;
    overflow: auto;
    background: rgba(0, 0, 0, .5);
    padding: 1rem;
}

.col-modal.open {
    display: block;
}

.col-modal-content {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    margin: 4rem auto;
    position: relative;
    width: 100%;
    max-width: 760px;
    border-radius: .75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    overflow: hidden;
}

.col-modal-header {
    background: var(--color1);
    color: var(--color1_contrast);
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
}

.col-modal-info {
    max-height: 65vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
}

.col-modal-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color1);
    margin: 1rem 0 .35rem;
}

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

.col-modal-info p {
    margin-bottom: .5rem;
}

.col-modal-close {
    position: absolute;
    top: .55rem;
    inset-inline-end: .9rem;
    color: var(--color1_contrast);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    opacity: .85;
}

.col-modal-close:hover {
    opacity: 1;
}
