/* Основные стили контейнера формы */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .form-container h2 {
        margin-bottom: 20px;
        font-size: 24px;
        color: #333;
    }

/* Секция участника */
.participant-section {
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

    .participant-section h3 {
        font-size: 20px;
        color: #555;
    }

/* Секция дисциплины */
.discipline-section {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
    position: relative;
}

/* Строка формы для гибкой компоновки */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Группа формы */
.form-group {
    padding: 0 15px;
    margin-bottom: 1rem;
}

    .form-group label {
        font-weight: bold;
    }

/* Колонки с различной шириной */
.form-col-md-4,
.form-col-md-6,
.form-col-md-12 {
    flex: 0 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.form-col-md-4 {
    width: 33.333333%;
}

.form-col-md-6 {
    width: 50%;
}

.form-col-md-12 {
    width: 100%;
}

/* Поля ввода и селекты */
.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

    .form-group input[type="date"] {
        padding: 6px;
    }

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-primary {
    background-color: #007bff;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
}

.btn-danger {
    background-color: #dc3545;
}

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-success:hover,
    .btn-danger:hover {
        opacity: 0.8;
    }


.time-input {
    font-family: monospace;
    text-align: center;
    width: 120px;
}


/* Дополнительные кнопки */
.add-discipline-button,
.add-participant-button {
    margin-top: 10px;
    display: inline-block;
}

.add-discipline-button {
    background-color: #007bff;
    color: #fff;
}

.add-participant-button {
    background-color: #6c757d;
    color: #fff;
}

.remove-discipline-button,
.remove-participant-button {
    background-color: #dc3545;
    color: #fff;
    display: inline-block;
    margin-top: 10px;
}

.header-banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    width: 100%;
}

.header-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.header-link {
    padding: 12px 24px;
    font-size: 18px;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

    .header-link:hover {
        background-color: white;
        color: black;
    }


/* Мобильные стили */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .form-row {
        flex-direction: column;
        margin: 0;
    }

    .form-group {
        padding: 0;
        width: 100%;
    }

    .form-col-md-4, .form-col-md-6, .form-col-md-12 {
        width: 100%;
        padding: 0;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .add-discipline-button,
    .add-participant-button,
    .remove-discipline-button,
    .remove-participant-button {
        width: 100%;
    }
}

.is-invalid {
    border-color: #dc3545;
}

.text-danger {
    color: #ff3860; 
    font-size: 12px; 
}