.ivf-widget {
    --ivf-bg: #f7f4ee;
    --ivf-card: #ffffff;
    --ivf-accent: #0d6b5e;
    --ivf-accent-dark: #094d44;
    --ivf-text: #1f2a2d;
    --ivf-muted: #5f6d70;
    --ivf-border: #d8dfdd;
    font-family: "Avenir Next", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(155deg, #efe8dc 0%, #f8f6f2 42%, #eef7f5 100%);
    border: 1px solid #d9d5cb;
    border-radius: 16px;
    color: var(--ivf-text);
    padding: 24px;
    box-shadow: 0 10px 30px rgba(22, 30, 29, 0.08);
}

.ivf-widget h2 {
    margin: 0 0 8px 0;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}

.ivf-widget p {
    margin: 0;
}

.ivf-widget__subtitle {
    color: var(--ivf-muted);
    margin-bottom: 14px;
}

.ivf-widget__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ivf-widget__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ivf-widget__field--full {
    grid-column: 1 / -1;
}

.ivf-widget label {
    font-size: 0.88rem;
    color: var(--ivf-muted);
    font-weight: 600;
}

.ivf-widget input,
.ivf-widget select {
    border: 1px solid var(--ivf-border);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 0.98rem;
    color: var(--ivf-text);
    background: var(--ivf-card);
}

.ivf-widget input:focus,
.ivf-widget select:focus {
    border-color: var(--ivf-accent);
    box-shadow: 0 0 0 3px rgba(13, 107, 94, 0.18);
    outline: none;
}

.ivf-widget__actions {
    margin-top: 18px;
}

.ivf-widget button {
    background: linear-gradient(135deg, var(--ivf-accent) 0%, var(--ivf-accent-dark) 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 14px;
    width: 100%;
}

.ivf-widget button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.ivf-widget__results,
.ivf-widget__error {
    margin-top: 16px;
    border-radius: 12px;
    padding: 14px;
}

.ivf-widget__results {
    background: #ecf8f4;
    border: 1px solid #c8e9df;
}

.ivf-widget__error {
    background: #fff0f0;
    border: 1px solid #f4c2c2;
    color: #8d2626;
}

.ivf-widget__main-result {
    font-size: 2rem;
    font-weight: 700;
    color: #0c5d53;
    margin-bottom: 8px;
}

.ivf-widget__meta {
    color: var(--ivf-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 740px) {
    .ivf-widget {
        padding: 18px;
    }

    .ivf-widget__grid {
        grid-template-columns: 1fr;
    }
}
