:root {
    --background-message: #4285f4;
    --background-popup: #FFF;
    --background-box-shadow: #000;
    --color-message: #FFF;
    --color-border-popup: #000;
}

.calc__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc__label {
    font-size: 16px;
    margin: 0;
}

.calc__item-divided .calc__label {
    height: 48px;
}

.calc__item-divided {
    display: flex;
    gap: 20px;
}

.calc__item-divided .calc__item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.calc__item-divided .calc__input {
    margin: 12px 0;
}

.calc__select.select-wrapper input.select-dropdown {
    margin: 0;
}

.calc__item-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calc__item-button .btn {
    margin: 0;
    border-radius: 10px;
}

.calc__response {
    display: none;
    background: var(--background-message);
    color: var(--color-message);
    border-radius: 10px;
    padding: 20px;
}

.calc__response .calc__item {
    flex-direction: row;
    justify-content: normal;
    gap: 10px;
}

.calc__link {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: max-content;
}

.calc__message-text {
    margin: 20px 0 0 0;
}

.calc__popup {
    display: none;
    max-height: 400px;
    padding: 20px;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background-popup);
    border: 1px solid var(--color-border-popup);
    border-radius: 10px;
    z-index: 2;
}

.box-shadow {
    position: relative;
}

.box-shadow::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-box-shadow);
    opacity: .5;
    z-index: 1;
}

.invalid {
    margin: 12px 0;
    color: #F44336;
}

.calc__item input[type=text]:focus:not([readonly])+label {
    color: #F44336;
}

.application__item {
    position: relative;
}

.element-dropdown {
    position: absolute;
    max-height: 150px;
    width: 100%;
    background: #FFF;
    z-index: 1;
    overflow-y: auto;
    border: 1px solid #bdbdbd;
}

.element-dropdown__item-none {
    height: unset;
    overflow-y: auto;
    pointer-events: none;
    cursor: none;
    top: 60px;
}

.element-dropdown__item {
    padding: 10px;
    cursor: pointer;
}

.element-dropdown__item:hover {
    background: #e4e4e4;
}

.calc__item  .clue__content {
    position: relative;
    display: inline-block;
    transform: none;
}

.calc__item .clue__text {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    transform: translate(100%, -100%);
    background: #e4e4e4;
    padding: 6px 10px;
    border: 1px solid #d5d5d5;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 10;
    max-width: 350px;
    width: max-content;
    min-width: 200px;
    white-space: normal;
    word-break: break-word;
}

.clue {
    width: 18px;
    text-align: center;
    border: 1px solid #000;
    border-radius: 50%;
    cursor: pointer;
}

.clue:hover + .clue__text,
.clue__text:hover {
    display: block;
}

.calc__item[data-parent-field] {
    display: none;
}

@media (max-width: 768px) {
    .calc__item-divided {
        flex-direction: column;
    }

    .calc__item-divided .calc__item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .calc__item-divided .calc__input {
        margin: 0;
    }

    .calc__item-divided .calc__label {
        height: unset;
    }

    .calc__item .calc__label {
        font-size: 14px;
    }

    .calc__link {
        font-size: 14px;
    }

    .calc__title {
        font-size: 20px;
        font-weight: 700;
    }
}