:root {
    color-scheme: light;
    --registration-ink: #102c24;
    --registration-muted: #466258;
    --registration-green: #087355;
    --registration-line: #d6e5dd;
    --registration-fill: #f0f6f2;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body.sg-onboarding {
    min-height: 100vh;
    margin: 0;
    color: var(--registration-ink);
    background: #f8fbf9;
    font: 450 16px/1.5 Inter, system-ui, "Segoe UI", sans-serif;
}

.sg-onboarding-header { border-bottom: 1px solid #275441; background: #153a2c; }
.sg-onboarding-header :focus-visible { outline: 3px solid #bded8b; outline-offset: 4px; }
.sg-onboarding-header-inner,
.sg-registration-shell { width: min(100% - 36px, 760px); margin-inline: auto; }
.sg-onboarding-header-inner {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sg-onboarding-brand { display: inline-flex; min-width: 0; align-items: center; }
.sg-onboarding-brand img {
    display: block;
    width: clamp(122px, 27vw, 176px);
    max-width: 100%;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}
.sg-onboarding-home {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #eff9ed;
    font-size: .89rem;
    font-weight: 690;
    text-decoration: none;
    text-align: right;
}

.sg-registration-shell { padding-block: clamp(26px, 6vw, 68px) 36px; }
.sg-registration-eyebrow {
    margin: 0 0 6px;
    color: var(--registration-green);
    font-size: .78rem;
    font-weight: 790;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.sg-registration-head h1 {
    margin: 0;
    max-width: 20ch;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 770;
    line-height: 1.03;
    letter-spacing: -.055em;
}
.sg-registration-progress {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    margin: 19px 0 24px;
}
.sg-registration-progress span { height: 5px; border-radius: 8px; background: #e0ebe3; }
.sg-registration-progress :is(.is-current, .is-complete) { background: #208564; }
.sg-registration-progress .is-current { background: linear-gradient(90deg, #087355, #79b733); }

.sg-registration-step { min-width: 0; }
.sg-registration-step h2 {
    margin: 0 0 11px;
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -.02em;
}
.sg-registration:not([data-enhanced]) .sg-registration-step { margin-top: 24px; }
.sg-registration[data-enhanced] .sg-registration-step:not([hidden]) {
    animation: sg-registration-step-in .2s ease-out both;
}
.sg-registration[data-direction="back"] { --registration-step-shift: -7px; }
@keyframes sg-registration-step-in {
    from { opacity: 0; transform: translateX(var(--registration-step-shift, 7px)); }
    to { opacity: 1; transform: none; }
}

.sg-registration-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.sg-registration-wide { grid-column: 1 / -1; }
.sg-registration-postal { width: min(100%, 220px); }
.sg-registration-location-fields { margin-top: 8px; }
.sg-registration-field {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
}
.sg-registration-field label { font-size: .89rem; font-weight: 740; }
.sg-registration-field label small {
    color: var(--registration-muted);
    font-size: .79rem;
    font-weight: 580;
}
.sg-registration-field input {
    width: 100%;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid #cdded3;
    border-radius: 9px;
    background: #fff;
    color: var(--registration-ink);
    font: inherit;
    font-size: 1rem;
}
.sg-registration-field input[readonly] {
    border-color: transparent;
    background: var(--registration-fill);
}
.sg-registration-field input::placeholder { color: #576c63; }
.sg-registration-field input:focus {
    outline: 2px solid var(--registration-green);
    outline-offset: 2px;
}

.sg-registration-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.sg-registration-actions > :last-child { margin-left: auto; }
.sg-registration-file-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}
.sg-registration-file-defer {
    min-height: 44px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--registration-muted);
    background: transparent;
    font: inherit;
    font-size: .85rem;
    font-weight: 680;
    text-decoration: underline;
    text-underline-offset: .17em;
    cursor: pointer;
}
.sg-registration-file-defer:hover,
.sg-registration-file-defer[aria-pressed="true"] {
    border-color: var(--registration-line);
    color: var(--registration-ink);
    background: var(--registration-fill);
}
button[data-registration-file-next][aria-disabled="true"] {
    color: #fff;
    background: #327e67;
    cursor: pointer;
}
button[data-registration-file-next][aria-disabled="true"]:hover {
    background: #276b56;
}
.sg-registration-file-status:not(:empty) { margin-top: 10px; }
.sg-registration-deferred {
    margin-bottom: 13px;
    padding-block: 4px 9px;
    border-bottom: 1px solid var(--registration-line);
    font-size: .9rem;
}
.sg-registration-deferred ul { margin: 4px 0; padding-inline-start: 20px; }
.sg-registration-deferred p { margin: 5px 0 0; color: var(--registration-muted); }

.sg-registration-button {
    display: inline-flex;
    min-height: 46px;
    min-width: 104px;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    background: var(--registration-green);
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-size: .91rem;
    font-weight: 780;
    line-height: 1.2;
    cursor: pointer;
}
.sg-registration-button:hover { background: #075f49; }
.sg-registration-button:disabled { opacity: .68; cursor: wait; }
.sg-registration-button-secondary { color: var(--registration-green); background: transparent; }
.sg-registration-button-secondary:hover { background: var(--registration-fill); }
.sg-onboarding :focus-visible { outline: 3px solid var(--registration-green); outline-offset: 4px; }

.sg-registration-note,
.sg-registration-step-copy,
.sg-registration-handoff,
.sg-registration-document-content > p:not(.sg-registration-status):not(.sg-registration-field-error) {
    margin: 0;
    color: var(--registration-muted);
    font-size: .92rem;
}
.sg-registration-step > .sg-registration-step-copy { margin-bottom: 11px; }
.sg-registration-field .sg-registration-step-copy { margin-top: 2px; }
.sg-registration-note strong { display: block; color: var(--registration-ink); }
.sg-registration-note p { margin: 3px 0 0; }

.sg-registration-status { margin: 0; font-size: .84rem; }
.sg-registration-status[data-state="error"], .sg-registration-field-error { color: #9a2721; }
.sg-registration-status[data-state="success"] { color: var(--registration-green); }
.sg-registration-field-error { margin: 1px 0 0; font-size: .84rem; font-weight: 650; }
.sg-registration-field [aria-invalid="true"]:not([type="checkbox"]) {
    border-color: #bb382f;
    background-color: #fff8f6;
}
.sg-registration-errors {
    margin-bottom: 15px;
    padding-block: 7px;
    color: #8b231d;
    font-size: .91rem;
}
.sg-registration-errors p { margin: 3px 0 0; }

.sg-registration-documents { margin-top: 15px; }
.sg-registration-file-pane {
    padding-block: 16px 5px;
    border-top: 1px solid var(--registration-line);
}
.sg-registration-document {
    display: grid;
    grid-template-columns: clamp(68px, 14vw, 120px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(12px, 3vw, 23px);
    min-width: 0;
}
.sg-registration-document-art {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    background: url("registration-documents.webp") 0 0 / 200% 200% no-repeat;
}
.sg-registration-document-art[data-art="frente"] { background-position: 100% 0; }
.sg-registration-document-art[data-art="verso"] { background-position: 0 100%; }
.sg-registration-document-art[data-art="digital"] { background-position: 100% 100%; }
.sg-registration-file-warning {
    margin: 11px 0 0;
    padding: 8px 11px;
    border-inline-start: 3px solid #b76e2c;
    border-radius: 4px;
    color: #713917;
    background: #fff2df;
    font-size: .89rem;
    font-weight: 620;
}
.sg-registration-file-pane.is-attachment-alert [data-registration-file-guidance] {
    color: #713917;
    font-weight: 690;
}
.sg-registration-file-pane.is-attachment-alert .sg-registration-format {
    border-color: #c9a37d;
}
.sg-registration-file-pane.is-attachment-alert .sg-registration-document-art {
    animation: sg-registration-attachment-shake .42s ease-in-out;
}
@keyframes sg-registration-attachment-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-4px) rotate(-2deg); }
    40% { transform: translateX(4px) rotate(2deg); }
    60% { transform: translateX(-3px) rotate(-1deg); }
    80% { transform: translateX(2px) rotate(1deg); }
}
.sg-registration-document h3,
.sg-registration-file-heading { margin: 0 0 5px; font-size: 1.16rem; font-weight: 760; }
.sg-registration-format-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}
.sg-registration-format {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 75px;
    padding: 8px 11px;
    column-gap: 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--registration-ink);
    background: var(--registration-fill);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sg-registration-format:hover,
.sg-registration-format[aria-pressed="true"] { border-color: #8ebba7; background: #e5f1e9; }
.sg-registration-format strong,
.sg-registration-format small { display: block; }
.sg-registration-format small { color: var(--registration-muted); font-size: .8rem; line-height: 1.35; }
.sg-registration-format > :last-child { color: var(--registration-green); font-weight: 700; }
.sg-registration-document-content { min-width: 0; }
.sg-registration-document-options, .sg-registration-document-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: 7px;
}
.sg-registration-document-button,
.sg-registration-document-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--registration-green);
    background: transparent;
    font: inherit;
    font-size: .89rem;
    font-weight: 730;
    line-height: 1.25;
    cursor: pointer;
}
.sg-registration-document-button {
    padding: 6px 11px;
    border-radius: 7px;
    background: #e9f3ec;
}
.sg-registration-document-button:hover { background: #dfeee3; }
.sg-registration-document-link { padding: 2px 3px; text-decoration: underline; text-underline-offset: .16em; }

.sg-registration-step h2 small {
    color: var(--registration-muted);
    font-size: .69em;
    font-weight: 590;
}
.sg-registration-document-consent {
    margin-bottom: 13px;
    padding: 10px 0 7px;
    border-bottom: 1px solid var(--registration-line);
}
.sg-registration-document-consent .sg-registration-consent { min-height: 0; }
.sg-registration-document-consent .sg-registration-step-copy { margin-top: 5px; }

.sg-registration-draft {
    margin-top: 12px;
    padding-block: 2px 8px;
    border-bottom: 1px solid var(--registration-line);
}
.sg-registration-draft-top,
.sg-registration-draft-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.sg-registration-draft-top { justify-content: space-between; gap: 0 12px; }
.sg-registration-draft-help { margin: 0; color: var(--registration-muted); font-size: .85rem; }
.sg-registration-draft-actions { gap: 0 10px; }
.sg-registration-draft-actions button:disabled { opacity: .58; cursor: not-allowed; }
.sg-registration-draft-status:not(:empty) { margin-block: 3px 5px; }
.sg-registration-document-preview {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    margin-top: 8px;
}
.sg-registration-document-preview .sg-registration-document-tools { flex: 1 1 155px; margin-top: 0; }
.sg-registration-document-thumbnail,
.sg-registration-thumbnail-fallback {
    width: 84px;
    height: 96px;
    flex: 0 0 84px;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--registration-line);
    border-radius: 7px;
    background: #fff;
}
.sg-registration-document-thumbnail { display: block; object-fit: contain; }
.sg-registration-thumbnail-fallback {
    display: grid;
    place-items: center;
    color: var(--registration-muted);
    font-size: .76rem;
    text-align: center;
}
.sg-registration-handoff { margin-top: 15px; }
.sg-registration-handoff p { margin: 0; }

.sg-registration-summary {
    display: grid;
    gap: 4px;
    margin: 0 0 15px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--registration-line);
    font-size: .91rem;
}
.sg-registration-summary div { display: grid; grid-template-columns: 83px minmax(0, 1fr); gap: 8px; }
.sg-registration-summary dt { color: var(--registration-muted); font-weight: 700; }
.sg-registration-summary dd { margin: 0; overflow-wrap: anywhere; }

.sg-registration-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 44px;
    margin-top: 9px;
    font-size: .89rem;
    line-height: 1.47;
    cursor: pointer;
}
.sg-registration-consent input {
    width: 18px;
    height: 18px;
    margin: .12em 0 0;
    accent-color: var(--registration-green);
}
.sg-registration-consent a { color: var(--registration-green); font-weight: 720; text-underline-offset: .16em; }
.sg-registration-success { display: grid; gap: 11px; margin-top: 14px; }
.sg-registration-success > p { margin: 0; color: var(--registration-muted); }

.sg-registration-privacy {
    margin-top: 16px;
    border-top: 1px solid var(--registration-line);
    color: var(--registration-muted);
    font-size: .89rem;
}
.sg-registration-privacy > summary {
    width: fit-content;
    min-height: 44px;
    padding-block: 11px;
    color: var(--registration-green);
    font-weight: 700;
    cursor: pointer;
}
.sg-registration-privacy fieldset {
    min-inline-size: 0;
    margin: 0;
    padding: 10px 12px 12px;
    border: 1px solid var(--registration-line);
    border-radius: 10px;
    background: var(--registration-fill);
}
.sg-registration-privacy legend { padding-inline: 5px; color: var(--registration-ink); font-weight: 690; }
.sg-registration-privacy p { margin: 0 0 9px; }
.sg-registration-privacy button {
    min-height: 44px;
    margin-inline-end: 5px;
    padding: 5px 11px;
    border: 1px solid var(--registration-green);
    border-radius: 8px;
    background: #fff;
    color: var(--registration-green);
    font: inherit;
    font-weight: 690;
    cursor: pointer;
}
.sg-registration-privacy button[aria-pressed="true"] { background: var(--registration-green); color: #fff; }
.sg-registration-privacy a {
    display: inline-block;
    padding-block: 10px;
    color: var(--registration-green);
    font-weight: 690;
    text-underline-offset: .16em;
}


@media (max-width: 560px) {
    .sg-onboarding-header-inner, .sg-registration-shell { width: calc(100% - 32px); }
    .sg-registration-fields, .sg-registration-format-options { grid-template-columns: minmax(0, 1fr); }
    .sg-registration-postal { width: min(100%, 240px); }
    .sg-registration-actions { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .sg-registration[data-enhanced] .sg-registration-step:not([hidden]),
    .sg-registration-file-pane.is-attachment-alert .sg-registration-document-art { animation: none; }
}


.sg-registration-whatsapp-field { width: min(100%, 285px); }
.sg-registration-options .sg-registration-option-actions {
    justify-content: flex-start;
    gap: 8px 10px;
}
.sg-registration-options .sg-registration-option-actions > :last-child { margin-left: 0; }
.sg-registration-options .sg-registration-button { text-align: center; }
.sg-registration-options .sg-registration-pending { margin-block: 12px 0; }
.sg-registration-pending ul { margin: 4px 0 11px; padding-inline-start: 20px; }
.sg-registration-pending ul:last-child { margin-block-end: 0; }
.sg-registration-alternate { margin: 13px 0 0; }
.sg-registration-options .sg-registration-save-status:not(:empty) { margin-block-start: 11px; }
.sg-registration-save-status { margin: 0 0 12px; color: var(--registration-green); }
.sg-registration-save-status:empty { display: none; }
.sg-registration-save-status[data-state="error"] { color: #a12222; }
.sg-registration-progress .is-complete { position: relative; }
.sg-registration-progress .is-complete::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #0b6246;
    border-radius: 50%;
    background: #e9f7ee;
    color: #0b6246;
    content: "✓";
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    transform: translate(-50%, -50%);
}
