/* CEO Message Modal - Mobile First Responsive Design */

/* Modal Dialog - Mobile first (base styles) */
.ceo-modal-dialog {
    max-width: 95%;
    margin: 0.5rem auto;
}

/* Modal Content */
.ceo-modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Modal Header */
.ceo-modal-header {
    background-color: #04552c;
    color: #ffffff;
    border-bottom: 3px solid #800020;
    padding: 0.875rem 1rem;
}

.ceo-modal-header .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ceo-modal-header .btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.ceo-modal-header .btn-close-white:hover {
    opacity: 1;
}

/* Modal Body */
.ceo-modal-body {
    padding: 1.25rem 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.ceo-modal-body p {
    margin-bottom: 0.875rem;
}

.ceo-modal-body p:last-of-type {
    margin-bottom: 0;
}

/* Salutation */
.ceo-salutation {
    font-weight: 600;
    color: #04552c;
    margin-bottom: 1rem !important;
}

/* Links */
.ceo-link {
    color: #04552c;
    font-weight: 500;
    text-decoration: underline;
}

.ceo-link:hover {
    color: #023b1e;
}

/* Signature */
.ceo-signature {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.ceo-signature p {
    margin-bottom: 0;
    font-style: italic;
    color: #555;
}

.ceo-signature-name {
    font-weight: 600;
    font-style: normal !important;
    color: #800020 !important;
    font-size: 1rem;
}

/* Modal Footer */
.ceo-modal-footer {
    padding: 0;
    border-top: none;
    background-color: #f0f0f0;
}

/* Dismiss Button */
.btn-ceo-dismiss {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0;
    background-color: #800020;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-ceo-dismiss:hover {
    background-color: #600018;
    color: #ffffff;
}

.btn-ceo-dismiss:focus {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Tablet (576px and up) */
@media (min-width: 576px) {
    .ceo-modal-dialog {
        max-width: 90%;
    }

    .ceo-modal-header {
        padding: 1rem 1.25rem;
    }

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

    .ceo-modal-body {
        padding: 1.5rem 1.25rem;
        font-size: 0.95rem;
    }

    .btn-ceo-dismiss {
        padding: 1rem 1.25rem;
    }
}

/* Small Desktop (768px and up) */
@media (min-width: 768px) {
    .ceo-modal-dialog {
        max-width: 600px;
    }

    .ceo-modal-header {
        padding: 1.125rem 1.5rem;
    }

    .ceo-modal-header .modal-title {
        font-size: 1.25rem;
    }

    .ceo-modal-body {
        padding: 1.75rem 1.5rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .ceo-modal-body p {
        margin-bottom: 1rem;
    }

    .ceo-signature {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .ceo-signature-name {
        font-size: 1.05rem;
    }
}

/* Desktop (992px and up) */
@media (min-width: 992px) {
    .ceo-modal-dialog {
        max-width: 650px;
    }

    .ceo-modal-body {
        padding: 2rem 1.75rem;
    }
}

/* Animation for modal appearance */
#ceoMessageModal.show .ceo-modal-content {
    animation: ceoSlideInUp 0.3s ease-out;
}

@keyframes ceoSlideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility - Focus visible */
.ceo-modal-content:focus-visible {
    outline: 2px solid #04552c;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ceo-modal-header {
        border-bottom-width: 4px;
    }

    .ceo-link {
        text-decoration-thickness: 2px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    #ceoMessageModal.show .ceo-modal-content {
        animation: none;
    }
}
