
#windowSelectionForm{
    overflow: hidden;
}
.window-calculator {
    margin-bottom: 50px;
    margin-top: 50px;
    padding: 40px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.profile-selection {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.profile-selection label {
    font-size: 1.1em;
    cursor: pointer;
}

.format-selection h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1em;
    color: #333;
}
.calculator-header-controls {
    display: flex;
    justify-content: center;
    align-items: baseline;/* Растягивает элементы по высоте */
    padding: 0; 
    margin-bottom: 20px;
}

/* 1. БАЗОВЫЙ СТИЛЬ (применяется ко всем 3 элементам) */
.calculator-header-controls .header-btn-left,
.calculator-header-controls .header-btn-right,
.calculator-header-controls .header-button-placeholder,
.calculator-header-controls h2 {
    /* 🔥 Равное деление на 3 */
    flex: 1 1 33.33%; 
    margin: 0 25px; 
    padding: 0!important; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px; 
    
    /* Общий вид: рамка, тень, светлый фон по умолчанию */
    border: 1px solid #eeeeee;
    background: #ffffff;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    border-radius: 4px !important; 
    color: #182978;
    font-size: 1.3em;
    font-weight: 600;
}

/* 2. Стилизация Заголовка/Плейсхолдера (уточнение) */
.calculator-header-controls .header-button-placeholder {
    cursor: default; 
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* 🔥 3. СТИЛЬ АКТИВНЫХ КНОПОК (Слева и Справа): СИНИЙ ФОН, БЕЛЫЙ ТЕКСТ */
.calculator-header-controls .header-btn-left,
.calculator-header-controls .header-btn-right {
    background-color: #182978 !important; /* СИНИЙ ФОН */
    border-color: #182978 !important; /* СИНЯЯ РАМКА */
    color: #ffffff !important; /* БЕЛЫЙ ТЕКСТ */
}

/* Принудительно делаем текст внутри span белым */
.calculator-header-controls .header-btn-left span,
.calculator-header-controls .header-btn-right span {
    color: #ffffff !important;
}


/* 4. Стиль для самой кнопки (тег <a>) внутри контейнера */
.calculator-header-controls .button {
    width: 100%; 
    height: 100%;
    margin: 0;
    padding: 10px 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px !important; 
	padding: 10px 0;!important
}


/* 🔥 5. СТИЛЬ НАВЕДЕНИЯ: Чуть более темный синий (ТОЛЬКО для действующих кнопок) */
.calculator-header-controls .button:hover {
    background-color: #0b174b !important; /* Темно-синий */
    border-color: #0b174b !important; 
    color: #ffffff !important; 
    box-shadow: none !important;
}

/* Принудительно делаем текст внутри span белым при наведении */
.calculator-header-controls .button:hover span {
    color: #ffffff !important;
}
.format-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.format-options label {
    width: 30%;
    margin: 5px 0;
    font-size: 0.9em;
    cursor: pointer;
}

.window-image {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.window-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.window-options {
    margin-top: 20px;
    text-align: center;
}

.window-options select {
    width: 44%;
    margin: 5px 5px;
}

.dimensions {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
}

.dimensions label {
    font-size: 0.9em;
    color: #333;
}

.dimensions input[type="number"] {
    width: 100%;
    color: #666666;
    font-family: 'Arial', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1.25;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 10px 10px 10px 10px;
    transition: all 0.2s linear 0s;
    margin-top: 10px;
}
.windowType{
    color: #666666;
    font-family: 'Arial', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1.25;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 10px 10px 10px 10px;
    transition: all 0.2s linear 0s;
}
.dimensions .widthand:first-child {
    margin-right: 10px;
}

.additional-options {
    margin-top: 10px;
}

.additional-options label {
    display: block;
    margin: 5px 0;
    font-size: 0.9em;
}

.additional-options select {
    color: #666666;
    font-family: 'Arial', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    line-height: 1.25;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    padding: 15px 10px 15px 10px;
    transition: all 0.2s linear 0s;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.profile-selection {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
}

.profile-option {
    position: relative;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    padding: 15px 10px 10px 10px;
    background: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    color: #333;
}


.profile-option.active {
    border-radius: 4px;
    border: 1px solid rgba(255, 217, 0, 0.8);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}
@media screen and (min-width: 1000px) {
    .optionssize{
        padding: 0 40px;
        float: left;
        width: 40%;
    }
    .calcimages{
        float: left;
        width: 60%;
    }
}
@media screen and (min-width: 500px) {
    .window-options select {
        width: 23%;
    }
    
    .profile-option{
        width: 32%;
    }
}
.profile-selection .profile-option label{
    position: relative;
    padding-left: 30px;
    margin-left: 0;
    padding-right: 20px;
    display: block;
}
.profile-selection .profile-option label:before{
    content: '';
    display: block;
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 0;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: transparent;
}
.profile-selection .profile-option.active label:before{
    -webkit-animation: cd-bounce 0.3s;
    -moz-animation: cd-bounce 0.3s;
    animation: cd-bounce 0.3s;
    background-color: rgba(255, 217, 0, 0.8);
}	
.format-selection2{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
	justify-content: space-evenly;
    -ms-flex-pack: center;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
}
.format-selection{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
}
.format-options .unit{
    margin-right: 25px !important;
    margin-bottom: 15px !important;
    border-radius: 4px;
    border: 1px solid #eeeeee;
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    padding: 15px 10px 15px 10px;
    background: #ffffff;
    cursor: pointer;
    margin: 0 0 2% 0;
    position: relative;
}
.format-options input,.profile-option input{
    float: left;
    position: absolute;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    opacity: 0;
    z-index: 2;
    cursor: pointer;
}
.format-options .unit label{
   display: none;
}
.format-options .unit .unit__image{
    margin-left: -10px;
    margin-top: -15px;
    margin-right: -10px;
    margin-bottom: 15px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    margin-bottom: -15px !important;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 80px;
    height: 80px;
}
.unit.active{
    border-radius: 4px;
    border: 1px solid rgba(255, 217, 0, 0.8);
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}
input:checked{
    opacity: 0 !important;
}
.widthand{
   float: left;
}
.additional-options select{
    margin-top: 10px;
}
.additional-options label{
    margin-top: 5px;
}
.userDataForm{
    max-width: 600px;
    margin: 0 auto;
}
.total{
    text-align: center;
}
#submitRequest{
    padding: 20px;
    margin-top: 20px;
    height: auto !important;
}
.total a{
    padding: 20px;
    margin-top: 20px;
    height: auto !important;
}
.window-calculator .form-horizontal{
    margin-right: auto;
    margin-left: auto;
    max-width: 400px;
    text-align: center;
}
.d-none{
    display: none !important;
}
@media screen and (max-width: 600px) {
    .profile-option{
        padding: 10px 10px 5px 10px !important;
    }
    .format-options .unit .unit__image{
        width: 50px !important;
        height: 50px !important;
    }
    .unit__image img{
        height: 100%;
    width: 100%;
    padding: 5px;
    }

.profile-selection{
    gap: 5px;
    flex-direction: column;
}
}
.button-form{
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#sucsesful{
    margin-right: auto;
    margin-left: auto;
    display: flex;
    text-align: center;
    max-width: 500px;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}
#sucsesful p{
    font-size: 20px;
    text-align: center;
}
.form-group.error input{
    border-color: #e90000;
}
!important.new-calculator-button {
    display: inline-block;
    width: 80px;
    height: 80px;
    background-color: #0588a6; /* Цвет из вашего сайта */
    border: none;
    border-radius: 5px; /* Немного скругленные углы для квадрата */
    text-decoration: none;
    line-height: 1.2; /* Увеличен line-height для двух строк текста */
    padding-top: 18px; /* Добавлено padding-top для центрирования текста */
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Небольшая тень */
    transition: background-color 0.3s ease, transform 0.2s ease;
}
!important.new-calculator-button:hover {
    background-color: #046c82;
    transform: scale(1.05);
}
body { /* Или более специфичный селектор, если фон применяется к конкретному элементу */
    background-image: none !important; /* Убирает любое фоновое изображение */
    background-color: #fff !important; /* Устанавливает белый фон, или какой вам нужен */
}