.tool-section {
    margin: 0 auto 32px;
}

.tool-section .tool-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 28px;
}

.tool-section .tool-form {
    display: grid;
    gap: 20px;
}

.tool-section label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(238, 238, 245, 0.42);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-section textarea,
.tool-section input,
.tool-section select {
    width: 100%;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
}

.tool-section textarea,
.tool-section input {
    padding: 10px 14px;
}

.tool-section input,
.tool-section select {
    min-height: 42px;
}

.tool-section select {
    padding: 10px 42px 10px 14px;
}

.tool-section input[type="date"]::-webkit-calendar-picker-indicator,
.tool-section input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(0.45);
    cursor: pointer;
}

.tool-section .checkbox-label,
.tool-section .switch-label {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    color: rgba(238, 238, 245, 0.62);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

.tool-section .checkbox-input,
.tool-section .switch-input {
    display: none;
}

.tool-section .checkbox-box {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    transition: border-color 0.15s, background 0.15s;
}

.tool-section .checkbox-box::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent);
    transform: scale(0);
    transition: transform 0.15s;
}

.tool-section .checkbox-input:checked + .checkbox-box {
    border-color: var(--accent);
    background: rgba(91, 141, 239, 0.12);
}

.tool-section .checkbox-input:checked + .checkbox-box::after {
    transform: scale(1);
}

.tool-section .switch-slider {
    width: 42px;
    height: 24px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s;
}

.tool-section .switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.tool-section .switch-input:checked + .switch-slider {
    background: var(--accent);
}

.tool-section .switch-input:checked + .switch-slider::before {
    transform: translateX(18px);
}

.tool-section button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.tool-section button:hover {
    background: var(--accent-hover);
}

.tool-section .tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-section .tool-result {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

.tool-section .result-panel {
    margin-top: 24px;
    padding: 28px;
    background: rgba(91, 141, 239, 0.07);
    border: 1px solid rgba(91, 141, 239, 0.18);
    border-radius: 10px;
    text-align: center;
}

.tool-section .result-main {
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
}

.tool-section .result-label {
    color: rgba(91, 141, 239, 0.65);
    font-size: 14px;
    font-weight: 500;
}

.tool-section .result-breakdown {
    display: flex;
    gap: 0;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(91, 141, 239, 0.15);
}

.tool-section .result-breakdown div {
    flex: 1;
    text-align: center;
}

.tool-section .result-breakdown div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.tool-section .result-breakdown strong {
    display: block;
    color: var(--text-color);
    font-size: 20px;
    line-height: 1.1;
}

.tool-section .result-breakdown span {
    display: block;
    margin-top: 2px;
    color: var(--muted-soft);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 560px) {
    .tool-section .tool-card {
        padding: 20px;
    }

    .tool-section .tool-form > div {
        grid-template-columns: 1fr !important;
    }

    .tool-section .result-main {
        font-size: 48px;
    }
}
