.sgm-form-shell {
    --sgm-bg: linear-gradient(140deg, #f7fbff 0%, #eef8f4 45%, #fff9ef 100%);
    --sgm-card: #ffffff;
    --sgm-text: #192028;
    --sgm-muted: #5e6672;
    --sgm-accent: #0f8a73;
    --sgm-accent-soft: #d8f4ec;
    --sgm-danger: #b42318;
    --sgm-border: #d9e1e8;
    --sgm-shadow: 0 18px 40px rgba(14, 45, 71, 0.12);
    font-family: "Outfit", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--sgm-text);
    background: var(--sgm-bg);
    padding: 24px;
    border-radius: 18px;
    margin: 22px 0;
}

.sgm-form-card {
    max-width: 920px;
    margin: 0 auto;
    background: var(--sgm-card);
    border: 1px solid var(--sgm-border);
    border-radius: 16px;
    box-shadow: var(--sgm-shadow);
    overflow: hidden;
}

.sgm-form-hero {
    background: linear-gradient(130deg, #f2fbff 0%, #f9f5e7 100%);
    padding: 28px 26px 20px;
    border-bottom: 1px solid var(--sgm-border);
}

.sgm-form-kicker {
    margin: 0 0 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: #38657f;
}

.sgm-form-hero h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.sgm-form-hero p {
    margin: 12px 0 0;
    color: var(--sgm-muted);
}

.sgm-empowering-form {
    padding: 24px;
}

.sgm-event-intro {
    margin: 20px 24px 0;
    padding: 16px;
    border-radius: 12px;
    background: #f3f8ff;
    border: 1px solid #d5e4f8;
    color: #223247;
}

.sgm-event-intro p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.sgm-event-intro ul {
    margin: 0 0 12px 18px;
    padding: 0;
}

.sgm-event-intro li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.sgm-event-intro a {
    color: #0c5c98;
    font-weight: 600;
    text-decoration: none;
}

.sgm-event-intro a:hover {
    text-decoration: underline;
}

.sgm-form-stepper {
    border-top: 1px dashed #d9e1e8;
    padding-top: 16px;
}

.sgm-stepper-top {
    margin: 0 0 14px;
}

.sgm-stepper-status {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1a3d55;
}

.sgm-stepper-track {
    height: 8px;
    border-radius: 999px;
    background: #e5edf3;
    overflow: hidden;
}

.sgm-stepper-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(120deg, #1f7090 0%, #0aa97c 100%);
    transition: width 0.25s ease;
}

.sgm-step {
    display: none;
}

.sgm-step.is-active {
    display: block;
}

.sgm-empowering-form fieldset {
    border: 1px solid var(--sgm-border);
    border-radius: 12px;
    padding: 18px 16px 6px;
    margin: 0 0 16px;
}

.sgm-empowering-form legend {
    font-size: 16px;
    font-weight: 700;
    color: #10364a;
    padding: 0 8px;
}

.sgm-empowering-form label {
    display: block;
    margin: 0 0 14px;
    font-weight: 600;
}

.sgm-empowering-form input[type="text"],
.sgm-empowering-form input[type="number"],
.sgm-empowering-form input[type="email"] {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #c5d2de;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    color: #0f2f47 !important;
    font-weight: 600;
    background: #fff;
    -webkit-text-fill-color: #0f2f47 !important;
    opacity: 1 !important;
    caret-color: #0f2f47;
}

.sgm-empowering-form input[type="text"]::placeholder,
.sgm-empowering-form input[type="number"]::placeholder,
.sgm-empowering-form input[type="email"]::placeholder {
    color: #8aa0b3 !important;
    font-weight: 500;
    opacity: 1;
}

.sgm-empowering-form input[type="text"]:-webkit-autofill,
.sgm-empowering-form input[type="number"]:-webkit-autofill,
.sgm-empowering-form input[type="email"]:-webkit-autofill {
    -webkit-text-fill-color: #0f2f47 !important;
}

.sgm-empowering-form input[type="text"]:focus,
.sgm-empowering-form input[type="number"]:focus,
.sgm-empowering-form input[type="email"]:focus {
    color: #0f2f47 !important;
    -webkit-text-fill-color: #0f2f47 !important;
}

.sgm-empowering-form input:focus {
    outline: 2px solid transparent;
    border-color: var(--sgm-accent);
    box-shadow: 0 0 0 3px rgba(15, 138, 115, 0.2);
}

.sgm-group p {
    margin: 0 0 10px;
    font-weight: 600;
    color: #23384a;
}

.sgm-empowering-form .sgm-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 8px;
    font-weight: 500;
}

.sgm-empowering-form .sgm-choice input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
}

