.slf-forms-wrap {
    max-width: 1080px;
    margin: 24px auto 32px;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    --slf-accent: #0f3a6d;
    --slf-accent-soft: #eef5ff;
    --slf-accent-border: #cddff8;
}

.slf-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.slf-tab {
    border: 1px solid #d0d7de;
    background: #fff;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    transition: all .18s ease;
}

.slf-tab.is-active {
    background: var(--slf-accent);
    border-color: var(--slf-accent);
    color: #fff;
}

.slf-form-panel {
    display: none;
}

.slf-form-panel.is-active {
    display: block;
}

.slf-form {
    border: 1px solid #d8e0e8;
    border-radius: 8px;
    padding: 22px 22px 20px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    position: relative;
}

.slf-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--slf-accent);
}

.slf-form--investment {
    --slf-accent: #0f3a6d;
    --slf-accent-soft: #eef5ff;
    --slf-accent-border: #cddff8;
}

.slf-form--training {
    --slf-accent: #7b2f00;
    --slf-accent-soft: #fff4ed;
    --slf-accent-border: #ffd4bd;
}

.slf-form--security {
    --slf-accent: #0a3d2e;
    --slf-accent-soft: #ecf9f4;
    --slf-accent-border: #bde9d8;
}

.slf-form-header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.slf-form h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.2;
    color: #0f172a;
}

.slf-form-header p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.slf-section {
    border: 1px solid var(--slf-accent-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 14px;
    background: var(--slf-accent-soft);
}

.slf-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--slf-accent);
    text-transform: uppercase;
    letter-spacing: .02em;
}

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

.slf-field {
    margin-bottom: 0;
}

.slf-col-span-2 {
    grid-column: span 2;
}

.slf-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    color: #1f2937;
}

.slf-required {
    color: #b00000;
}

.slf-field input[type="text"],
.slf-field input[type="email"],
.slf-field input[type="tel"],
.slf-field input[type="date"],
.slf-field textarea,
.slf-field select {
    width: 100%;
    border: 1px solid #c7d0db;
    border-radius: 6px;
    padding: 8px 10px;
    box-sizing: border-box;
    background: #fff;
    min-height: 40px;
    font-size: 14px;
    color: #111827;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.slf-field textarea {
    min-height: 84px;
    resize: vertical;
}

.slf-field input:focus,
.slf-field textarea:focus,
.slf-field select:focus {
    border-color: var(--slf-accent);
    box-shadow: 0 0 0 2px rgba(30, 80, 150, 0.18);
    outline: none;
}

.slf-check-group {
    display: flex;
    gap: 8px 14px;
    flex-wrap: wrap;
}

.slf-check-group label,
.slf-check-single {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 0;
    border: 1px solid #d4dbe4;
    background: #fff;
    border-radius: 6px;
    padding: 8px 10px;
}

.slf-check-group input[type="checkbox"],
.slf-check-single input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--slf-accent);
}

.slf-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
}

.slf-submit {
    background: var(--slf-accent);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.1;
    transition: background .18s ease;
}

.slf-submit:hover {
    filter: brightness(0.92);
}

.slf-notice {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

.slf-success {
    background: #edf7ed;
    border: 1px solid #8bc48a;
}

.slf-error {
    background: #fbeaea;
    border: 1px solid #dc6a6a;
}

@media (max-width: 860px) {
    .slf-fields-grid {
        grid-template-columns: 1fr;
    }

    .slf-col-span-2 {
        grid-column: span 1;
    }

    .slf-actions {
        justify-content: stretch;
    }

    .slf-submit {
        width: 100%;
    }

    .slf-check-group label,
    .slf-check-single {
        width: 100%;
    }
}
