#feedbackModal:not(.active):not(.show) {
    display: none !important;
}
/* 1. Overlay */
#feedbackModal.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15,17,21,.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1rem;
    overflow-y: auto;
}

/* 2. Container */
#feedbackModal .feedback-container {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    border-radius: 13.4px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
    overflow: hidden;
    position: relative;
    margin: auto;
}

#feedbackModal .form-section {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: .3rem;
}

#feedbackModal .form-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom:0!important;
}

#feedbackModal .form-label {
    font-size: .78rem;
    font-weight: 700;
    color: #374151;
}

#feedbackModal .form-input {
    font-family: inherit;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: .6rem .85rem;
    font-size: .85rem;
    color: #111827;
    outline: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#feedbackModal .form-input:hover {
    border-color: #d1d5db;
}

#feedbackModal .form-input:focus {
    border-color: #2f7259;
    box-shadow: 0 0 0 3px rgba(47,114,89,.12);
}

#feedbackModal .form-input::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

#feedbackModal .form-textarea {
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    line-height: 1.45;
}

/* 3. Header (icône à gauche, texte à droite) */
#feedbackModal .feedback-header {
    background: #fff;
    padding: 1.3rem 3.2rem 1rem 1.6rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

#feedbackModal .close-btn {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: #17181c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,.12);
    transition: background .15s;
}
#feedbackModal .close-btn:hover { background: #f6f7f9; }

#feedbackModal .fi-wrap svg {
    width: 90px;
    height: 61px;
    display: block;
    overflow: visible;
    flex-shrink: 0;
}

#feedbackModal .fh-text { display: flex; flex-direction: column; min-width: 0; }

#feedbackModal .feedback-header h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 .15rem;
    color: #111827;
    white-space: nowrap;
    text-align: left;
}
#feedbackModal .feedback-header h2 .hl { color: #2f7259; }

#feedbackModal .feedback-header p {
    font-size: .76rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

/* 4. Content */
#feedbackModal .feedback-content { padding: 0 1.75rem 1.75rem; }

#feedbackModal .step-indicator {
    display: flex;
    gap: 8px;
    margin-bottom: 1.6rem;
}
#feedbackModal .step-indicator .step {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: #e8eae9;
}
#feedbackModal .step-indicator .step.active { background: #2f7259; }

#feedbackModal .rating-title {
    font-size: .92rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 .25rem;
    text-align: center;
    white-space: nowrap;
}
#feedbackModal .rating-subtitle {
    font-size: .78rem;
    color: #6b7280;
    margin: 0 0 1.2rem;
    text-align: center;
    font-weight: 500;
}

/* 5. Emoji rating */
#feedbackModal .emoji-rating {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}
#feedbackModal .emoji-option {
    flex: 1;
    height: 62px;
    border-radius: 16px;
    border: 2px solid transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
#feedbackModal .emoji-option[data-rating="1"] { background: #fdf0ef; }
#feedbackModal .emoji-option[data-rating="2"] { background: #fdf3e7; }
#feedbackModal .emoji-option[data-rating="3"] { background: #fbf6e3; }
#feedbackModal .emoji-option[data-rating="4"] { background: #eaf6ea; }
#feedbackModal .emoji-option[data-rating="5"] { background: #e6f4ec; }

#feedbackModal .emoji-option:hover { transform: translateY(-2px); }
#feedbackModal .emoji-option.selected {
    border-color: #2f7259;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px -6px rgba(47,114,89,.45);
}

#feedbackModal .rating-labels {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: 1.3rem;
}
#feedbackModal .rating-labels span {
    flex: 1;
    text-align: center;
    font-size: .6rem;
    color: #9ca3af;
    font-weight: 700;
    white-space: nowrap;
}

/* 6. Privacy note */
#feedbackModal .feedback-note {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1rem;
    background: #eaf5ee;
    border-radius: 14px;
}
#feedbackModal .feedback-note i {
    color: #2f7259;
    font-size: .9rem;
    margin-top: .15rem;
    flex-shrink: 0;
}
#feedbackModal .feedback-note span {
    font-size: .74rem;
    line-height: 1.4;
    color: #2f7259;
    font-weight: 700;
    text-align: left;
}

/* 7. Actions */
#feedbackModal .feedback-actions {
    display: flex;
    gap: .75rem;
    margin-top: 1.4rem;
}
#feedbackModal .feedback-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}
#feedbackModal .feedback-actions .btn:active { transform: scale(.98); }
#feedbackModal .feedback-actions .btn-secondary {
    background: #f3f4f6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    display: none; /* masqué à l'étape 1 */
}
#feedbackModal .feedback-actions.has-prev .btn-secondary { display: inline-flex; }
#feedbackModal .feedback-actions .btn-primary {
    background: linear-gradient(135deg, #ff7a45, #e85520);
    color: #fff;
    box-shadow: 0 10px 22px -9px rgba(232,85,32,.55);
}
#feedbackModal .feedback-actions .btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(232,85,32,.65); }

/* 8. Dots */
#feedbackModal .step-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.1rem;
}
#feedbackModal .step-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: width .2s ease, background .2s ease;
}
#feedbackModal .step-dots .dot.active {
    background: #2f7259;
    width: 16px;
    border-radius: 3px;
}
#feedbackModal .category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-bottom: 1.4rem;
}

#feedbackModal .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem .75rem;
    border: 2px solid #edf0ee;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#feedbackModal .category-item:hover {
    border-color: #cfe6da;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -10px rgba(47,114,89,.28);
}

#feedbackModal .category-item.selected {
    border-color: #2f7259;
    background: #f3faf6;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -8px rgba(47,114,89,.35);
}

#feedbackModal .category-item i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #2f7259;
    background: #eaf5ee;
    border-radius: 12px;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

#feedbackModal .category-item.selected i {
    background: #2f7259;
    color: #fff;
    transform: scale(1.05);
}

#feedbackModal .category-item span {
    font-size: .82rem;
    font-weight: 700;
    color: #374151;
}
#feedbackModal .thank-you-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: .5rem 0 1rem;
}
#feedbackModal .thank-you-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eaf5ee;
    color: #2f7259;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#feedbackModal .thank-you-text-group { display: flex; flex-direction: column; }
#feedbackModal .thank-you-title { font-size: 1.05rem; font-weight: 800; color: #111827; margin: 0 0 .3rem; text-align: left; }
#feedbackModal .thank-you-text { font-size: .82rem; color: #6b7280; line-height: 1.5; margin: 0; text-align: left; }