.fgb-form {
    max-width: 1380px;
    margin: 24px auto 40px;
    color: #14213d;
}

.fgb-form-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.fgb-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .9fr);
    gap: 22px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 55%, #edf4ff 100%);
    border: 1px solid #d8e5f4;
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.08);
}

.fgb-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.fgb-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #2156d6;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.fgb-form-hero h2 {
    margin: 10px 0 10px;
    font-size: 40px;
    line-height: 1.04;
    font-weight: 800;
    color: #0f172a;
}

.fgb-form-hero p {
    margin: 0;
    max-width: 840px;
    color: #475467;
    font-size: 18px;
    line-height: 1.65;
}

.fgb-hero-note {
    margin-top: 14px;
    display: inline-flex;
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    border: 1px solid #dbe7f4;
    color: #385070;
    font-size: 14px;
    line-height: 1.45;
}

.fgb-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid #d8e5f4;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.fgb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #c9d9ee;
    background: #fff;
    color: #12345b;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 8px 22px rgba(20, 33, 61, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
    cursor: pointer;
}

.fgb-action-btn:hover,
.fgb-action-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(20, 33, 61, 0.10);
    border-color: #99baf0;
    color: #0f2b52;
    outline: none;
}

.fgb-action-btn-primary {
    background: linear-gradient(180deg, #1d65f2 0%, #1957d1 100%);
    border-color: #1957d1;
    color: #fff;
}

.fgb-action-btn-primary:hover,
.fgb-action-btn-primary:focus {
    color: #fff;
    border-color: #174aa9;
}

.fgb-action-btn-disabled {
    background: #f5f7fb;
    color: #7a8aa5;
    border-style: dashed;
    box-shadow: none;
    cursor: not-allowed;
}

.fgb-section {
    position: relative;
    background: #fff;
    border: 1px solid #dae4f0;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.05);
}

.fgb-form-shell {
    counter-reset: fgb-sections;
}

.fgb-section h3::before {
    counter-increment: fgb-sections;
    content: counter(fgb-sections, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-right: 10px;
    border-radius: 11px;
    background: #edf4ff;
    color: #2156d6;
    font-size: 13px;
    font-weight: 800;
    vertical-align: middle;
}

.fgb-section h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.fgb-section-title-wrap {
    margin-bottom: 18px;
}

.fgb-section-title-wrap p {
    margin: 8px 0 0;
    color: #667085;
    line-height: 1.6;
    font-size: 15px;
    max-width: 980px;
}

.fgb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.fgb-grid {
    display: grid;
    gap: 18px;
}

.fgb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.fgb-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
    border: 1px solid #e3ebf5;
}

.fgb-field-full {
    margin-top: 18px;
}

.fgb-field label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #42526b;
}

.fgb-field input,
.fgb-field select,
.fgb-field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #c8d5e6;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(16,24,40,.03);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.fgb-field textarea {
    min-height: 140px;
    resize: vertical;
}

.fgb-field input::placeholder,
.fgb-field textarea::placeholder {
    color: #98a2b3;
}

.fgb-field input:focus,
.fgb-field select:focus,
.fgb-field textarea:focus {
    outline: none;
    border-color: #2f6fed;
    box-shadow: 0 0 0 4px rgba(47,111,237,.12);
    background: #fff;
}

.fgb-field input[type="file"] {
    padding: 16px;
    border: 1px dashed #9fb7d9;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.fgb-field small {
    display: block;
    color: #667085;
    line-height: 1.55;
    font-size: 13px;
}

.fgb-vrf-card {
    border: 1px solid #dbe6f1;
    border-radius: 22px;
    padding: 22px;
    background: linear-gradient(180deg, #fcfdff 0%, #f4f8fd 100%);
    margin-bottom: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.fgb-vrf-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3ebf5;
}

.fgb-vrf-top strong {
    font-size: 16px;
    color: #0f172a;
}

.fgb-submit-row {
    position: sticky;
    bottom: 14px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.fgb-submit-button,
.fgb-add-btn {
    min-height: 52px;
    border-radius: 16px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    font-weight: 700 !important;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.fgb-submit-button {
    min-width: 220px;
}

.fgb-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 18px;
    margin: 10px auto 18px;
    max-width: 1380px;
}

.fgb-alert-success {
    background: linear-gradient(180deg, #ecfdf3 0%, #e7fbef 100%);
    border: 1px solid #abe6c3;
    color: #067647;
}

.fgb-alert strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.fgb-alert span {
    font-size: 14px;
}

.fgb-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fgb-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    background: #0f7a42;
    border: 1px solid #0f7a42;
    color: #fff;
}

.fgb-inline-btn:hover,
.fgb-inline-btn:focus {
    color: #fff;
    outline: none;
}

.fgb-inline-btn-light {
    background: #fff;
    color: #12613d;
    border-color: #b7e2c8;
}

.fgb-inline-btn-light:hover,
.fgb-inline-btn-light:focus {
    color: #12613d;
}

.fgb-admin-search {
    margin: 14px 0 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.fgb-admin-search input[type="search"] {
    min-width: 280px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #c3cde0;
}

@media (max-width: 1200px) {
    .fgb-form-hero {
        grid-template-columns: 1fr;
    }

    .fgb-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .fgb-form {
        margin-top: 14px;
    }

    .fgb-form-hero,
    .fgb-section,
    .fgb-vrf-card {
        padding: 18px;
        border-radius: 20px;
    }

    .fgb-form-hero h2 {
        font-size: 30px;
    }

    .fgb-grid-3,
    .fgb-grid-2,
    .fgb-grid-4 {
        grid-template-columns: 1fr;
    }

    .fgb-section-head,
    .fgb-alert {
        flex-direction: column;
        align-items: stretch;
    }

    .fgb-submit-row {
        position: static;
    }

    .fgb-submit-button {
        width: 100%;
    }
}
