﻿.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-card {
    background-color: #fefefe;
    margin: 6vh auto;
    padding: 24px;
    border: 1px solid #888;
    width: min(92vw, 960px);
    max-width: 960px;
    border-radius: 5px;
    max-height: 88vh;
    overflow-y: auto;
}

.modal-card-head {
    padding: 10px 16px;
    background-color: #5cb85c;
    color: white;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    display: none;
}

.modal-card-title {
    font-size: 1.25rem;
    font-weight: 500;
}

.modal-card-body {
    padding: 16px;
}

.modal-card-body .content {
    font-size: 1rem;
    line-height: 1.65;
}

.modal-card-body .content p {
    margin-bottom: 1rem;
}

.modal-card-foot {
    padding: 10px 16px;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.consent-option {
    margin-top: 10px;
}

.consent-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #222;
}

.consent-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .modal-card {
        width: calc(100vw - 24px);
        margin: 12px auto;
        padding: 16px;
        max-height: calc(100vh - 24px);
    }

    .modal-card-body {
        padding: 12px;
    }

    .modal-card-body .content {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .modal-card-foot {
        justify-content: stretch;
    }

    .modal-card-foot .button {
        flex: 1 1 100%;
    }
}
