/* WebTools Calculator */

.wtc-calculator {
    width: min( 100%, 820px );
    margin: 40px auto;
    padding: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.wtc-calculator h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.35;
}

.wtc-description {
    margin: 0 0 28px;
    color: #666666;
}

.wtc-field {
    margin-bottom: 18px;
}

.wtc-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.wtc-field input,
.wtc-field select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d8d8d8;
    border-radius: 7px;
    background: #ffffff;
    color: #222222;
    font-size: 16px;
}

.wtc-field input:focus,
.wtc-field select:focus {
    outline: 2px solid rgba(34, 34, 34, 0.12);
    border-color: #222222;
}

.wtc-button {
    width: 100%;
    min-height: 50px;
    margin-top: 5px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: #222222;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wtc-button:hover {
    background: #444444;
}

.wtc-result {
    margin-top: 28px;
    padding: 22px;
    border-radius: 10px;
    background: #f7f8fa;
}

.wtc-result:empty {
    display: none;
}

.wtc-result h3 {
    margin: 0 0 15px;
    font-size: 20px;
}

.wtc-result-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

.wtc-result-row:last-child {
    border-bottom: 0;
}

.wtc-result-label {
    color: #555555;
}

.wtc-result-value {
    font-weight: 700;
    text-align: right;
}

.wtc-error {
    color: #b42318;
    font-weight: 600;
}

@media (max-width: 600px) {
    .wtc-calculator {
        padding: 20px;
        margin: 25px auto;
    }

    .wtc-calculator h2 {
        font-size: 24px;
    }

    .wtc-result-row {
        flex-direction: column;
        gap: 3px;
    }

    .wtc-result-value {
        text-align: left;
    }
}
