/**
 * Opportunity Form Styles
 * Styles pour la page de création/édition d'opportunité
 */

/* Hero Banner */
.opportunity-hero-banner {
    background-image: url('../img/home-background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    position: relative;
    flex-direction: column;
    gap: 20px;
}

.opportunity-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
}

.opportunity-hero-banner > * {
    position: relative;
    z-index: 1;
}

.opportunity-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #5CACDB;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.opportunity-hero-title i {
    font-size: 2.2rem;
    color: #5CACDB;
    background: white;
    padding: 15px;
    border-radius: 50%;
    border: 2px solid #5CACDB;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
}

.opportunity-hero-subtitle {
    font-size: 1.15rem;
    color: #5B5E61 !important;
    font-weight: 400 !important;
    max-width: 800px;
    margin: 0 20px !important;
    /* Version blanche (à restaurer si besoin):
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    */
    line-height: 1.6;
}

.opportunity-btn-view-search {
    background-color: transparent;
    border: 2px solid #5B5E61;
    color: #5B5E61;
    padding: 12px 32px;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.opportunity-btn-view-search:hover {
    background-color: rgba(91, 94, 97, 0.1);
    border-color: #5B5E61;
    color: #5B5E61;
    text-decoration: none;
    transform: translateY(-2px);
}

.opportunity-content {
    padding: 50px 50px 30px;
}

/* Focus bleu Bhubbles sur les inputs et textarea */
.form-control:focus,
textarea:focus,
input[type="text"]:focus,
input[type="date"]:focus {
    border-color: #5CACDB !important;
    box-shadow: none !important;
    outline: 0;
}

/* Style pour les radio buttons des types de collaboration groupés */
/* Container en grille 2x2 */
#opportunity_collaborationType {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    margin-top: 20px;
}

/* Chaque groupe de catégorie */
#opportunity_collaborationType .collaboration-group {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Titre de la catégorie en bleu */
#opportunity_collaborationType .collaboration-group-title {
    font-weight: 600;
    color: #5CACDB;
    font-size: 16px;
    margin-bottom: 8px;
}

/* Container des radio buttons sous chaque catégorie */
#opportunity_collaborationType .collaboration-group-content {
    padding-left: 0;
}

/* Labels des radio buttons en gris classique */
#opportunity_collaborationType .form-check-label {
    font-weight: normal;
    color: #5a5c69;
    font-size: 14px;
    margin-bottom: 0;
}

#opportunity_collaborationType input[type="radio"] {
    margin-right: 8px;
}

/* Améliorations esthétiques du formulaire */
/* Section avec fond subtil */
.form-section {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Titres de section avec icône */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
}

.section-title i {
    color: #5CACDB;
    font-size: 18px;
}

/* HR avec dégradé subtil */
.form-section hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #5CACDB, transparent);
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Animation hover sur radio buttons */
#opportunity_collaborationType .form-check {
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    margin-bottom: 3px;
}

#opportunity_collaborationType .form-check:hover {
    background-color: #f0f7fb;
    transform: translateX(3px);
}

/* Ordre des groupes: Commercial (1), Technique (2), Industrie (3), Financier (4) */
#opportunity_collaborationType .collaboration-group:nth-child(1) { order: 1; } /* Commercial - haut gauche */
#opportunity_collaborationType .collaboration-group:nth-child(2) { order: 4; } /* Financier - bas droite */
#opportunity_collaborationType .collaboration-group:nth-child(3) { order: 3; } /* Industrie - bas gauche */
#opportunity_collaborationType .collaboration-group:nth-child(4) { order: 2; } /* Technique - haut droite */

/* Badge pour les helpers */
.form-helper-badge {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #5CACDB;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

/* Amélioration des labels */
.form-group label {
    font-weight: 500;
    color: #495057;
}

/* Effet focus amélioré */
.form-control:focus,
textarea:focus {
    border-color: #5CACDB !important;
    box-shadow: none !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Fond blanc pour les select2 actifs (non désactivés) */
.select2-container--bootstrap4:not(.select2-container--disabled) .select2-selection--multiple {
    background-color: #ffffff !important;
}

/* Correction des select2 désactivés pour avoir fond gris et texte blanc */
.select2-container--bootstrap4.select2-container--disabled .select2-selection--multiple {
    background-color: #f5f5f5 !important;
    border-color: #d1d3e2 !important;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection__rendered {
    color: #ffffff !important;
}

.select2-container--bootstrap4.select2-container--disabled .select2-selection__choice {
    background-color: #f5f5f5 !important;
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 991px) {
    .opportunity-hero-title {
        font-size: 1.8rem;
    }
    .opportunity-content {
        padding: 30px 20px 20px;
    }
}

@media (max-width: 768px) {
    #opportunity_collaborationType {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section-title {
        flex-wrap: wrap;
    }

    .form-helper-badge {
        margin-left: 0;
        margin-top: 5px;
    }
}

@media (max-width: 767px) {
    .opportunity-hero-title {
        font-size: 1.5rem;
    }
    .opportunity-hero-banner {
        min-height: 250px;
        padding: 50px 10px;
        background-position: center bottom !important;
    }
    .opportunity-content {
        padding: 20px 15px 15px;
    }

    .opportunity-content .card-body {
        padding: 0;
    }
}

@media (max-width: 440px) {
    .opportunity-hero-title {
        flex-direction: column;
        gap: 10px;
    }
}
