/* ==============================================
   FORMULAIRES DE RÉCLAMATION - Styles CSS
   ============================================== */

/* Container du formulaire */
.reclamation-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 24px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    animation: slideUp 0.4s ease-out;
}

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

/* Header du formulaire */
.form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.form-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.form-header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.form-header-text p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
}

/* Badge de priorité */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-badge.urgente {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-badge.haute {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.priority-badge.moyenne {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}

.priority-badge.normale {
    background: #f5f7f2;
    color: #8a9a6e;
    border: 1px solid #d4e1b6;
}

/* Progress bar */
.form-progress-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 12px;
}

.progress-steps {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #003868 0%, #0a5a8a 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

/* Groupes de champs */
.form-group-section {
    margin-bottom: 24px;
}

.form-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.form-group-title i {
    color: #003868;
}

/* Champs de formulaire */
.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-field label .required {
    color: #dc2626;
    margin-left: 2px;
}

.form-field .field-help {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* Inputs communs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #003868;
    box-shadow: 0 0 0 3px rgba(0, 56, 104, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #94a3b8;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Input avec icône */
.input-with-icon {
    position: relative;
}

.input-with-icon .form-input {
    padding-left: 44px;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}

/* Textarea */
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Select personnalisé */
.select-wrapper {
    position: relative;
}

.form-select {
    appearance: none;
    width: 100%;
    padding: 14px 44px 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #003868;
    box-shadow: 0 0 0 3px rgba(0, 56, 104, 0.15);
}

.form-select:hover {
    border-color: #003868;
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.form-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #003868;
}

/* Multiselect grid */
.multiselect-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Force la section notification à avoir des options binaires en pills aussi */
[data-group="notification"] .options-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    grid-template-columns: none;
}

[data-group="notification"] .options-grid .option-card {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 25px;
    text-align: center;
}

[data-group="notification"] .options-grid .option-card .option-check {
    width: 18px;
    height: 18px;
}

[data-group="notification"] .options-grid .option-card .option-check i {
    font-size: 9px;
}

[data-group="notification"] .options-grid .option-card .option-label {
    font-size: 13px;
    flex: none;
}

/* ==============================================
   NOTIFICATION CHECKBOXES - Design Moderne
   ============================================== */

/* ==============================================
   NOTIFICATION CHANNELS - Compact Chips/Tabs
   ============================================== */

/* Conteneur compact en ligne pour les canaux */
[data-group="notification"] .multiselect-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

[data-group="notification"] .option-card {
    flex: 0 0 auto;
    min-width: auto;
    max-width: none;
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

[data-group="notification"] .option-card::before {
    display: none;
}

[data-group="notification"] .option-card:hover {
    border-color: #003868;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 56, 104, 0.12);
}

[data-group="notification"] .option-card.selected {
    border-color: #003868;
    background: linear-gradient(135deg, rgba(0, 56, 104, 0.1) 0%, rgba(20, 101, 163, 0.08) 100%);
    box-shadow: 0 2px 8px rgba(0, 56, 104, 0.15);
}

/* Label du canal */
[data-group="notification"] .option-card .option-label {
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    text-align: center;
    order: 2;
}

[data-group="notification"] .option-card.selected .option-label {
    color: #003868;
    font-weight: 700;
}

/* Icône du canal - Petit cercle */
[data-group="notification"] .option-card .option-check {
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s ease;
    order: 1;
}

[data-group="notification"] .option-card .option-check i {
    display: none;
}

[data-group="notification"] .option-card .option-check::after {
    content: '';
    display: none;
}

/* Icônes spécifiques par canal */
[data-group="notification"] .option-card[data-value="whatsapp"] .option-check::before {
    content: '\f232';
    font-family: 'Font Awesome 5 Brands', 'Font Awesome 6 Brands', FontAwesome;
    color: #25D366;
}

[data-group="notification"] .option-card[data-value="email"] .option-check::before {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    color: #003868;
}

[data-group="notification"] .option-card[data-value="sms"] .option-check::before {
    content: '\f7cd';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    color: #0a5a8a;
}

[data-group="notification"] .option-card[data-value="phone"] .option-check::before {
    content: '\f095';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    color: #8a9a6e;
}

/* État sélectionné - icône */
[data-group="notification"] .option-card.selected .option-check {
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    box-shadow: 0 2px 6px rgba(0, 56, 104, 0.3);
}

[data-group="notification"] .option-card.selected .option-check::before {
    color: white !important;
}

/* Badge vert quand sélectionné */
[data-group="notification"] .option-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', FontAwesome;
    font-weight: 900;
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background: #C4D1A6;
    color: #003868;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    animation: popIn 0.3s ease;
    border: 2px solid white;
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

/* Animation au clic */
[data-group="notification"] .option-card:active {
    transform: scale(0.95);
}

/* Titre de section notification */
[data-group="notification"] .form-group-title {
    justify-content: center;
    font-size: 14px;
    color: #334155;
    margin-bottom: 16px;
}

[data-group="notification"] .form-group-title i {
    color: #003868;
}

/* Help text pour notification */
[data-group="notification"] .field-help {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: #64748b;
}

/* Responsive pour notifications - déjà compact, pas besoin de grand changement */
@media (max-width: 480px) {
    [data-group="notification"] .multiselect-grid {
        justify-content: center;
        gap: 6px;
    }

    [data-group="notification"] .option-card {
        padding: 6px 12px;
    }

    [data-group="notification"] .option-card .option-check {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    [data-group="notification"] .option-card .option-label {
        font-size: 12px;
    }
}

/* ==============================================
   SECTION CONTACT - Style amélioré
   ============================================== */

[data-group="contact"] {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    padding: 20px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}

[data-group="contact"] .form-group-title {
    color: #334155;
    font-size: 15px;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

[data-group="contact"] .form-group-title i {
    color: #003868;
}

[data-group="contact"] .form-field {
    margin-bottom: 16px;
}

[data-group="contact"] .form-field:last-child {
    margin-bottom: 0;
}

[data-group="contact"] .form-input {
    background: white;
    border: 2px solid #e2e8f0;
}

[data-group="contact"] .form-input:focus {
    border-color: #003868;
    box-shadow: 0 0 0 3px rgba(0, 56, 104, 0.1);
}

/* Grille pour les champs contact sur desktop */
@media (min-width: 640px) {
    [data-group="contact"] {
        display: block;
    }

    [data-group="contact"] .form-fields-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ==============================================
   SECTION CLIENT STATUS - Proéminente et distinctive
   ============================================== */

/* ==============================================
   SECTION CLIENT STATUS - Compact et proéminent
   ============================================== */

.form-group-highlight,
[data-group="client_status"] {
    background: linear-gradient(135deg, #eef3f7 0%, #d6e6f0 100%);
    border-radius: 14px;
    padding: 16px 20px;
    border: 2px solid #7ab0d4;
    position: relative;
    margin-bottom: 24px;
}

[data-group="client_status"] .form-group-title {
    color: #003868;
    font-size: 15px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(0, 56, 104, 0.2);
}

[data-group="client_status"] .form-group-title i {
    color: #003868;
    font-size: 16px;
}

/* Badge "Important" sur la section client_status */
[data-group="client_status"]::after {
    content: 'Important';
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, #003868 0%, #002244 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 56, 104, 0.3);
}

/* Force les options binaires du client_status sur une seule ligne */
[data-group="client_status"] .options-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    grid-template-columns: none;
}

[data-group="client_status"] .option-card {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    border-width: 2px;
    border-radius: 25px;
    text-align: center;
}

[data-group="client_status"] .option-card:hover {
    border-color: #003868;
    box-shadow: 0 4px 12px rgba(0, 56, 104, 0.15);
}

[data-group="client_status"] .option-card.selected {
    border-color: #003868;
    background: linear-gradient(135deg, rgba(0, 56, 104, 0.12) 0%, rgba(29, 78, 216, 0.08) 100%);
    box-shadow: 0 2px 12px rgba(0, 56, 104, 0.2);
}

[data-group="client_status"] .option-card.selected .option-check {
    background: linear-gradient(135deg, #003868 0%, #002244 100%);
    border-color: #003868;
}

[data-group="client_status"] .option-card .option-check {
    width: 18px;
    height: 18px;
}

[data-group="client_status"] .option-card .option-check i {
    font-size: 9px;
}

[data-group="client_status"] .option-card .option-label {
    font-size: 13px;
    flex: none;
}

[data-group="client_status"] .form-input {
    border-color: #7ab0d4;
    background: white;
}

[data-group="client_status"] .form-input:focus {
    border-color: #003868;
    box-shadow: 0 0 0 3px rgba(0, 56, 104, 0.15);
}

[data-group="client_status"] .field-help {
    color: #003868;
    font-weight: 500;
    font-size: 12px;
}

/* Responsive client_status */
@media (max-width: 640px) {
    [data-group="client_status"] {
        padding: 14px;
    }

    [data-group="client_status"]::after {
        font-size: 9px;
        padding: 2px 8px;
        top: -8px;
        right: 12px;
    }

    [data-group="client_status"] .option-card {
        padding: 8px 10px;
    }

    [data-group="client_status"] .option-card .option-label {
        font-size: 12px;
    }
}

/* ==============================================
   SECTION SPECIFIC - Questions pertinentes
   ============================================== */

[data-group="specific"] {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

[data-group="specific"] .form-group-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

[data-group="specific"] .form-group-title i {
    color: #003868;
    font-size: 18px;
}

/* ==============================================
   MESSAGE DE SUIVI APRÈS SOUMISSION
   ============================================== */

.reclamation-success-followup {
    background: linear-gradient(135deg, #f5f7f2 0%, #f5f7f2 100%);
    border: 1px solid #C4D1A6;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    animation: slideInUp 0.4s ease-out;
}

.reclamation-success-followup .followup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reclamation-success-followup .followup-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.reclamation-success-followup .followup-title {
    font-size: 16px;
    font-weight: 600;
    color: #003868;
}

.reclamation-success-followup .followup-ticket {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.reclamation-success-followup .ticket-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #003868;
}

.reclamation-success-followup .copy-btn {
    padding: 6px 12px;
    background: #e8edda;
    border: 1px solid #C4D1A6;
    border-radius: 6px;
    color: #003868;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.reclamation-success-followup .copy-btn:hover {
    background: #d4e1b6;
}

.reclamation-success-followup .followup-instructions {
    font-size: 14px;
    color: #003868;
    line-height: 1.6;
}

.reclamation-success-followup .followup-instructions code {
    background: #e8edda;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Animation d'entrée */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Options avec émojis - grille de sélection */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

/* ==============================================
   OPTION CARDS - Style compact avec distinction claire
   ============================================== */

.option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    border-color: #7ab0d4;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 56, 104, 0.08);
}

.option-card:active {
    transform: scale(0.98);
}

.option-card.selected {
    border-color: #003868;
    background: linear-gradient(135deg, rgba(0, 56, 104, 0.08) 0%, rgba(20, 101, 163, 0.06) 100%);
    box-shadow: 0 2px 12px rgba(0, 56, 104, 0.12);
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
    display: none;
}

/* Check indicator - DÉCOCHÉ: cercle vide gris */
.option-card .option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: #f9fafb;
}

/* Icône check cachée par défaut */
.option-card .option-check i {
    display: none;
    color: white;
    font-size: 10px;
}

/* Check indicator - COCHÉ: rempli bleu avec check */
.option-card.selected .option-check {
    border-color: #003868;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    box-shadow: 0 2px 6px rgba(0, 56, 104, 0.3);
    transform: scale(1.05);
}

.option-card.selected .option-check i {
    display: block;
}

.option-card .option-label {
    font-size: 14px;
    color: #334155;
    flex: 1;
    line-height: 1.3;
}

.option-card.selected .option-label {
    color: #003868;
    font-weight: 600;
}

/* ==============================================
   CHECKBOX MULTISELECT - Carré avec distinction nette
   ============================================== */

.checkbox-card .option-check {
    border-radius: 6px !important;
}

/* ==============================================
   OPTIONS BINAIRES (2 options) - Style PILL inline
   ============================================== */

.options-grid.binary-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    grid-template-columns: none;
}

.options-grid.binary-grid .option-card {
    flex: 1;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 25px;
    min-height: auto;
    text-align: center;
}

.options-grid.binary-grid .option-card .option-check {
    width: 18px;
    height: 18px;
}

.options-grid.binary-grid .option-card .option-check i {
    font-size: 9px;
}

.options-grid.binary-grid .option-card .option-label {
    font-size: 13px;
    flex: none;
}

/* Date/Time picker */
.form-input[type="date"],
.form-input[type="datetime-local"],
.form-input[type="time"] {
    cursor: pointer;
}

/* Numéro avec unité */
.input-with-unit {
    position: relative;
}

.input-with-unit .form-input {
    padding-right: 70px;
}

.input-with-unit .input-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
}

/* Validation */
.form-field.error .form-input,
.form-field.error .form-select,
.form-field.error .form-textarea {
    border-color: #dc2626;
}

.form-field.error .option-card {
    border-color: #fecaca;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #dc2626;
    margin-top: 6px;
}

.field-error i {
    font-size: 14px;
}

.form-field.success .form-input,
.form-field.success .form-select {
    border-color: #8a9a6e;
}

/* Boutons du formulaire */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-submit {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 56, 104, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit.loading {
    pointer-events: none;
}

.btn-submit .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-cancel {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Résumé avant soumission */
.form-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-summary h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;
    color: #64748b;
}

.summary-value {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    max-width: 60%;
    text-align: right;
}

/* Animations */
.form-field {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

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

/* Responsive - Tablet */
@media (max-width: 768px) {
    .reclamation-form-container {
        padding: 18px;
        margin: 12px 0;
        border-radius: 14px;
    }

    .form-header-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .form-header-text h3 {
        font-size: 16px;
    }

    .options-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
    .reclamation-form-container {
        padding: 14px;
        margin: 8px 0;
        border-radius: 12px;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-header-text h3 {
        font-size: 15px;
    }

    .form-header-text p {
        font-size: 12px;
    }

    .form-progress-bar {
        flex-direction: column;
        gap: 6px;
        padding: 10px 12px;
    }

    /* Grille standard = 1 colonne sur mobile */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* MAIS les grilles binaires (pill) restent sur une seule ligne */
    .options-grid.binary-grid {
        flex-direction: row;
        gap: 8px;
    }

    .options-grid.binary-grid .option-card {
        padding: 8px 10px;
    }

    .options-grid.binary-grid .option-card .option-label {
        font-size: 12px;
    }

    .option-card {
        padding: 12px 14px;
    }

    .form-field label {
        font-size: 13px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cancel {
        order: 1;
        padding: 12px 20px;
    }

    .btn-submit {
        order: 0;
        padding: 14px 20px;
    }

    .form-group-section {
        margin-bottom: 16px;
    }

    [data-group="contact"] {
        padding: 14px;
    }

    [data-group="specific"] {
        padding: 14px;
    }
}

/* Responsive - Small mobile */
@media (max-width: 380px) {
    .reclamation-form-container {
        padding: 10px;
        margin: 4px 0;
        border-radius: 10px;
    }

    .form-header-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
        border-radius: 8px;
    }

    .form-header-text h3 {
        font-size: 14px;
    }

    .priority-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .option-card {
        padding: 10px 12px;
    }

    .option-card .option-label {
        font-size: 13px;
    }

    /* Pills binaires encore plus compacts */
    .options-grid.binary-grid .option-card {
        padding: 6px 8px;
    }

    .options-grid.binary-grid .option-card .option-check {
        width: 16px;
        height: 16px;
    }

    .options-grid.binary-grid .option-card .option-label {
        font-size: 11px;
    }
}

/* Quick replies améliorés pour le formulaire */
.form-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.form-quick-reply {
    padding: 8px 16px;
    font-size: 13px;
    color: #003868;
    background: rgba(0, 56, 104, 0.1);
    border: 1px solid rgba(0, 56, 104, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-quick-reply:hover {
    background: rgba(0, 56, 104, 0.2);
    border-color: #003868;
}

/* Confirmation de succès */
.form-success-message {
    text-align: center;
    padding: 32px;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

.success-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 15px;
    color: #64748b;
}

/* File upload */
.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-area:hover {
    border-color: #003868;
    background: rgba(0, 56, 104, 0.05);
}

.file-upload-area i {
    font-size: 32px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.file-upload-area p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.file-upload-area .file-types {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* =============================================
   Quick Replies Styling
   ============================================= */

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    margin: 8px 0;
}

.quick-reply-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #003868;
    background: rgba(0, 56, 104, 0.1);
    border: 2px solid rgba(0, 56, 104, 0.3);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: rgba(0, 56, 104, 0.2);
    border-color: #003868;
    transform: translateY(-1px);
}

.quick-reply-btn.recommended {
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 56, 104, 0.3);
}

.quick-reply-btn.recommended:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 56, 104, 0.4);
}

/* Suggestions Container */
.suggestions-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
}

.suggestions-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.suggestions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-btn {
    padding: 10px 16px;
    font-size: 13px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: #003868;
    color: #fff;
    border-color: #003868;
}

/* Ticket Card */
.ticket-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin: 16px 0;
}

.ticket-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: #fff;
}

.ticket-icon {
    font-size: 28px;
}

.ticket-title {
    font-size: 16px;
    font-weight: 600;
}

.ticket-card-body {
    padding: 20px;
}

.ticket-number {
    text-align: center;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
}

.ticket-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ticket-code {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
}

.ticket-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #475569;
}

.detail-icon {
    font-size: 16px;
}

.ticket-card-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.copy-ticket-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #003868;
    background: rgba(0, 56, 104, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-ticket-btn:hover {
    background: rgba(0, 56, 104, 0.2);
}

/* Form Progress in Chat */
.form-progress {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #e2e8f0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-label {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.progress-count {
    font-size: 12px;
    color: #003868;
    font-weight: 600;
}

.progress-bar-container {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #003868 0%, #0a5a8a 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .quick-replies {
        padding: 8px;
    }

    .quick-reply-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .ticket-code {
        font-size: 20px;
    }
}

/* =============================================
   Récapitulatif de Réclamation
   ============================================= */

.reclamation-recap {
    animation: fadeIn 0.4s ease-out;
}

/* Récap permanent (reste visible dans le chat) */
.recap-permanent {
    border-left: 4px solid #C4D1A6;
    background: linear-gradient(135deg, #f5f7f2 0%, #ffffff 100%);
    margin: 16px 0;
    opacity: 1 !important;
}

.recap-permanent .recap-header {
    padding: 16px 0;
}

.recap-permanent .recap-success-icon {
    width: 56px;
    height: 56px;
}

.recap-permanent .recap-success-icon i {
    font-size: 28px;
}

.recap-permanent .recap-header h2 {
    font-size: 18px;
}

.recap-permanent .recap-ticket-box {
    padding: 16px;
}

.recap-permanent .recap-ticket-code {
    font-size: 24px;
}

.recap-header {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.recap-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(196, 209, 166, 0.3);
}

.recap-success-icon i {
    font-size: 36px;
    color: white;
}

.recap-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.recap-header p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
}

/* Ticket Box */
.recap-ticket-box {
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.recap-ticket-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.recap-ticket-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.recap-ticket-code {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.recap-copy-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recap-copy-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Details Section */
.recap-details,
.recap-client {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.recap-details h3,
.recap-client h3,
.recap-next-steps h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.recap-details h3 i,
.recap-client h3 i,
.recap-next-steps h3 i {
    color: #003868;
}

.recap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.recap-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recap-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recap-value {
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
}

.recap-priority {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.recap-description {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.recap-desc-text {
    margin: 8px 0 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    max-height: 100px;
    overflow-y: auto;
}

/* Notifications */
.recap-notifications {
    margin-bottom: 16px;
}

.recap-notification,
.recap-email-sent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f5f7f2;
    border: 1px solid #d4e1b6;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #003868;
}

.recap-notification i,
.recap-email-sent i {
    font-size: 18px;
    color: #C4D1A6;
}

/* Next Steps */
.recap-next-steps {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.recap-next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recap-next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #475569;
    border-bottom: 1px dashed #e2e8f0;
}

.recap-next-steps li:last-child {
    border-bottom: none;
}

.recap-next-steps li i {
    color: #C4D1A6;
    margin-top: 2px;
}

/* Footer */
.recap-footer {
    background: #eef3f7;
    border: 1px solid #a8c8de;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.recap-footer p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #003868;
}

.recap-footer p:last-child {
    margin-bottom: 0;
}

.recap-contact {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.recap-contact i {
    color: #003868;
}

/* Actions */
.recap-actions {
    text-align: center;
    padding-top: 8px;
}

.recap-actions .btn-submit {
    min-width: 200px;
}

/* ==============================================
   RECAP SLA BOX — Infos essentielles post-ticket
   ============================================== */
.recap-sla-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.recap-sla-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.recap-sla-item > i {
    font-size: 16px;
    color: #003868;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.recap-sla-item > div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.recap-sla-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 500;
}

.recap-sla-value {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notifications compact */
.recap-notifications-compact {
    margin-bottom: 12px;
}

.recap-notifications-compact .recap-notification,
.recap-notifications-compact .recap-email-sent {
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Reminder bar */
.recap-reminder {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #eef3f7;
    border: 1px solid #a8c8de;
    border-radius: 10px;
    font-size: 13px;
    color: #003868;
    margin-bottom: 16px;
    line-height: 1.4;
}

.recap-reminder > i {
    font-size: 16px;
    color: #0a5a8a;
    flex-shrink: 0;
}

/* Bouton copier — état copié */
.recap-copy-btn.copied {
    background: rgba(196, 209, 166, 0.3) !important;
    border-color: rgba(196, 209, 166, 0.5) !important;
}

/* ==============================================
   POST-RECLAMATION ACTION BUTTONS
   ============================================== */

.reclamation-post-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
}

.reclamation-post-actions-secondary {
    display: flex;
    gap: 10px;
}

.reclamation-post-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.3;
}

.reclamation-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reclamation-post-btn:active {
    transform: translateY(0);
}

/* Retour au chatbot - CTA principal BGFI */
.reclamation-post-btn-primary {
    background: linear-gradient(135deg, #C4D1A6 0%, #a8b88e 100%);
    color: #003868;
    border-color: transparent;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 12px;
}

.reclamation-post-btn-primary:hover {
    box-shadow: 0 6px 16px rgba(196, 209, 166, 0.5);
}

/* Continuer la conversation - BGFI olive */
.reclamation-post-btn-continue {
    background: linear-gradient(135deg, #C4D1A6 0%, #a8b88e 100%);
    color: #003868;
    border-color: transparent;
}

.reclamation-post-btn-continue:hover {
    box-shadow: 0 6px 16px rgba(196, 209, 166, 0.5);
}

/* Nouvelle conversation - Bleu BGFI */
.reclamation-post-btn-new {
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: #ffffff;
    border-color: transparent;
}

.reclamation-post-btn-new:hover {
    box-shadow: 0 6px 16px rgba(0, 56, 104, 0.4);
}

/* Imprimer - Gris outline */
.reclamation-post-btn-print {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

.reclamation-post-btn-print:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Fermer - Rouge outline */
.reclamation-post-btn-close {
    background: #ffffff;
    color: #dc2626;
    border-color: #fca5a5;
}

.reclamation-post-btn-close:hover {
    background: #fef2f2;
    border-color: #f87171;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Confirmation message after button click */
.reclamation-post-confirmed {
    text-align: center;
    color: #8a9a6e;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reclamation-post-confirmed i {
    font-size: 18px;
}

/* ==============================================
   POST-RECLAMATION QUICK REPLY CHIPS
   ============================================== */

.reclamation-post-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 4px;
    margin: 8px 0;
    animation: fadeInUp 0.3s ease-out;
}

.reclamation-post-chip {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #003868;
    background: rgba(0, 56, 104, 0.08);
    border: 1.5px solid rgba(0, 56, 104, 0.25);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.reclamation-post-chip:hover {
    background: rgba(0, 56, 104, 0.15);
    border-color: #003868;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 56, 104, 0.15);
}

.reclamation-post-chip:active {
    transform: translateY(0);
}

/* Responsive - Recap */
@media (max-width: 768px) {
    .recap-ticket-code {
        font-size: 26px;
        letter-spacing: 1px;
    }

    .recap-details,
    .recap-client,
    .recap-next-steps {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .recap-grid {
        grid-template-columns: 1fr;
    }

    .recap-ticket-code {
        font-size: 20px;
    }

    .recap-header h2 {
        font-size: 16px;
    }

    .recap-header p {
        font-size: 13px;
    }

    .recap-ticket-box {
        padding: 16px;
    }

    .recap-success-icon {
        width: 56px;
        height: 56px;
    }

    .recap-success-icon i {
        font-size: 28px;
    }

    .recap-footer {
        padding: 12px;
    }

    .recap-contact {
        flex-direction: column;
        gap: 8px;
    }

    .recap-sla-box {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .recap-sla-item {
        padding: 10px;
    }

    .recap-reminder {
        font-size: 12px;
        padding: 10px 12px;
    }

    .reclamation-post-actions-secondary {
        flex-direction: column;
        gap: 8px;
    }

    .reclamation-post-btn {
        padding: 12px 14px;
        font-size: 13px;
    }

    .reclamation-post-quick-replies {
        gap: 6px;
        padding: 8px 2px;
    }

    .reclamation-post-chip {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ==============================================
   AFFICHAGE DU STATUT DE RÉCLAMATION
   ============================================== */

.reclamation-status-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    animation: slideUp 0.4s ease-out;
    overflow: hidden;
}

.status-card {
    padding: 0;
}

/* Status Header */
.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: white;
}

.status-header-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.status-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.status-ticket-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ticket-code {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.status-close-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.status-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Status Main */
.status-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid;
}

.status-badge i {
    font-size: 14px;
}

.status-priority {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* Progress Section */
.status-progress-section {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.status-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.status-progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.status-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.status-progress-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.status-progress-info.resolved {
    color: #C4D1A6;
    font-weight: 500;
}

/* Status Details */
.status-details {
    padding: 16px 20px;
}

.status-details h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.status-detail-item {
    background: #f8fafc;
    padding: 10px 12px;
    border-radius: 8px;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.detail-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}

.status-description {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.status-description p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.status-resolution {
    background: #f5f7f2;
    border: 1px solid #C4D1A6;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.status-resolution .detail-label {
    color: #059669;
}

.status-resolution p {
    margin: 6px 0 0 0;
    font-size: 14px;
    color: #065f46;
    line-height: 1.5;
}

.status-last-relance {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #0a5a8a;
    padding: 8px 12px;
    background: #eef3f7;
    border-radius: 6px;
}

/* Status Actions */
.status-actions {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.btn-relance {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-relance:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 56, 104, 0.3);
}

.btn-relance:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-relance.success {
    background: linear-gradient(135deg, #C4D1A6 0%, #a8b88e 100%);
    color: #003868;
}

.btn-close-status {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-close-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 56, 104, 0.3);
}

/* Status Contact */
.status-contact {
    padding: 12px 20px;
    background: #f1f5f9;
    text-align: center;
}

.status-contact p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.status-contact strong {
    color: #003868;
}

/* Spinner small for button */
.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive for status */
@media (max-width: 480px) {
    .status-detail-grid {
        grid-template-columns: 1fr;
    }

    .status-actions {
        flex-direction: column;
    }

    .status-main {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==============================================
   AMÉLIORATION BOUTON ANNULER
   ============================================== */

.btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.form-actions .btn-submit {
    flex: 2;
}

.form-actions .btn-cancel {
    flex: 1;
}

/* Message d'annulation dans le chat */
.cancel-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    text-align: center;
}

.cancel-message i {
    color: #f87171;
    font-size: 24px;
    margin-bottom: 8px;
}

.cancel-message p {
    margin: 0;
    color: #991b1b;
    font-size: 14px;
}

/* ==============================================
   MODAL DE CONFIRMATION D'ANNULATION
   ============================================== */

.cancel-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.cancel-confirm-overlay.visible {
    opacity: 1;
}

.cancel-confirm-modal {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.cancel-confirm-overlay.visible .cancel-confirm-modal {
    transform: scale(1) translateY(0);
}

.cancel-modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #d6e6f0 0%, #a8c8de 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cancel-modal-icon i {
    font-size: 32px;
    color: #003868;
}

.cancel-confirm-modal h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.cancel-confirm-modal p {
    margin: 0 0 24px;
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.cancel-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-continue-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #003868 0%, #0a5a8a 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-continue-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 56, 104, 0.4);
}

.btn-confirm-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-cancel:hover {
    background: #fee2e2;
    border-color: #f87171;
}

/* Animation de fermeture du formulaire */
.reclamation-form-container.closing {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s ease;
}

/* Notification d'annulation dans le chat */
.cancel-notification {
    margin: 16px 0;
    animation: slideInUp 0.4s ease-out;
}

.cancel-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid #94a3b8;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.cancel-notification-content i {
    font-size: 18px;
    color: #64748b;
}

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

/* ==============================================
   AMÉLIORATION DU BOUTON RELANCE
   ============================================== */

.btn-relance.loading {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    pointer-events: none;
}

.btn-relance.success {
    background: linear-gradient(135deg, #C4D1A6 0%, #a8b88e 100%);
    color: #003868;
    animation: pulse-success 0.5s ease;
}

.btn-relance.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: shake 0.5s ease;
}

.btn-relance.max-reached {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    cursor: not-allowed;
}

@keyframes pulse-success {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-5px);
    }
    40%, 80% {
        transform: translateX(5px);
    }
}

/* Animation de mise à jour du compteur */
.detail-value.updated {
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: #d6e6f0;
    }
    100% {
        background-color: transparent;
    }
}

/* Responsive pour le modal */
@media (max-width: 480px) {
    .cancel-confirm-modal {
        padding: 24px;
        margin: 10px;
    }

    .cancel-modal-icon {
        width: 60px;
        height: 60px;
    }

    .cancel-modal-icon i {
        font-size: 28px;
    }

    .cancel-confirm-modal h3 {
        font-size: 18px;
    }

    .btn-continue-form,
    .btn-confirm-cancel {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ============================================================
   Bottom Sheet Style on Mobile
   ============================================================ */
@media (max-width: 768px) {
    .reclamation-form-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.18), 0 -2px 8px rgba(0,0,0,0.1);
        animation: bottomSheetUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
        padding-bottom: env(safe-area-inset-bottom, 16px);
        z-index: 1000;
    }

    .reclamation-form-container::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(0,0,0,0.15);
        margin: 10px auto 6px;
        flex-shrink: 0;
    }

    @keyframes bottomSheetUp {
        0% {
            opacity: 0;
            transform: translateY(100%);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .cancel-confirm-modal {
        border-radius: 24px 24px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        animation: bottomSheetUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }

    .cancel-confirm-modal::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: rgba(0,0,0,0.12);
        margin: 10px auto 6px;
    }
}

/* ==============================================
   RESPONSIVE - EXTRA SMALL (< 380px)
   ============================================== */

@media (max-width: 380px) {
    .reclamation-post-btn {
        padding: 10px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .reclamation-post-btn i {
        font-size: 14px;
    }
}

/* ==============================================
   PRINT STYLES - RECAP ONLY
   ============================================== */

@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the recap card that is being printed */
    body.reclamation-print-mode .reclamation-printing,
    body.reclamation-print-mode .reclamation-printing *,
    body.reclamation-print-mode .reclamation-printing .reclamation-recap,
    body.reclamation-print-mode .reclamation-printing .reclamation-recap * {
        visibility: visible;
    }

    /* Position the recap for proper printing */
    body.reclamation-print-mode .reclamation-printing {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        border: none;
        box-shadow: none;
        background: white;
        border-radius: 0;
        max-height: none;
        overflow: visible;
    }

    /* Override fixed positioning on mobile */
    body.reclamation-print-mode .reclamation-printing.reclamation-form-container {
        position: absolute;
        bottom: auto;
        border-radius: 0;
        max-height: none;
    }

    /* Hide the action buttons in print */
    body.reclamation-print-mode .reclamation-post-actions {
        display: none !important;
    }

    /* Hide the copy button in print */
    body.reclamation-print-mode .recap-copy-btn {
        display: none !important;
    }

    /* Ensure proper colors print */
    body.reclamation-print-mode .recap-ticket-box {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    body.reclamation-print-mode .recap-success-icon {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    /* Ensure recap grid is visible */
    body.reclamation-print-mode .recap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Print footer with timestamp */
    body.reclamation-print-mode .recap-footer::after {
        content: "Imprimé le " attr(data-print-date);
        display: block;
        margin-top: 8px;
        font-size: 11px;
        color: #94a3b8;
        font-style: italic;
    }
}
