@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Overlay фон */
.wowfix-location-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

/* Модальное окно */
.wowfix-location-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

/* Кнопка закрытия */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-modal:hover {
    color: #d32f2f;
    transform: rotate(90deg);
}

/* Заголовок модалки */
.wowfix-location-modal h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

/* Поле поиска */
#location-search {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 0 0 20px 0;
    outline: none;
    transition: border 0.3s;
}

#location-search:focus {
    border-color: #2196F3;
}

/* Результаты поиска */
#search-results {
    max-height: 300px;
    overflow-y: auto;
}

/* Карточка результата */
.location-result {
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    margin: 10px 0;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.location-result:hover {
    background: #fff;
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.location-result h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.location-result p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.location-result .phone {
    color: #d32f2f;
    font-weight: 600;
    font-size: 16px;
}

.location-result .areas {
    color: #555;
}

.location-result .time {
    color: #2196F3;
    font-weight: 500;
}

/* Нет результатов */
.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 16px;
}

/* Футер модалки */
.modal-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.modal-footer p {
    margin: 0 0 10px 0;
    color: #666;
}

.phone-link {
    color: #d32f2f;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .wowfix-location-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
    }
    
    #search-results {
        flex: 1;
        max-height: none;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Блокировка скролла body при открытой модалке */
body.modal-open {
    overflow: hidden;
}

/* ===== СИСТЕМА УДЕРЖАНИЯ КЛИЕНТОВ ===== */

/* Модальное окно удержания */
.retention-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retention-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: retentionSlideIn 0.3s ease-out;
}

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

.retention-header {
    background: linear-gradient(135deg, #2B49C3, #1e3a8a);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.retention-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.retention-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.retention-body {
    padding: 25px;
}

.retention-message {
    margin-bottom: 20px;
}

.retention-message p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
}

.retention-offer {
    background: #f8f9fa;
    border: 2px solid #2B49C3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.discount-offer h3 {
    color: #2B49C3;
    margin: 0 0 15px 0;
    font-size: 20px;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-comparison > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-comparison > div:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
    color: #2B49C3;
}

.original-price .price {
    text-decoration: line-through;
    color: #666;
}

.discount-amount .price {
    color: #4CAF50;
    font-weight: bold;
}

.final-price .price {
    color: #2B49C3;
    font-size: 20px;
}

.savings {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0 0 0;
}

.retention-guarantee {
    background: #e8f5e8;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.retention-guarantee h3 {
    color: #4CAF50;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.retention-guarantee p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.retention-urgency {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.retention-urgency p {
    margin: 0;
    text-align: center;
}

