.fmac-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.fmac-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 560px;
    width: 100%;
    position: relative;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.fmac-modal-body {
    padding: 36px 36px 28px;
}

.fmac-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}
.fmac-close:hover { color: #333; background: #f5f5f5; }

.fmac-emoji {
    font-size: 44px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}

.fmac-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    text-align: center;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

.fmac-subtitle {
    font-size: 14px !important;
    color: #666 !important;
    text-align: center;
    margin: 0 0 24px !important;
    line-height: 1.5 !important;
}

/* Griglia motivi */
.fmac-reasons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
    border-radius: 6px;
    transition: outline .2s;
}

.fmac-reason-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color .18s, background .18s, transform .12s;
    text-align: center;
    font-family: inherit;
}
.fmac-reason-btn:hover {
    border-color: #c0c0c0;
    background: #f0f0f0;
    transform: translateY(-1px);
}
.fmac-reason-btn.selected {
    border-color: #e2401c;
    background: #fff5f3;
}

.fmac-reason-icon { font-size: 24px; line-height: 1; }
.fmac-reason-label { font-size: 12px; font-weight: 600; color: #444; line-height: 1.3; }

/* Campo commento */
.fmac-comment-wrap { margin-bottom: 20px; }
.fmac-comment-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
}
.fmac-comment-wrap label span { color: #999; font-weight: 400; }

.fmac-comment {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color .18s;
    color: #333;
}
.fmac-comment:focus { border-color: #e2401c; outline: none; }

/* Bottoni azione */
.fmac-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.fmac-submit {
    background: #F5956F;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background .18s, transform .12s;
}
.fmac-submit:hover { background: #e07a52; transform: translateY(-1px); }

.fmac-skip {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    padding: 4px;
    transition: color .15s;
}
.fmac-skip:hover { color: #666; }

/* Stato successo */
.fmac-success {
    text-align: center;
    padding: 48px 36px;
}
.fmac-success-icon { font-size: 52px; margin-bottom: 16px; }
.fmac-success h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px !important;
}
.fmac-success p {
    font-size: 14px !important;
    color: #888 !important;
    margin: 0 !important;
}

/* Mobile */
@media (max-width: 480px) {
    .fmac-modal-body { padding: 28px 20px 20px; }
    .fmac-reasons { grid-template-columns: repeat(2, 1fr); }
    .fmac-title { font-size: 18px !important; }
}
