/* Bookings styles - минимальный набор для формы бронирования */

/* Общие стили для модалки и формы */
#booking-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

#booking-form input[type="text"],
#booking-form input[type="tel"],
#booking-form input[type="email"],
#booking-form input[type="date"],
#booking-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

#booking-form button[type="submit"] {
    background: #28a745;
    color: white;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

#booking-form button[type="submit"]:hover {
    background: #218838;
}

/* Депозит и промокод */
#deposit-info {
    font-size: 0.95em;
}

/* Детали брони сверху */
#booking-details {
    line-height: 1.5;
}

/* Улучшенные стили для формы бронирования */

/* Поля дат с календарём */
.booking-date-wrapper {
    position: relative;
}

.booking-date-wrapper input[type="date"],
.booking-date-wrapper input[type="text"] {
    padding-right: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

/* Счётчик ночей */
#nights-count {
    display: inline-block;
    margin-left: 10px;
    padding: 4px 12px;
    background: #e7f3ff;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
}

/* Дополнительные поля (скрытые) */
.booking-extra-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.booking-extra-fields.expanded {
    max-height: 500px;
    margin-top: 15px;
}

/* Кнопка "Дополнительно" */
.toggle-extra-fields {
    display: inline-block;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #0073aa;
    transition: all 0.2s;
}

.toggle-extra-fields:hover {
    background: #f5f5f5;
    border-color: #0073aa;
}

.toggle-extra-fields.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Промокод с подсказкой */
.promocode-wrapper {
    position: relative;
}

.promocode-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.promocode-hint::before {
    content: "💡 ";
}

/* Анимация появления формы */
#booking-form-container {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Улучшенный summary блок */
#booking-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

#booking-summary > div {
    padding: 8px;
    background: white;
    border-radius: 5px;
    border-left: 3px solid #28a745;
}

/* Flatpickr кастомизация */
.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
}

.flatpickr-day.selected {
    background: #28a745 !important;
    border-color: #28a745 !important;
}

.flatpickr-day.selected:hover {
    background: #218838 !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    #booking-summary {
        grid-template-columns: 1fr;
    }
}