/* === MODAL STYLING === */

.modal-backdrop.show {
    background: rgba(49, 18, 24, 0.45);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    margin-top: 3.5rem;
}

.modal-content {
    border: 1px solid #e8ddd8;
    border-radius: 1.25rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 253, 251, 0.98) 0%, rgba(251, 246, 242, 0.98) 100%);
    box-shadow: 0 26px 54px rgba(99, 25, 37, 0.18);
}

.custom-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--fontana-wine-700) 0%, var(--fontana-wine-600) 100%);
    color: #fff;
    border-bottom: none;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.custom-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.custom-modal-header .btn-close {
    filter: invert(1);
    opacity: 0.88;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.custom-modal-header .btn-close:hover {
    opacity: 1;
    transform: scale(1.05);
}

.modal-body {
    padding: 1.35rem 1.25rem 1rem;
    color: var(--fontana-ink-900);
    line-height: 1.6;
}

.modal-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid #ede2dc;
    background: rgba(255, 250, 247, 0.72);
    gap: 0.65rem;
}

.modal-footer > * {
    margin: 0 !important;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal-footer .btn {
        width: 100%;
    }
}
