.astrow-roi {
    --astrow-primary: #e86e11;
    --astrow-success: #28a745;
    --astrow-danger: #dc3545;
    --astrow-text: #1a1a1a;
    --astrow-muted: #666;
    --astrow-border: #e9e9e9;
    --astrow-soft: #f9f9f9;

    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 24px;
    font-family: Inter, Arial, sans-serif;
    background: #fff;
    border: 1px solid var(--astrow-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.astrow-roi,
.astrow-roi * {
    box-sizing: border-box;
}

.astrow-roi__title {
    margin: 0 0 12px;
    color: var(--astrow-text);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.astrow-roi__subtitle {
    margin: 0 0 20px;
    color: var(--astrow-muted);
    font-size: 15px;
}

.astrow-roi__layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.astrow-roi__form {
    flex: 1;
    min-width: 280px;
}

.astrow-roi__results {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.astrow-roi__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.astrow-roi__field label {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.astrow-roi__field input {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
}

.astrow-roi__info {
    position: relative;
    width: 18px;
    height: 18px;
    margin-left: 5px;
    padding: 0;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    background: #eee;
    border: 0;
    border-radius: 50%;
}

.astrow-roi__tooltip {
    position: absolute;
    z-index: 20;
    max-width: 230px;
    padding: 7px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    background: #333;
    border-radius: 6px;
    transform: translateY(6px);
}

.astrow-roi__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.astrow-roi__button {
    padding: 10px 14px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.astrow-roi__button:hover {
    background: #f7f7f7;
}

.astrow-roi__button--primary {
    color: #fff;
    background: var(--astrow-primary);
    border-color: var(--astrow-primary);
}

.astrow-roi__button--primary:hover {
    color: #fff;
    background: #d7610d;
    border-color: #d7610d;
}

.astrow-roi__chart {
    width: 100%;
    height: 400px;
    padding: 16px;
    background: var(--astrow-soft);
    border: 1px solid #eee;
    border-radius: 12px;
}

.astrow-roi__cards {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.astrow-roi__card {
    flex: 1;
    padding: 16px;
    color: #fff;
    text-align: center;
    background: var(--astrow-success);
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .05);
}

.astrow-roi__card-label {
    font-size: 13px;
    font-weight: 600;
}

.astrow-roi__card-value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
}

.astrow-roi__card-note {
    margin-top: 6px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .astrow-roi__layout {
        flex-direction: column;
    }

    .astrow-roi__form,
    .astrow-roi__results {
        width: 100%;
    }

    .astrow-roi__chart {
        height: 300px;
    }

    .astrow-roi__cards {
        flex-direction: column;
    }
}
