/**
 * Стили формы бронирования школьной экскурсии
 */

.school-excursion {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.school-excursion__title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Прогресс */
.school-excursion__progress {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.school-excursion__progress-text {
    font-size: 14px;
    color: #666;
}

.school-excursion__progress-text span {
    font-weight: 600;
    color: #1976d2;
}

/* Шаги */
.school-excursion__step {
    display: none;
}

.school-excursion__step.active {
    display: block;
}

.school-excursion__step-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Даты */
.school-excursion__dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.school-excursion__dates::-webkit-scrollbar {
    width: 6px;
}

.school-excursion__dates::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.school-excursion__dates::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.school-excursion__dates::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.school-excursion__date {
    cursor: pointer;
}

.school-excursion__date input {
    position: absolute;
    opacity: 0;
}

.school-excursion__date-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.2s;
}

.school-excursion__date:hover .school-excursion__date-box {
    border-color: #1976d2;
}

.school-excursion__date.selected .school-excursion__date-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.school-excursion__date--disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.school-excursion__date--disabled:hover .school-excursion__date-box {
    border-color: #e0e0e0;
}

.school-excursion__date-text {
    font-weight: 500;
    color: #333;
}

.school-excursion__date-spots {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.school-excursion__date-spots--low {
    color: #c62828;
}

/* Опции (класс, группа) */
.school-excursion__options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.school-excursion__options--grade {
    gap: 12px;
}

.school-excursion__option {
    cursor: pointer;
}

.school-excursion__option input {
    position: absolute;
    opacity: 0;
}

.school-excursion__option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
}

.school-excursion__option:hover .school-excursion__option-box {
    border-color: #1976d2;
}

.school-excursion__option.selected .school-excursion__option-box {
    border-color: #1976d2;
    background: #e3f2fd;
}

.school-excursion__option-main {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.school-excursion__option-sub {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.school-excursion__no-groups {
    padding: 20px;
    background: #e3f2fd;
    border-radius: 10px;
    color: #1565c0;
    text-align: center;
}

/* Участники */
.school-excursion__hint {
    margin: 0 0 16px;
    padding: 12px;
    background: #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    color: #1565c0;
}

.school-excursion__participants {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-excursion__participant-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.school-excursion__counter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.school-excursion__counter-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.school-excursion__counter-btn:hover {
    border-color: #1976d2;
    color: #1976d2;
}

.school-excursion__counter input {
    flex: 1;
    height: 52px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.school-excursion__total {
    margin: 20px 0 0;
    padding: 14px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.school-excursion__error {
    margin: 12px 0 0;
    padding: 10px;
    background: #ffebee;
    border-radius: 8px;
    color: #c62828;
    font-size: 14px;
}

.school-excursion__error:empty {
    display: none;
}

/* Контакты */
.school-excursion__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-excursion__field {
    margin-bottom: 0;
}

.school-excursion__field--full {
    grid-column: 1 / -1;
}

.school-excursion__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.school-excursion__field input,
.school-excursion__field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.school-excursion__field input:focus,
.school-excursion__field textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.school-excursion__field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Навигация */
.school-excursion__nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.school-excursion__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.school-excursion__btn--prev {
    background: #f5f5f5;
    color: #666;
}

.school-excursion__btn--prev:hover {
    background: #eee;
}

.school-excursion__btn--next,
.school-excursion__btn--submit {
    background: #1976d2;
    color: #fff;
    margin-left: auto;
}

.school-excursion__btn--next:hover,
.school-excursion__btn--submit:hover {
    background: #1565c0;
}

.school-excursion__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Сообщения */
.school-excursion__message {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.school-excursion__message.show {
    display: block;
}

.school-excursion__message--error {
    background: #ffebee;
    color: #c62828;
}

.school-excursion__message--success {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .school-excursion {
        padding: 16px;
    }

    .school-excursion__progress-label {
        display: none;
    }

    .school-excursion__fields {
        grid-template-columns: 1fr;
    }

    .school-excursion__options {
        flex-direction: column;
    }

    .school-excursion__option-box {
        width: 100%;
    }

    .school-excursion__nav {
        flex-direction: column;
    }

    .school-excursion__btn {
        width: 100%;
    }

    .school-excursion__btn--next,
    .school-excursion__btn--submit {
        margin-left: 0;
    }
}

/* Блок документов */
.vt-exc-docs {
    margin-top: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.vt-exc-docs__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a2e;
}

.vt-exc-docs__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vt-exc-docs__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f7f8fb;
    border: 1px solid #e8eaf0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.vt-exc-docs__item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.vt-exc-docs__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vt-exc-docs__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vt-exc-docs__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
}

.vt-exc-docs__meta {
    font-size: 12px;
    color: #8892a4;
    letter-spacing: 0.3px;
}

.vt-exc-docs__arrow {
    color: #8892a4;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.vt-exc-docs__item:hover .vt-exc-docs__arrow {
    color: #3b82f6;
    transform: translateY(2px);
}