.retention-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.retention-accept-btn {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retention-accept-btn:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.retention-decline-btn {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retention-decline-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* Кнопки триггеров удержания */
.retention-trigger-btn {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    padding: 8px 16px !important;
    margin: 5px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.retention-trigger-btn:hover {
    background: #e0e0e0 !important;
    color: #333 !important;
    border-color: #bbb !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .retention-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .retention-header {
        padding: 15px;
    }
    
    .retention-header h2 {
        font-size: 20px;
    }
    
    .retention-body {
        padding: 20px;
    }
    
    .retention-actions {
        flex-direction: column;
    }
    
    .retention-accept-btn,
    .retention-decline-btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* ===== BOOK ONLINE MODAL - ФИНАЛЬНАЯ ИСПРАВЛЕННАЯ ВЕРСИЯ ===== */

/* Pricing Display Styles */
.wowfix-booking-modal .pricing-display {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.wowfix-booking-modal .pricing-display h4 {
    margin: 0 0 10px 0;
    color: #2B49C3;
    font-size: 16px;
    font-weight: 600;
}

.wowfix-booking-modal #priceRange {
    margin-bottom: 10px;
}

.wowfix-booking-modal #pricingDetails {
    font-size: 14px;
    line-height: 1.4;
}

.wowfix-booking-modal #pricingDetails div {
    margin-bottom: 5px;
}

/* Size Input Styles */
.wowfix-booking-modal .size-options {
    margin: 10px 0;
}

.wowfix-booking-modal .size-options label {
    display: block;
    margin: 5px 0;
    cursor: pointer;
}

.wowfix-booking-modal .size-options input[type="radio"] {
    margin-right: 8px;
}

.wowfix-booking-modal .dimension-row {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wowfix-booking-modal .dimension-row label {
    min-width: 120px;
    font-weight: 500;
    margin: 0;
}

.wowfix-booking-modal .dimension-row input[type="number"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.wowfix-booking-modal #calculatePriceBtn {
    margin-top: 15px;
    background: #2B49C3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.wowfix-booking-modal #calculatePriceBtn:hover {
    background: #1e3a8a;
}

/* Advanced Pricing Styles */
.wowfix-booking-modal .material-selection,
.wowfix-booking-modal .frame-type-selection,
.wowfix-booking-modal .grid-selection,
.wowfix-booking-modal .additional-options {
    margin: 15px 0;
}

.wowfix-booking-modal .material-selection label,
.wowfix-booking-modal .frame-type-selection label,
.wowfix-booking-modal .grid-selection label,
.wowfix-booking-modal .additional-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wowfix-booking-modal .material-selection select,
.wowfix-booking-modal .frame-type-selection select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.wowfix-booking-modal .grid-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wowfix-booking-modal .grid-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.wowfix-booking-modal .grid-options label:hover {
    background-color: #f5f5f5;
}

.wowfix-booking-modal .grid-options input[type="radio"] {
    margin-right: 8px;
    margin-bottom: 0;
}

.wowfix-booking-modal .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.wowfix-booking-modal .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.wowfix-booking-modal .checkbox-group label:hover {
    background-color: #f5f5f5;
}

.wowfix-booking-modal .checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-bottom: 0;
}

/* Price breakdown styling */
.wowfix-booking-modal .price-breakdown {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.wowfix-booking-modal .price-breakdown h4 {
    margin: 0 0 10px 0;
    color: #2B49C3;
    font-size: 16px;
}

.wowfix-booking-modal .price-item {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wowfix-booking-modal .price-item:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 16px;
    color: #2B49C3;
}

.wowfix-booking-modal .price-item .label {
    color: #666;
}

.wowfix-booking-modal .price-item .value {
    font-weight: 500;
}

/* Dark Theme Book Online - ФИНАЛЬНАЯ версия ИСПРАВЛЕННАЯ */
.wowfix-booking-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wowfix-booking-modal {
    background: linear-gradient(135deg, rgba(30, 42, 71, 0.95), rgba(42, 54, 85, 0.95)) !important;
    width: 90%;
    max-width: 600px;
    border-radius: 20px !important;
    padding: 40px 30px !important;
    backdrop-filter: blur(10px) !important;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
}

/* Кнопка закрытия */
.close-booking {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 35px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7) !important;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-booking:hover {
    color: #FFFFFF !important;
    transform: rotate(90deg);
}

.wowfix-booking-modal h2 {
    font-family: 'Bebas Neue', sans-serif !important;
    color: #FFFFFF !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important; /* Изменено на 1px */
    margin-bottom: 30px !important;
    font-size: 32px !important;
    text-align: center;
}

/* Стили для клонированной формы */
.cloned-elementor-form {
    width: 100%;
}

.cloned-elementor-form .elementor-form {
    margin: 0;
}

.cloned-elementor-form .elementor-field-group {
    margin-bottom: 15px;
}

/* Поля формы с видимыми границами */
.wowfix-booking-modal .elementor-field,
.wowfix-booking-modal input.elementor-field,
.wowfix-booking-modal select.elementor-field,
.wowfix-booking-modal textarea.elementor-field,
.cloned-elementor-form .elementor-field,
.cloned-elementor-form input.elementor-field,
.cloned-elementor-form select.elementor-field,
.cloned-elementor-form textarea.elementor-field {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(139, 147, 170, 0.3) !important;
    border-radius: 35px !important;
    color: #FFFFFF !important;
    padding: 18px 25px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* СВЕТЛЫЕ placeholder для лучшей видимости */
.wowfix-booking-modal .elementor-field::placeholder,
.wowfix-booking-modal input::placeholder,
.wowfix-booking-modal textarea::placeholder,
.cloned-elementor-form .elementor-field::placeholder,
.cloned-elementor-form input::placeholder,
.cloned-elementor-form textarea::placeholder {
    color: rgba(200, 210, 230, 0.8) !important; /* Светлее! */
}

.wowfix-booking-modal .elementor-field:focus,
.cloned-elementor-form .elementor-field:focus {
    border-color: rgba(139, 147, 170, 0.5) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
}

.wowfix-booking-modal label,
.cloned-elementor-form label,
.cloned-elementor-form .elementor-field-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.wowfix-booking-modal textarea.elementor-field,
.cloned-elementor-form textarea.elementor-field {
    border-radius: 20px !important;
    min-height: 150px !important;
    resize: vertical;
}

.wowfix-booking-modal button[type="submit"],
.cloned-elementor-form button[type="submit"],
.cloned-elementor-form .elementor-button {
    font-family: 'Bebas Neue', sans-serif !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #FFFFFF !important;
    border-radius: 35px !important;
    padding: 18px 40px !important;
    font-size: 25px !important; /* Изменено на 25px */
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important; /* Изменено на 1px */
    border: none !important;
    width: 100% !important;
    margin-top: 20px !important;
    transition: all 0.3s !important;
    cursor: pointer;
}

.wowfix-booking-modal button[type="submit"]:hover,
.cloned-elementor-form button[type="submit"]:hover,
.cloned-elementor-form .elementor-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3) !important;
}

/* УБИРАЕМ ВНУТРЕННИЕ РАМКИ в select */
.wowfix-booking-modal .elementor-select-wrapper,
.cloned-elementor-form .elementor-select-wrapper {
    border: none !important;
    background: transparent !important;
}

.wowfix-booking-modal .elementor-select-wrapper select,
.cloned-elementor-form .elementor-select-wrapper select {
    border: 1px solid rgba(139, 147, 170, 0.3) !important;
}

/* Убираем ВСЕ лишние элементы и рамки */
.wowfix-booking-modal .select-caret-down-wrapper,
.wowfix-booking-modal .elementor-select-wrapper:before,
.wowfix-booking-modal .elementor-select-wrapper:after,
.cloned-elementor-form .select-caret-down-wrapper,
.cloned-elementor-form .elementor-field-type-upload .elementor-button {
    display: none !important;
}

.wowfix-booking-modal select.elementor-field,
.cloned-elementor-form select.elementor-field {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(139,147,170,0.7)' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 20px !important;
    padding-right: 50px !important;
    appearance: none;
    cursor: pointer;
}

/* Сообщение об успешной отправке */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message h3 {
    color: #4CAF50 !important;
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.success-message p {
    color: #FFFFFF !important;
    font-size: 18px;
    margin: 0;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .wowfix-booking-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding: 20px;
        display: flex;
        flex-direction: column;
    }
    
    .close-booking {
        top: 10px;
        right: 10px;
    }
}
/* FIX: Мобильная версия Book Online - убираем горизонтальный скролл */
@media (max-width: 768px) {
    .wowfix-booking-overlay {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .wowfix-booking-modal {
        width: 90% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    /* Убираем возможность скролла внутри формы */
    .cloned-elementor-form {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Все поля должны быть 100% ширины */
    .wowfix-booking-modal .elementor-field,
    .wowfix-booking-modal input,
    .wowfix-booking-modal select,
    .wowfix-booking-modal textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* FIX: Мобильная версия Book Online - убираем горизонтальный скролл */
@media (max-width: 768px) {
    .wowfix-booking-overlay {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .wowfix-booking-modal {
        width: 100% !important;
        margin: 0 auto !important;
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
    
    /* Убираем возможность скролла внутри формы */
    .cloned-elementor-form {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* Все поля должны быть 100% ширины */
    .wowfix-booking-modal .elementor-field,
    .wowfix-booking-modal input,
    .wowfix-booking-modal select,
    .wowfix-booking-modal textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ФИНАЛЬНЫЙ FIX - только проценты для мобилки */
@media (max-width: 768px) {
    .wowfix-booking-modal {
        width: 95% !important;
        max-width: 95% !important;  /* Убираем фиксированные пиксели */
        margin: 0 auto !important;
        position: relative !important;
    }
}
