/* booking-form.css */
:root {
    --background-color: #f4f1ee;
    --form-bg-color: #ffffff;
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --accent-color: #9d8162;
    --border-color: #e0e0e0;
}

.booking-section {
    font-family: var(--font-body);
  /*  background-color: var(--background-color);*/
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-container {
    display: flex;
    /* max-width: 960px; */
    width: 100%;
    /* background-color: var(--form-bg-color); */
    border-radius: 16px;
    /* box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); */
    overflow: hidden;
    transition: all 0.5s ease;
}

.booking-image-panel {
    flex: 1;
    background: url('https://kommunarka.permanentlab.ru/img/triho/instr.png') center center/cover;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    transition: all 0.5s ease;
}

.booking-image-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.image-panel-content {
    position: relative;
    z-index: 2;
}

.image-panel-content h1 {
    font-family: var(--font-heading);
    font-size: 38px;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.image-panel-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.booking-form-panel {
    flex: 1;
    padding: 50px 40px;
    transition: all 0.3s ease;
    background-color: #ffffff; /* Добавил фон сюда, чтобы форма оставалась белой */
}

.booking-form-panel h2 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin: 0 0 30px 0;
    font-size: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background-color: transparent;
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.buttons-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.submit-btn:hover { transform: translateY(-3px); }
.btn-whatsapp { background-color: #26b4b1; }
.btn-telegram { background-color: #26b4b1; }

/* Адаптивность */
@media (max-width: 860px) {
    .booking-container { flex-direction: column; }
    .booking-image-panel {
        min-height: 250px;
        text-align: center;
        flex: none;
    }
}

/* СТИЛИ ДЛЯ СООБЩЕНИЯ "СПАСИБО" */
.confirmation-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.confirmation-message i {
    font-size: 50px;
    color: #DA295C;
    margin-bottom: 20px;
}

.confirmation-message h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 28px;
    margin: 0 0 10px 0;
}

.confirmation-message p {
    color: #555;
    font-size: 16px;
    max-width: 300px;
}

/* СТИЛИ ДЛЯ ПЛАВНОГО ПОЯВЛЕНИЯ ПОЛЯ */
#other-question-group {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.5s ease-out;
    margin-top: 0;
}
