/* Стили для кнопки вызова калькулятора */
#openCalcBtn {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #ed6a99; /* Розовый цвет, можно изменить */
    color: white;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#openCalcBtn:hover {
    background-color: #ea5a8c;
}

/* Фон модального окна (затемнение) */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999; /* Поверх всех элементов */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный фон */
    backdrop-filter: blur(3px); /* Легкое размытие фона */
}

/* Само модальное окно */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px; /* Максимальная ширина окна */
    height: 80vh; /*!* Высота окна - 80% от высоты экрана *!*/

    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Кнопка закрытия (крестик) */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    text-decoration: none;
}

/* Стили для встроенной формы (заменяют iframe) */
.calc-form-container {
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: Arial, sans-serif;
    overflow-y: auto; /* Добавлена прокрутка для небольших экранов */
}

.calc-input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.calc-input-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.calc-input-group span.optional {
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.calc-input-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#calcResultBtn {
    background-color: #ed6a99;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

#calcResultBtn:hover {
    background-color: #ea5a8c;
}

#calcResultDisplay {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    min-height: 25px;
    line-height: 1.4;
}
