/* Модальное окно для формы бронирования */
.booking-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.booking-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.booking-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.booking-modal-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.booking-modal-subtitle {
    margin: 8px 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.booking-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.booking-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.booking-modal-body {
    padding: 24px;
}

/* Переопределяем стили формы для модального окна */
.booking-modal .booking-form {
    margin: 0;
}

.booking-modal .form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.booking-modal .form-section-title {
    color: #495057;
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.booking-modal .form-section-title::before {
    content: '📋';
    font-size: 1.2em;
}

.booking-modal .form-section:nth-child(2) .form-section-title::before {
    content: '🎯';
}

.booking-modal .form-section:nth-child(3) .form-section-title::before {
    content: '💬';
}

.booking-modal .form-group {
    margin-bottom: 16px;
}

.booking-modal .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95em;
}

.booking-modal .form-input,
.booking-modal .form-select,
.booking-modal .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    box-sizing: border-box;
}

.booking-modal .form-input:focus,
.booking-modal .form-select:focus,
.booking-modal .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.booking-modal .form-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.booking-modal .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.booking-modal .form-submit:active {
    transform: translateY(0);
}

.booking-modal .form-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.booking-modal .submit-icon {
    width: 18px;
    height: 18px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .booking-modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .booking-modal-header {
        padding: 20px 20px 12px;
    }
    
    .booking-modal-title {
        font-size: 1.2em;
    }
    
    .booking-modal-body {
        padding: 20px;
    }
    
    .booking-modal .form-section {
        padding: 16px;
        margin-bottom: 16px;
    }
}

/* Состояние загрузки */
.booking-modal .loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Успешная отправка */
.booking-success {
    text-align: center;
    padding: 40px 24px;
}

.booking-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.booking-success-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 12px;
}

.booking-success-message {
    color: #6c757d;
    margin-bottom: 24px;
    line-height: 1.5;
}

.booking-success-button {
    background: #25d366;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.booking-success-button:hover {
    background: #1fb659;
    text-decoration: none;
    color: white;
}