/* --- Общее Модальное окно (например, для деталей тура) --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh; /* Из PDF 14 */
    overflow-y: auto; /* Из PDF 14 */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--primary-dark);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* --- Модальное окно для формы записи (Ваша новая модалка) --- */
.booking-modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.booking-modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.booking-widget {
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(0, 103, 165, 0.2);
    max-width: 100%;
}

.booking-widget img {
    height: 65px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.booking-widget h3 {
    margin-top: 0;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.6rem;
    font-weight: 700;
}

.booking-widget p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.booking-widget form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-widget input,
.booking-widget select,
.booking-widget button {
    width: 100%;
    max-width: 400px;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    display: block;
    box-sizing: border-box;
}
.small-text {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}
/* 1. Базовый стиль кнопки (как она выглядит в модалке) */
.booking-widget button {
    background-color: var(--primary-color); /* Синий по умолчанию */
    color: white;
    padding: 15px;
    margin-top: 15px;
    border: none;
    border-radius: 30px; /* Сильное скругление из вашего дизайна */
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
    box-shadow: var(--blue-shadow);
    display: block;
    box-sizing: border-box;
}

/* 2. СОСТОЯНИЕ ВЫКЛЮЧЕНО (СЕРАЯ КНОПКА) */
.booking-widget button:disabled {
    background-color: #cccccc !important; /* Тот самый серый цвет */
    color: #666666 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 3. АКТИВНОЕ СОСТОЯНИЕ (КОГДА ФОРМА ЗАПОЛНЕНА) */
/* Этот класс .enabled должен добавляться скриптом */
.booking-widget button.enabled {
    background-color: var(--secondary-color) !important; /* #d3ff3a - лимонный */
    color: var(--dark-color) !important; /* Темный текст */
}

/* Эффект при наведении на активную кнопку */
.booking-widget button.enabled:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(211, 255, 58, 0.6);
}

/* ... и все остальные стили для кнопки, :disabled, :focus из вашего CSS ... */
