/* FormationDetailPage - Complete Styles */

/* Page Layout */
body.formation-detail-page {
    background: linear-gradient(to bottom, #f7fafc 0%, #ffffff 100%);
}

.page-content {
    min-height: 70vh;
}

/* Hero Header Section */
.formation-hero {
    background: linear-gradient(135deg, #6a4c93 0%, #8b5fbf 100%);
    padding: 60px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.formation-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.formation-hero .container {
    position: relative;
    z-index: 1;
}

.formation-hero h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.formation-hero .lead {
    color: rgba(255,255,255,0.95);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Formation Detail Image - Square images */
.formation-detail-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

/* Stats Bar */
.stats-bar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 20px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    font-size: 1.8rem;
    color: #6a4c93;
    margin-bottom: 8px;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
    font-weight: 600;
}

.stat-item .stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.content-card-header {
    padding: 20px 25px;
    background: #fff;
    cursor: pointer;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.2s ease;
}

.content-card-header:hover {
    background: #f8f9fa;
}

.content-card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-card-header i {
    color: #6a4c93;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.content-card-header i.rotate {
    transform: rotate(180deg);
}

.content-card-body {
    padding: 25px;
    line-height: 1.8;
    color: #4a5568;
}

.content-card-body h1, 
.content-card-body h2, 
.content-card-body h3 {
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.content-card-body h1 { font-size: 1.6rem; }
.content-card-body h2 { font-size: 1.4rem; }
.content-card-body h3 { font-size: 1.2rem; }

.content-card-body ul,
.content-card-body ol {
    margin: 15px 0 15px 25px;
}

.content-card-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content-card-body p {
    margin-bottom: 12px;
}

/* Sessions Card */
.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #f7fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #6a4c93;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.session-item:hover {
    background: linear-gradient(135deg, #6a4c93 0%, #8b5fbf 100%);
    color: white;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(106, 76, 147, 0.3);
}

.session-item:hover .session-date,
.session-item:hover .btn {
    color: white;
}

.session-item .session-date {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-item .btn {
    background: white;
    color: #6a4c93;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.session-item:hover .btn {
    background: rgba(255,255,255,0.9);
    color: #6a4c93;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6a4c93;
    box-shadow: 0 0 0 3px rgba(106, 76, 147, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #6a4c93 0%, #8b5fbf 100%);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #553a7a 0%, #6a4c93 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 76, 147, 0.4);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-outline-secondary {
    border: 2px solid #cbd5e0;
    color: #4a5568;
    background: white;
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #6a4c93;
    color: #6a4c93;
    transform: translateY(-2px);
}

/* Price Label */
.price-label {
    font-size: 1.2rem;
}

/* Required Field Indicator */
.required-indicator {
    color: #dc3545;
}

/* Form Description */
.form-description {
    color: #718096;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Content Initially Visible */
.content-visible {
    display: block;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 18px 24px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .formation-hero {
        padding: 40px 0;
    }
    
    .formation-hero h1 {
        font-size: 1.6rem;
    }
    
    .formation-hero .lead {
        font-size: 0.95rem;
    }
    
    .formation-detail-image {
        max-width: 250px;
    }
    
    .stat-item {
        margin-bottom: 15px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .stat-item .stat-value {
        font-size: 1.2rem;
    }
    
    .session-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .session-item .btn {
        width: 100%;
    }
    
    .content-card-body {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .formation-detail-image {
        max-width: 200px;
    }
}
