/* -------------------- АСТРОЛОГ ВАДИМ ЧЕРКАСОВ -------------------- */

/* ИСПРАВЛЕНИЕ: Добавлен селектор * для глобального сброса */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0c;
    font-family: 'Inter', sans-serif;
    color: #ededed;
    font-size: 18px;
    line-height: 1.5;
}

/* Контейнер */
.container-mystic {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Карточки */
.card-mystic {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

/* Кнопки */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background: #ffffff;
    color: #0a0a0c;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    max-width: 280px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 280px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 640px) {
    .btn-group {
        flex-direction: row;
    }
    .btn-primary, .btn-secondary {
        width: auto;
    }
}

/* ===== ФОРМА — ГЛАВНЫЙ ФИКС ===== */
#telegramForm input,
#telegramForm select,
#telegramForm textarea,
/* Новые инпуты для booking.html */
.booking-input {
    background: #1a1a24 !important;
    border: 2px solid #ffffff !important;
    border-radius: 12px !important;
    padding: 14px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    width: 100% !important;
    font-family: inherit;
}

#telegramForm input::placeholder,
#telegramForm textarea::placeholder,
.booking-input::placeholder {
    color: #bbbbbb !important;
}

#telegramForm input:focus,
#telegramForm select:focus,
#telegramForm textarea:focus,
.booking-input:focus {
    background: #2a2a38 !important;
    border-color: #c9a03d !important; /* Золотой акцент при фокусе */
    outline: none !important;
}

#telegramForm {
    background: #0a0a0f !important;
    padding: 20px !important;
    border-radius: 20px !important;
    border: 2px solid #333333 !important;
}

#submitBtn {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 14px 28px !important;
    border-radius: 40px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    width: 100%;
    margin-top: 10px;
}

#telegramForm label {
    color: #dddddd !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 5px;
    display: block !important;
}

#telegramForm input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #ffffff !important;
}

#telegramForm .hidden {
    display: none !important;
}

/* Футер */
footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: auto;
}

footer a {
    color: #888;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}

/* Анимации */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.divider-mystic {
    width: 80px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 1.5rem auto;
}

/* Фото */
.photo-frame {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
    .photo-frame {
        width: 120px;
        height: 120px;
    }
}

/* ==================== СТИЛИ ДЛЯ BOOKING.HTML (SPLIT VIEW) ==================== */

.booking-layout {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    height: calc(100vh - 150px); /* Высота экрана минус шапка/подвал */
    align-items: stretch;
}

/* Левая колонка - Расписание */
.schedule-col {
    flex: 1;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    overflow-y: auto; /* Прокрутка только здесь */
}

/* Правая колонка - Форма */
.form-col {
    flex: 1;
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 1.5rem;
    overflow-y: auto; /* Прокрутка только здесь */
    display: flex;
    flex-direction: column;
}

/* Сетка слотов */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.slot-btn {
    background: #1a1a24;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.slot-btn:hover { 
    border-color: #c9a03d; 
    color: #c9a03d;
}

.slot-btn.selected { 
    background: #c9a03d; 
    color: #0a0a0c; 
    border-color: #c9a03d; 
    font-weight: bold; 
}

.slot-date-header {
    grid-column: 1 / -1;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #c9a03d; /* Золотой акцент */
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

/* Сообщения об ошибках/успехе */
.message-box { 
    padding: 10px; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    display: none; 
    text-align: center; 
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.msg-error { background: rgba(255, 0, 0, 0.1); border: 1px solid #f00; color: #ff8888; }
.msg-success { background: rgba(0, 255, 0, 0.1); border: 1px solid #0f0; color: #88ff88; }

/* Мобильная адаптация для Booking */
@media (max-width: 768px) {
    .booking-layout { 
        flex-direction: column; 
        height: auto; 
    }
    .schedule-col, .form-col { 
        height: auto; 
        max-height: 500px; 
    }
}

/* ==================== КНОПКИ — ПОЛНЫЙ ФИКС ==================== */
.btn-primary,
.btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 40px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Десктоп */
@media (min-width: 641px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 2rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
}

/* Мобильные */
@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1rem !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        min-width: 120px !important;
    }
}

/* Очень маленькие телефоны */
@media (max-width: 380px) {
    .btn-primary,
    .btn-secondary {
        padding: 0.5rem 0.7rem !important;
        font-size: 0.65rem !important;
        min-width: 100px !important;
    }
}