.modal-btn {
    background: linear-gradient(135deg, #13a89e 0%, #0174ba 100%);
    border-style: solid;
    border-color: #13a89e;
    border-radius: 14px;
    border-width: 1px;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    background: linear-gradient(135deg, #0f8b82 0%, #015a96 100%);
    border-color: #0f8b82;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(19, 168, 158, 0.4);
    color: white;
}

/* Override for dynamic popup modal - light grey background with rounded corners */
#dynamic-popup-modal .modal-content {
    background: #b1b1b1 !important;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#dynamic-popup-modal .modal-body {
    padding: 0;
}

/* Transparent background for image-only popups */
#dynamic-popup-modal.image-only .modal-body {
    padding: 0;
}

#dynamic-popup-modal.image-only .modal-content {
    background: transparent !important;
}

/* Modal text styling - matches public site body */
#dynamic-popup-modal .modal-body h3,
#dynamic-popup-modal .modal-body p,
#dynamic-popup-modal .modal-body .text-center {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #272727;
    line-height: 1.5;
}

/* Padding only for text content, not images */
#dynamic-popup-modal .modal-body h3,
#dynamic-popup-modal .modal-body p,
#dynamic-popup-modal .modal-body .text-center {
    padding: 0 20px;
}

#dynamic-popup-modal .modal-body h3 {
    padding-top: 20px;
    margin-bottom: 15px;
}

#dynamic-popup-modal .modal-body p {
    padding-top: 15px;
    margin-bottom: 15px;
}

#dynamic-popup-modal .modal-body .text-center {
    padding-bottom: 20px;
}

/* Add spacing after image when followed by content */
#dynamic-popup-modal .modal-body img {
    display: block;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
}

#dynamic-popup-modal .modal-dialog {
    margin: 1.75rem auto;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 1000;
    cursor: pointer;
    background-color: whitesmoke;
}

/* Custom modal backdrop - dark transparent instead of blue */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

.modal-backdrop.show {
    opacity: 0.75 !important;
}

/* Popup modal styling - shared between public site and admin preview */
#dynamic-popup-modal .modal-content,
#popupPreviewModal .modal-content {
    background: #b1b1b1 !important;
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

#dynamic-popup-modal .modal-body,
#popupPreviewModal .modal-body {
    padding: 0;
}

#dynamic-popup-modal.image-only .modal-body,
#popupPreviewModal.image-only .modal-body {
    padding: 0;
}

#dynamic-popup-modal.image-only .modal-content,
#popupPreviewModal.image-only .modal-content {
    background: transparent !important;
}

#dynamic-popup-modal .modal-body h3,
#dynamic-popup-modal .modal-body p,
#dynamic-popup-modal .modal-body .text-center,
#popupPreviewModal .modal-body h3,
#popupPreviewModal .modal-body p,
#popupPreviewModal .modal-body .text-center {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #272727;
    line-height: 1.5;
    padding: 0 20px;
}

#dynamic-popup-modal .modal-body h3,
#popupPreviewModal .modal-body h3 {
    padding-top: 20px;
    margin-bottom: 15px;
}

#dynamic-popup-modal .modal-body p,
#popupPreviewModal .modal-body p {
    padding-top: 15px;
    margin-bottom: 15px;
}

#dynamic-popup-modal .modal-body .text-center,
#popupPreviewModal .modal-body .text-center {
    padding-bottom: 20px;
}

#dynamic-popup-modal .modal-body img,
#popupPreviewModal .modal-body img {
    display: block;
    margin-bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
}

#dynamic-popup-modal .modal-dialog,
#popupPreviewModal .modal-dialog {
    margin: 1.75rem auto;
}
