/* Стили для страницы техосмотра */
.techosmotr-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    position: relative;
    z-index: 2;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.3);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.section-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title-small {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.step {
    transition: all 0.3s ease;
}

.step.hidden {
    display: none;
}

/* Выбор типа ТС */
.vehicle-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.vehicle-type-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vehicle-type-btn.active {
    background: linear-gradient(135deg, #2A4DF4, #FFB800);
    border-color: white;
    transform: scale(1.02);
}

.vehicle-icon {
    font-size: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    color: white;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #FFB800;
    background: rgba(255, 255, 255, 0.25);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2A4DF4, #FFB800);
    border: none;
    border-radius: 60px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-top: 12px;
}

/* Календарь */
.calendar-container {
    margin-bottom: 24px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 30px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav:active {
    transform: scale(0.95);
}

#currentMonthYear {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
}

.calendar-weekdays span {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.available {
    background: rgba(255, 184, 0, 0.6);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: #FFB800;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #2A4DF4;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(42, 77, 244, 0.5);
}

.calendar-day.unavailable {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Слоты времени */
.time-slots-container {
    margin-top: 20px;
}

.time-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.time-slot {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.available {
    background: rgba(255, 184, 0, 0.5);
}

.time-slot.available:hover {
    background: #FFB800;
    transform: scale(1.02);
}

.time-slot.selected {
    background: #2A4DF4;
    border-color: white;
    transform: scale(1.02);
}

.time-slot.booked {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    text-decoration: line-through;
}

.selected-info {
    background: rgba(42, 77, 244, 0.3);
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    margin: 16px 0;
}

/* Лоадер */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFB800;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Успешная запись */
.success-card {
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.success-text {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.booking-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.booking-details p {
    margin: 8px 0;
    font-size: 14px;
}

/* Тост сообщения */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    color: white;
    padding: 14px 20px;
    border-radius: 40px;
    text-align: center;
    z-index: 9999;
    transition: opacity 0.3s;
}

.toast-message.show {
    display: block;
}

.hidden {
    display: none;
}

/* Адаптация */
@media (max-width: 380px) {
    .vehicle-buttons {
        grid-template-columns: 1fr;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 28px;
    }
}.dates-grid, .slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.date-btn, .time-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 60px;
    padding: 12px;
    text-align: center;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}
.date-btn.active, .time-btn.active {
    background: #2A4DF4;
    border-color: white;
    transform: scale(1.02);
}
.summary-card {
    background: rgba(42,77,244,0.2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 20px;
}
.toast.error {
    background: #f44336;
    color: white;
}
