/* ========================================
   RÉCAPITULATIF
   ======================================== */

.review-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: var(--form-border-radius);
    padding: 20px;
    margin-bottom: 30px;
}

.review-summary h3 {
    color: var(--form-primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid var(--form-primary-color);
    padding-bottom: 10px;
}

/* [AJOUT] Classes pour suppression des styles inline (CSP) et affinage logo */
.review-section-top {
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
    background-color: white !important;
    border: 1px solid rgba(225, 31, 18, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.review-type-offre-label {
    min-width: 120px;
}

.logo-preview-wrapper-compact {
    max-width: 350px;
}

.summary-logo-preview-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    background: white;
}

.file-details-filename {
    font-size: 0.85rem;
}

.file-details-size {
    font-size: 0.7rem;
}

.view-btn-text {
    font-size: 0.75rem;
}

.flexible-offer-amount {
    font-weight: bold;
    color: var(--form-success-color);
}

/* [AJOUT] Style Glassmorphism pour les fichiers (Style Colloque) */
.glassmorphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.review-file-preview.glassmorphism {
    transition: all 0.3s ease;
}

.review-file-preview.glassmorphism:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    border-color: rgba(225, 31, 18, 0.3) !important;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-icon-wrapper-compact {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 31, 18, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.summary-logo-preview-img-refined {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
}

.file-details-refined {
    flex: 1;
    min-width: 0;
}

.file-details-refined h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--form-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-details-refined p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
}

.btn-download-refined {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-view-red {
    background-color: #e11f12 !important;
    color: white !important;
    border: none !important;
    padding: 10px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    font-weight: 900 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btn-view-red:hover {
    background-color: #c51a0f !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(225, 31, 18, 0.3) !important;
}



.review-section {
    background: white;
    border-radius: var(--form-border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--form-primary-color);
    transition: all 0.3s ease;
}

.review-section:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.review-section-red {
    border: 2px solid #dc3545 !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff5f5 !important;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.1) !important;
    position: relative;
    overflow: hidden;
}

.review-section-red::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.review-section h4 {
    color: #e11f12cc;
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-section h4 i {
    font-size: 20px;
}

.app-form .review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.review-item:hover {
    background-color: #f9fafb;
    border-radius: 4px;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item.review-item-full {
    grid-column: 1 / -1;
    /* Span the full width of the grid */
}

.review-label {
    font-weight: 600;
    color: var(--form-primary-color);
    font-size: 14px;
    margin-bottom: 4px;
}

.review-value {
    color: var(--form-text-color);
    font-size: 15px;
    line-height: 1.4;
}

.review-item {
    margin-bottom: 10px;
}

.review-label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    font-size: 14px;
}

.review-value {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-word;
}

.review-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
}


.review-biography {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--form-border-radius);
    border-left: 3px solid var(--form-accent-color);
    margin-top: 10px;
}

.review-file-preview {
    background: #f8f9fa;
    border: 2px dashed #e9ecef;
    border-radius: var(--form-border-radius);
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    transition: var(--form-transition);
    position: relative;
}

.review-file-preview:hover {
    border-color: var(--form-primary-color);
    background-color: #f9f9f9;
}

/* Enhanced file preview styling for attachments */
.review-file-preview {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: var(--form-border-radius);
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    transition: var(--form-transition);
    position: relative;
    overflow: hidden;
}

.review-file-preview:hover {
    border-color: var(--form-primary-color);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-file-preview .file-icon {
    font-size: 40px;
    color: var(--form-primary-color);
    margin-bottom: 12px;
    display: block;
}

.review-file-preview .file-name {
    font-weight: 600;
    color: var(--form-text-color);
    margin: 10px 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-align: center;
}

.review-file-preview .file-size {
    font-size: 0.85rem;
    color: var(--form-light-text);
    margin-bottom: 10px;
}

.review-file-preview .file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.review-file-preview .file-action-btn {
    padding: 6px 12px;
    border-radius: var(--form-border-radius);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--form-transition);
}

.review-file-preview .view-btn {
    background-color: var(--form-primary-color);
    color: white;
}

.review-file-preview .view-btn:hover {
    background-color: var(--form-primary-hover);
}

.review-file-preview .download-btn {
    background-color: #e2e8f0;
    color: var(--form-text-color);
}

.review-file-preview .download-btn:hover {
    background-color: #cbd5e0;
}

/* ========================================
   AMÉLIORATION DE L'AFFICHAGE DE LA BIOGRAPHIE
   ======================================== */

.review-biography {
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--form-border-radius);
    border-left: 4px solid var(--form-accent-color);
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    position: relative;
}

.review-biography .review-value {
    color: var(--form-text-color);
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    text-align: justify;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Scrollbar personnalisée pour la biographie */
.review-biography::-webkit-scrollbar {
    width: 6px;
}

.review-biography::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.review-biography::-webkit-scrollbar-thumb {
    background: var(--form-primary-color);
    border-radius: 3px;
}

.review-biography::-webkit-scrollbar-thumb:hover {
    background: var(--form-primary-hover);
}

/* Indicateur de scroll pour la biographie */
.review-biography::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #f8f9fa);
    pointer-events: none;
}

/* Amélioration de l'affichage du résumé */
.review-section .review-biography:first-of-type {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 4px solid #0ea5e9;
}

.review-section .review-biography:first-of-type .review-value {
    color: #0369a1;
    font-weight: 500;
}

/* Responsive pour la biographie */
@media (max-width: 768px) {
    .review-biography {
        padding: 15px;
        max-height: 250px;
    }

    .review-biography .review-value {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Animation pour le contenu de la biographie */
.review-biography .review-value {
    animation: fadeInText 0.5s ease-in-out;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Amélioration de l'espacement */
.review-section {
    margin-bottom: 25px;
}

.review-section:last-child {
    margin-bottom: 0;
}

/* Amélioration de l'affichage des frais */
.review-item .review-value[style*="color: #27ae60"] {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #10b981;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* Amélioration de l'affichage des fichiers */
.review-file-preview {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-file-preview::before {
    content: "\f1c5";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    display: block;
    font-size: 32px;
    color: var(--form-primary-color);
    margin-bottom: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
}

.review-file-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.review-file-preview:hover {
    border-color: var(--form-primary-color);
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.review-file-preview:hover::before {
    left: 100%;
}

/* Amélioration de l'icône de fichier */
.file-icon {
    font-size: 32px;
    color: var(--form-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(225, 31, 18, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-icon:hover {
    background: rgba(225, 31, 18, 0.2);
    transform: scale(1.05);
}

/* Amélioration des détails de fichier */
.file-details h5 {
    margin: 0 0 4px 0;
    color: var(--form-text-color);
    font-weight: 600;
    font-size: 16px;
}

.file-details p {
    margin: 0;
    color: var(--form-light-text);
    font-size: 12px;
}

/* Animation pour les sections */
.review-section {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque section */
.review-section:nth-child(1) {
    animation-delay: 0.1s;
}

.review-section:nth-child(2) {
    animation-delay: 0.2s;
}

.review-section:nth-child(3) {
    animation-delay: 0.3s;
}

.review-section:nth-child(4) {
    animation-delay: 0.4s;
}

.review-section:nth-child(5) {
    animation-delay: 0.5s;
}

.review-section:nth-child(6) {
    animation-delay: 0.6s;
}

/* ========================================
   ADDITIONAL PROFESSIONAL ENHANCEMENTS
   ======================================== */

/* Resume summary section */
.review-summary {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.review-summary h3 {
    color: #e11f12cc;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #e11f12cc;
    padding-bottom: 10px;
}

.review-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e11f12cc;
}

.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.review-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    font-weight: 600;
    color: #e11f12cc;
    font-size: 14px;
    margin-bottom: 4px;
}

.review-value {
    color: #1f2937;
    font-size: 15px;
    line-height: 1.4;
    background: none;
}

.review-biography {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    margin-top: 10px;
}

.review-file-preview {
    background: #f8f9fa;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    transition: var(--form-transition);
}

.review-file-preview:hover {
    border-color: #e11f12cc;
    background-color: #f9f9f9;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.file-icon {
    font-size: 24px;
    color: #e11f12cc;
}

.file-details h5 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-weight: 600;
}

.file-details p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

/* Amélioration des fichiers joints dans le récapitulatif */
.review-file-preview {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-file-preview:hover {
    border-color: #e11f12cc;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.review-file-preview .file-icon {
    font-size: 40px;
    color: #e11f12cc;
    margin-bottom: 12px;
    display: block;
}

.review-file-preview .file-name {
    font-weight: 600;
    color: #1f2937;
    margin: 10px 0;
    word-break: break-word;
}

.review-file-preview .file-size {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.review-file-preview .file-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.review-file-preview .file-action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.review-file-preview .view-btn {
    background-color: #e11f12cc;
    color: white;
}

.review-file-preview .view-btn:hover {
    background-color: #e11f12cc;
}

.review-file-preview .download-btn {
    background-color: #e2e8f0;
    color: #1f2937;
}

.review-file-preview .download-btn:hover {
    background-color: #cbd5e0;
}

/* Amélioration de l'affichage des fichiers joints */
.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.file-info:hover {
    border-color: #e11f12cc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.file-icon {
    font-size: 32px;
    color: #e11f12cc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(225, 31, 18, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-icon:hover {
    background: rgba(225, 31, 18, 0.2);
    transform: scale(1.05);
}

.file-details h5 {
    margin: 0 0 4px 0;
    color: #1f2937;
    font-weight: 600;
    font-size: 16px;
}

.file-details p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
}

/* Two-column layout for resume files */
.review-files-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

/* Single column for resume files when needed */
.review-files-grid.col-12 {
    grid-template-columns: 1fr;
}

.review-file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.review-file-item:hover {
    border-color: #e11f12cc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.review-file-item .review-label {
    font-weight: 600;
    color: #e11f12cc;
    margin-bottom: 8px;
    font-size: 14px;
}

.review-file-item .review-value {
    color: #1f2937;
    font-size: 14px;
    word-break: break-word;
}

/* Responsive adjustments for resume section */
@media (max-width: 768px) {
    .review-file-item {
        padding: 12px;
        margin-bottom: 12px;
    }

    .review-file-item .review-label {
        font-size: 13px;
    }

    .review-file-item .review-value {
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    .review-grid {
        grid-template-columns: 1fr;
    }

    .review-section {
        padding: 15px;
    }
}

/* Animation for biography content */
.review-biography .review-value {
    animation: fadeInText 0.5s ease-in-out;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style for long text sections */
.review-section h4 i.fa-file-alt {
    color: #e11f12cc;
}

.review-section h4 i.fa-user-graduate {
    color: #f59e0b;
}

/* Enhancement of spacing */
.review-section {
    margin-bottom: 25px;
}

.review-section:last-child {
    margin-bottom: 0;
}

/* Specific styles for resume section to prevent it from being too large */
#review-resumes-container {
    max-height: none;
    overflow: visible;
}

.review-file-preview {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.review-file-preview .file-details {
    width: 100%;
    overflow: hidden;
}

/* Enhancement of fees display */
.review-item .review-value[style*="color: #27ae60"] {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #10b981;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

/* Enhancement of file display */
.review-file-preview {
    background: #ffffff;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-file-preview .file-icon {
    font-size: 32px;
    color: #e11f12cc;
    margin-bottom: 8px;
    display: block;
}

.review-file-preview .file-name {
    font-weight: 600;
    color: #1f2937;
    margin: 8px 0;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 14px;
    display: block;
}

.review-file-preview .file-size {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Resume file upload styling */
.resume-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #fafafa;
    position: relative;
    overflow: hidden;
}

.resume-file-upload:hover {
    border-color: var(--form-primary-color);
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.resume-file-upload.dragover {
    border-color: var(--form-primary-color);
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(225, 31, 18, 0.1);
}

.resume-file-upload.error {
    border-color: var(--form-error-color) !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.resume-file-upload.error:hover {
    border-color: var(--form-error-color) !important;
}

.resume-file-upload #file-upload-text {
    display: block;
}

.resume-file-upload #file-selected {
    display: none;
}

.resume-file-upload #file-upload-text p,
.resume-file-upload #file-selected p {
    margin: 10px 0;
    color: #374151;
    font-weight: 500;
}

.resume-file-upload #file-upload-text small,
.resume-file-upload #file-selected small {
    color: #6b7280;
    font-size: 0.875rem;
}

/* File actions styling */
.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.file-action-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #495057;
    cursor: pointer;
    font-size: 12px;
    transition: var(--form-transition);
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.file-action-btn:hover {
    background: var(--form-primary-color);
    color: white;
    border-color: var(--form-primary-color);
    text-decoration: none;
}

.file-action-btn.view {
    background: #e11f12cc;
    color: white;
    border-color: #e11f12cc;
}

.file-action-btn.view:hover {
    background: #c5170d;
    border-color: #c5170d;
}

/* Animation for sections */
.review-section {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délai d'animation pour chaque section */
.review-section:nth-child(1) {
    animation-delay: 0.1s;
}

.review-section:nth-child(2) {
    animation-delay: 0.2s;
}

.review-section:nth-child(3) {
    animation-delay: 0.3s;
}

.review-section:nth-child(4) {
    animation-delay: 0.4s;
}

.review-section:nth-child(5) {
    animation-delay: 0.5s;
}

.review-section:nth-child(6) {
    animation-delay: 0.6s;
}

/* Edit buttons for review sections */
.review-section h4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Improved Confirmation Step Styles */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* Two column layout for applicant information */
#step4 .review-section:first-of-type .review-grid {
    grid-template-columns: 1fr 1fr;
}



.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: var(--form-border-radius);
    margin-top: 10px;
}

.file-icon {
    font-size: 24px;
    color: var(--form-primary-color);
}

.file-details h5 {
    margin: 0 0 4px 0;
    color: var(--form-text-color);
    font-weight: 600;
}

.file-details p {
    margin: 0;
    color: var(--form-light-text);
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.file-action-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: var(--form-text-color);
    cursor: pointer;
    font-size: 12px;
    transition: var(--form-transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.file-action-btn:hover {
    background: var(--form-primary-color);
    color: white;
    border-color: var(--form-primary-color);
}

.file-action-btn.edit {
    color: #1f2937;
}

.file-action-btn.edit:hover {
    background: #f59e0b;
    border-color: #f59e0b;
    color: white;
}

.file-action-btn.delete {
    color: #ef4444;
}

.file-action-btn.delete:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.file-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.file-preview-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--form-border-radius);
    padding: 15px;
    text-align: center;
    transition: var(--form-transition);
}

.file-preview-item:hover {
    border-color: var(--form-primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.file-preview-icon {
    font-size: 36px;
    color: var(--form-primary-color);
    margin-bottom: 10px;
}

.file-preview-name {
    font-weight: 600;
    color: var(--form-text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.file-preview-size {
    font-size: 12px;
    color: var(--form-light-text);
    margin-bottom: 10px;
}

/* File info styling for attachments */
.file-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--form-border-radius);
    margin-top: 12px;
    border: 1px solid #e2e8f0;
    transition: var(--form-transition);
    flex-wrap: wrap;
}

.file-info:hover {
    border-color: var(--form-primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.file-icon {
    font-size: 28px;
    color: var(--form-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(225, 31, 18, 0.1);
    border-radius: calc(var(--form-border-radius) - 2px);
    transition: var(--form-transition);
    flex-shrink: 0;
}

.file-icon:hover {
    background: rgba(225, 31, 18, 0.2);
    transform: scale(1.05);
}

.file-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.file-details h5 {
    margin: 0 0 4px 0;
    color: var(--form-text-color);
    font-weight: 600;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .file-details h5 {
        white-space: normal;
        word-break: break-word;
        text-overflow: clip;
    }
}

.file-details p {
    margin: 0;
    color: var(--form-light-text);
    font-size: 11px;
    line-height: 1.3;
}

/* File actions layout */
.file-actions {
    align-self: center;
    margin-left: auto;
    flex-shrink: 0;
}

/* File preview styles */
.file-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #e2e8f0;
}

.file-preview-icon {
    font-size: 24px;
    color: #e11f12cc;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.file-preview-size {
    font-size: 12px;
    color: #6b7280;
}

.file-preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.file-preview-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.file-preview-view-btn {
    background-color: #e11f12cc;
    color: white;
    border-color: #e11f12cc;
}

.file-preview-view-btn:hover {
    background-color: #e11f12cc;
    border-color: #e11f12cc;
}

.file-preview-download-btn {
    background-color: white;
    color: #1f2937;
    border-color: #cbd5e0;
}

.file-preview-download-btn:hover {
    background-color: #e2e8f0;
}

.file-preview-edit-btn {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.file-preview-edit-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.file-preview-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    word-break: break-word;
    hyphens: auto;
}


@media (max-width: 768px) {
    #step4 .review-section:first-of-type .review-grid {
        grid-template-columns: 1fr;
    }
}

/* Specific responsive styles for resume section */
@media (max-width: 576px) {
    .review-file-preview {
        padding: 12px;
    }

    .review-file-preview .file-name {
        font-size: 12px;
        margin: 6px 0;
    }

    .review-file-preview .file-size {
        font-size: 0.75rem;
    }

    .file-details h5 {
        font-size: 12px;
    }

    .file-details p {
        font-size: 10px;
    }
}

/* Flexible Offer Description Style */
.flexible-offer-description {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 3px solid #e11f12cc;
    border-radius: 4px;
    margin-top: 8px;
}