/* public/css/style.css */
.forum-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.forum-countdown-container {
    display: flex;
    gap: 20px;
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
}

.countdown-item {
    text-align: center;
    min-width: 70px;
}

.countdown-value {
    font-size: 2em;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.forum-program-buttons,
.forum-nav-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-programme,
.btn-nav,
.btn-primary {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-programme {
    background: white;
    color: #764ba2;
}

.btn-nav {
    background: rgba(255,255,255,0.2);
    color: white;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-programme:hover,
.btn-nav:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Form Styles */
.forum-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-section h3,
.form-section h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.student-option {
    color: #28a745;
    font-weight: 600;
}

.bank-details {
    background: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #667eea;
}

.bank-details p {
    margin: 5px 0;
}

.form-note {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.checkbox-group {
    margin: 20px 0;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.form-messages {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

.form-messages.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Concours specific styles */
.concours-section {
    margin-bottom: 40px;
}

.conditions-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.eligibility-list {
    list-style-type: none;
    padding: 0;
}

.eligibility-list li {
    padding: 10px 0 10px 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2"><polyline points="20 6 9 17 4 12"></polyline></svg>') left center no-repeat;
    background-size: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-top-bar {
        flex-direction: column;
        gap: 20px;
    }
    
    .forum-countdown-container {
        width: 100%;
        justify-content: center;
    }
    
    .forum-program-buttons,
    .forum-nav-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* Countdown expired state */
.forum-countdown-container.expired {
    background: rgba(255, 99, 71, 0.3);
}

.forum-countdown-container.expired .countdown-value {
    color: #ff6b6b;
}

/* Deadline notice */
.deadline-notice {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: center;
    font-size: 1.1em;
}

/* Prize info section */
.prize-info {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.prize-info h4 {
    margin-top: 0;
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

/* Form messages animation */
.form-messages {
    animation: slideDown 0.5s ease;
}

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

/* Loading state for buttons */
.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .forum-nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-nav, .btn-primary {
        text-align: center;
    }
    
    .prize-info {
        padding: 15px;
    }
}

/* Print styles */
@media print {
    .forum-top-bar,
    .btn-submit,
    .forum-nav-buttons {
        display: none;
    }
    
    .forum-form {
        box-shadow: none;
        padding: 0;
    }
}