.sgm-empowering-form .sgm-choice span {
    display: inline-block;
    line-height: 1.5;
    margin-top: 0;
}

.sgm-inline-input input {
    margin-top: 8px;
}

.sgm-empowering-form .sgm-consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    font-weight: 500;
    width: 100%;
    min-width: 0;
}

.sgm-empowering-form .sgm-consent input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 3px 0 0;
}

.sgm-consent-text {
    display: block;
    line-height: 1.55;
    color: #1e3145;
    min-width: 0;
    overflow-wrap: anywhere;
}

.sgm-legal-ref,
.sgm-required {
    font-weight: 700;
}

.sgm-rodo-inline {
    margin: 0 0 14px;
    font-size: 13px;
    color: #425a70;
}

.sgm-rodo-link {
    display: inline;
    color: #0c5c98;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
    cursor: pointer;
}

.sgm-rodo-link:hover {
    color: #0a4c7d;
}

.sgm-rodo-link:focus-visible {
    outline: 2px solid rgba(12, 92, 152, 0.35);
    outline-offset: 2px;
    border-radius: 2px;
}

.sgm-rodo-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.sgm-rodo-modal[hidden] {
    display: none !important;
}

.sgm-rodo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 27, 39, 0.55);
    z-index: 100000;
}

.sgm-rodo-backdrop[hidden] {
    display: none !important;
}

.sgm-rodo-modal__panel {
    width: min(860px, 100%);
    max-height: 86vh;
    background: #fff;
    border: 1px solid #d4e0eb;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(10, 24, 42, 0.28);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sgm-rodo-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sgm-rodo-modal__head h3 {
    margin: 0;
    font-size: 20px;
    color: #173550;
}

.sgm-rodo-modal .sgm-rodo-note {
    margin: 0;
    max-height: 60vh;
    overflow: auto;
}

.sgm-rodo-close-simple {
    align-self: flex-end;
    border: 1px solid #c7d5e2;
    background: #f5f8fb;
    color: #2a4660;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    cursor: pointer;
}

.sgm-rodo-close-simple:hover {
    background: #ebf1f6;
}

.sgm-rodo-close-simple:focus-visible {
    outline: 2px solid rgba(12, 92, 152, 0.35);
    outline-offset: 2px;
}

.sgm-rodo-note {
    margin: 0 0 14px;
    padding: 12px;
    border-radius: 10px;
    background: var(--sgm-accent-soft);
    color: #18403a;
    line-height: 1.5;
}

.sgm-rodo-note p {
    margin: 0 0 10px;
    font-size: 14px;
}

.sgm-rodo-note p:last-child {
    margin-bottom: 0;
}

.sgm-form-nav {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 12px;
}

.sgm-btn {
    border: 0;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sgm-btn-primary {
    background: linear-gradient(120deg, #12735f 0%, #0a9878 100%);
    color: #fff;
}

.sgm-btn-ghost {
    background: #f0f4f8;
    color: #264057;
    border: 1px solid #c8d7e4;
}

.sgm-btn[hidden] {
    display: none;
}

.sgm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(12, 119, 95, 0.22);
}

.sgm-btn:focus-visible {
    outline: 3px solid rgba(13, 128, 103, 0.35);
    outline-offset: 2px;
}

.sgm-notice {
    margin: 18px 24px 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.sgm-notice-success {
    background: #ebfaf0;
    color: #12603c;
    border: 1px solid #92d9ad;
}

.sgm-notice-error {
    background: #fff4f2;
    color: var(--sgm-danger);
    border: 1px solid #f3b5ad;
}

.sgm-submitted-state {
    margin: 18px 24px 24px;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid #9ed8b6;
    background: #eaf9f0;
    color: #12553a;
}

.sgm-submitted-state h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.sgm-submitted-state p {
    margin: 0;
    line-height: 1.6;
    font-weight: 600;
}

.sgm-honeypot {
    position: absolute;
    left: -9999px;
}

@media (max-width: 768px) {
    .sgm-form-shell {
        padding: 12px;
        border-radius: 12px;
    }

    .sgm-form-hero {
        padding: 18px 16px 14px;
    }

    .sgm-form-hero h2 {
        font-size: 24px;
    }

    .sgm-empowering-form {
        padding: 14px;
    }

    .sgm-event-intro {
        margin: 14px 14px 0;
        padding: 12px;
    }

    .sgm-submitted-state {
        margin: 14px;
    }

    .sgm-form-nav {
        flex-direction: column;
    }

    .sgm-rodo-modal {
        padding: 10px;
    }

    .sgm-rodo-modal__panel {
        max-height: 90vh;
        padding: 12px;
    }
}
