/**
 * Redress Modal Custom Styles
 * Matching the reference site design
 */

/* Modal dialog sizing */
.modal-70ch {
    max-width: 70ch !important;
}

/* Modal content styling */
.modal--default .modal-content {
    border-radius: 10px;
    border: none;
}

.modal--default .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.modal--default .modal-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0;
}

.modal--default .modal-body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #212529;
}

/* Close button styling */
.modal--default .close {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.modal--default .close:hover {
    opacity: 0.8;
}

/* Modal backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-backdrop.show {
    opacity: 0.6;
}

/* Document content styling */
.modal-content-area {
    font-size: 15px;
}

.modal-content-area h1,
.modal-content-area h2,
.modal-content-area h3,
.modal-content-area h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content-area h1 {
    font-size: 1.75rem;
}

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

.modal-content-area h3 {
    font-size: 1.25rem;
}

.modal-content-area p {
    margin-bottom: 1rem;
}

.modal-content-area ul,
.modal-content-area ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.modal-content-area a {
    color: rgb(26, 96, 161);
    text-decoration: none;
}

.modal-content-area a:hover {
    color: rgb(35, 73, 119);
    text-decoration: underline;
}

/* Loading spinner */
.modal-loading .spinner-border {
    color: rgb(26, 96, 161);
    width: 3rem;
    height: 3rem;
}

/* Scrollable modal body */
.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-70ch {
        max-width: 95% !important;
        margin: 0.5rem;
    }

    .modal--default .modal-header,
    .modal--default .modal-body {
        padding: 1rem;
    }

    .modal-dialog-scrollable .modal-body {
        max-height: calc(100vh - 150px);
    }
}
