/* ========================================
   КРЕДИТНЫЙ КАЛЬКУЛЯТОР – ПОЛНЫЙ СТИЛЬ БАННЕРА
   ======================================== */

/* Контейнер‑сетка (обёртка) с шумовой текстурой */
.credit-calculator-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
}

/* Шумовая текстура для всей сетки (поверх фона колонок) */
.credit-calculator-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Слои: сверху шум (с прозрачностью 25%), под ним градиент */
    background: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.25'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #222222 0%, #383838 100%);
    background-repeat: repeat, no-repeat;
    background-size: auto, cover;
    border: 1px solid rgba(255,255,255,0.15);
    border-top: 4px solid #b0221d;
    pointer-events: none;
    z-index: 1;
}

/* Контент колонок поверх текстуры */
.calculator-left,
.calculator-right {
    position: relative;
    z-index: 2;
}

/* Левая колонка – калькулятор */
.calculator-left {
    flex: 2;
    min-width: 280px;
    padding: 25px;
    color: #fff;
    overflow: hidden;
}

/* Правая колонка – фото и ежемесячный платёж */
.calculator-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px;
    overflow: hidden;
}

/* Метки полей (Марка, Модель, Комплектация) */
.calc-group label {
    display: block;
    font-weight: 600;
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

/* Выпадающие списки */
.calc-select {
    width: 100%;
    padding: 8px 15px;
    margin: 8px 0;
    background: #fff;
    color: #222;
    border: none;
    font-size: 16px;
    transition: all 0.2s;
}
.calc-select:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #b0221d;
}
.calc-select:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Ползунки */
.slider-container {
    margin: 20px 0;
}
.slider-container label {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.3);
    outline: none;
    margin: 10px 0;
}
input[type="range"]:focus {
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #b0221d;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #b0221d;
    border-radius: 0;
    cursor: pointer;
}
.slider-value {
    display: inline-block;
    background: rgba(0,0,0,0.4);
    padding: 4px 10px;
    font-size: 18px;
    margin-left: 10px;
}

/* Полная стоимость комплектации */
.full-price {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-align: right;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 8px;
}

/* Контейнер для фото */
.car-image-container {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
}
.car-image-container img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.3);
    background: #fff;
}

/* Блок ежемесячного платежа в правой колонке */
.right-monthly-payment {
    width: 100%;
    background: rgba(0,0,0,0.25);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
}
.right-monthly-payment .result-label {
    display: block;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}
.right-monthly-payment .result-amount {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .credit-calculator-grid {
        flex-direction: column;
        gap: 25px;
    }
    .calculator-left,
    .calculator-right {
        width: 100%;
    }
    .car-image-container img {
        max-height: 300px;
    }
    .right-monthly-payment .result-amount {
        font-size: 28px;
    }
    .calc-group label {
        font-size: 16px;
    }
}

/* Contact Form 7 форма в правой колонке */
.request-form {
    margin-top: 25px;
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 20px;
    text-align: center;
}
.request-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.request-desc {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}
.request-field {
    margin-bottom: 15px;
}
.request-field input {
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border: none;
    font-size: 16px;
    color: #222;
    box-sizing: border-box;
}
.request-field input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #b0221d;
}
.request-submit {
    background: #b0221d;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.request-submit:hover {
    background: #8a1a16;
}
.request-status {
    margin-top: 15px;
    font-size: 14px;
    color: #fff;
}

/* Стилизация ошибок и сообщений CF7 */
.wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 10px !important;
    border: none !important;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    text-align: center;
}
.wpcf7-not-valid-tip {
    display: none !important;
}
.wpcf7-not-valid {
    border: 1px solid #ff4444 !important;
}
