:root {
    --blue: #2f86d6;
    --blue-dark: #1f68a6;
    --green: #18aa3e;
    --green-dark: #0d8f31;
    --teal: #00785f;
    --text: #3a3f45;
    --muted: #838c95;
    --line: #d9dde2;
    --field: #f9fafb;
    --page: #f5f5f5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 13px;
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.registration-header {
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.registration-header-inner {
    width: min(1100px, calc(100% - 32px));
    min-height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.registration-brand {
    display: inline-grid;
    grid-template-columns: 132px 1px 250px;
    align-items: center;
    gap: 0.95rem;
    color: var(--teal);
}

.brand-sbot {
    display: flex;
    align-items: center;
}

.brand-sbot-image {
    display: block;
    width: 126px;
    max-width: 100%;
    height: auto;
}

.brand-sbot strong,
.brand-sbot small,
.brand-event strong,
.brand-event span,
.brand-event small {
    display: block;
    line-height: 1.05;
    letter-spacing: 0;
}

.brand-sbot strong {
    font-size: 1.52rem;
    font-weight: 800;
}

.brand-sbot small {
    margin-top: 0.18rem;
    font-size: 0.34rem;
    font-weight: 800;
    text-transform: uppercase;
}

.brand-sbot small span:not(:last-child) {
    color: #151515;
}

.brand-sbot small span:last-child {
    color: var(--teal);
}

.brand-divider {
    width: 1px;
    height: 38px;
    background: rgba(0, 120, 95, 0.24);
}

.brand-event strong {
    font-size: 0.95rem;
    font-weight: 800;
}

.brand-event span {
    margin-top: 0.18rem;
    font-size: 0.88rem;
    font-weight: 800;
}

.brand-event small {
    margin-top: 0.22rem;
    color: #54736e;
    font-size: 0.44rem;
    font-weight: 700;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.language-switcher button {
    width: 32px;
    height: 32px;
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button.is-active {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 120, 95, 0.18);
    outline: none;
    transform: translateY(-1px);
}

.language-switcher .flag-us {
    background: repeating-linear-gradient(180deg, #b22234 0 3px, #ffffff 3px 6px);
}

.flag-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 16px;
    background: #3c3b6e;
}

.language-switcher .flag-br {
    background: #229d45;
}

.flag-br::before,
.flag-br::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flag-br::before {
    width: 18px;
    height: 18px;
    background: #f7d447;
    transform: translate(-50%, -50%) rotate(45deg);
}

.flag-br::after {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #1d4fa3;
}

.registration-page {
    width: min(1060px, calc(100% - 32px));
    margin: 12px auto 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.registration-card {
    background: #ffffff;
    border: 1px solid var(--line);
}

.card-title {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line);
    background: #f8f8f8;
    color: var(--blue);
    text-transform: uppercase;
}

.title-icon {
    width: 28px;
    height: 28px;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
}

.title-icon-signup::before,
.title-icon-signup::after {
    content: '';
    position: absolute;
}

.title-icon-signup::before {
    left: 8px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.title-icon-signup::after {
    left: 3px;
    bottom: 4px;
    width: 18px;
    height: 12px;
    border-radius: 10px 10px 3px 3px;
    background: currentColor;
}

.title-icon-login::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 6px;
    width: 18px;
    height: 16px;
    border: 4px solid currentColor;
    border-left: 0;
}

.title-icon-login::after {
    content: '>';
    position: absolute;
    left: 0;
    top: -1px;
    color: currentColor;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.card-title h1,
.card-title h2 {
    margin: 0;
    font-size: 1.32rem;
    font-weight: 700;
    line-height: 1.1;
}

.card-title-green {
    color: var(--green);
}

.registration-form,
.login-form {
    padding: 0.6rem 1.25rem 0.85rem;
}

.registration-form label,
.login-form label {
    display: block;
    margin-bottom: 0.48rem;
}

.registration-form label > span:first-child,
.login-form label > span:first-child {
    display: block;
    margin-bottom: 0.22rem;
    color: #3b3f44;
    font-weight: 700;
}

.registration-form input,
.registration-form select,
.login-form input {
    width: 100%;
    min-height: 28px;
    padding: 0.28rem 0.65rem;
    border: 1px solid #d9dde2;
    border-radius: 2px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
}

.registration-form input::placeholder,
.login-form input::placeholder {
    color: #aab1b8;
}

.registration-form input:focus,
.registration-form select:focus,
.login-form input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 134, 214, 0.13);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.coupon-area {
    margin-top: 0.2rem;
}

.coupon-area > span {
    display: block;
    margin-bottom: 0.22rem;
    font-weight: 700;
}

.coupon-row {
    display: grid;
    grid-template-columns: 1fr 176px;
}

.coupon-row input {
    border-right: 0;
}

.coupon-row button {
    min-height: 32px;
    border: 0;
    color: #ffffff;
    background: #02aaa3;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.coupon-row button::after {
    content: '';
    width: 11px;
    height: 11px;
    margin-left: 0.55rem;
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 5px 5px 0 -3px currentColor;
    vertical-align: -1px;
}

.privacy-options {
    margin: 0.75rem 0 0.42rem;
    padding: 0.55rem 0 0.45rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid #e7e8eb;
    border-bottom: 1px solid #e7e8eb;
}

.privacy-option {
    margin: 0;
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

.privacy-option input {
    width: 15px;
    min-height: 15px;
    margin: 0.12rem 0 0;
    padding: 0;
}

.privacy-yes span {
    color: #39a151;
}

.privacy-no span {
    color: #e05353;
}

.learn-more {
    display: block;
    width: max-content;
    margin: 0.1rem auto 0.65rem;
    color: #487eb9;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.required-note {
    margin: 0 0 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid #e7e8eb;
    color: #60676f;
    font-weight: 600;
}

.continue-button,
.login-actions button {
    min-height: 38px;
    border: 0;
    border-radius: 2px;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.continue-button {
    width: 300px;
    max-width: 100%;
    background: var(--blue);
}

.continue-button:hover {
    background: var(--blue-dark);
}

.continue-button::after,
.login-actions button::after {
    content: '>';
    margin-left: 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 0;
}

.login-form p {
    margin: 0 0 1rem;
    color: #4f565d;
    font-weight: 600;
}

.icon-field {
    position: relative;
    display: block;
}

.icon-field input {
    padding-right: 2.4rem;
}

.field-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    color: #a0a7af;
    transform: translateY(-50%);
}

.field-icon-mail {
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.field-icon-mail::before {
    content: '';
    position: absolute;
    left: 1px;
    top: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.field-icon-key {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.field-icon-key::before,
.field-icon-key::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.field-icon-key::before {
    left: 10px;
    top: 6px;
    width: 10px;
    height: 2px;
}

.field-icon-key::after {
    left: 16px;
    top: 6px;
    width: 2px;
    height: 5px;
}

.login-actions {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-actions button {
    width: 150px;
    background: var(--green);
}

.login-actions button:hover {
    background: var(--green-dark);
}

.recovery-links {
    display: grid;
    gap: 0.18rem;
    justify-items: end;
}

.recovery-links a {
    color: #487eb9;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .registration-header-inner {
        align-items: flex-start;
        padding: 0.9rem 0;
    }

    .registration-brand {
        grid-template-columns: 122px 1px minmax(148px, 1fr);
        gap: 0.8rem;
    }

    .brand-sbot-image {
        width: 118px;
    }

    .brand-sbot strong {
        font-size: 1.45rem;
    }

    .brand-sbot small {
        font-size: 0.36rem;
    }

    .brand-event strong {
        font-size: 1rem;
    }

    .brand-event span {
        font-size: 0.92rem;
    }

    .brand-event small {
        display: none;
    }

    .registration-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .registration-header-inner {
        width: min(100% - 24px, 520px);
        gap: 0.75rem;
    }

    .registration-brand {
        width: auto;
        grid-template-columns: 100px 1px minmax(124px, 1fr);
        gap: 0.65rem;
    }

    .language-switcher {
        align-self: center;
        gap: 0.5rem;
    }

    .registration-page {
        width: min(100% - 24px, 520px);
        margin-top: 16px;
    }

    .card-title h1,
    .card-title h2 {
        font-size: 1.05rem;
    }

    .registration-form,
    .login-form {
        padding: 0.9rem;
    }

    .form-grid,
    .privacy-options,
    .coupon-row {
        grid-template-columns: 1fr;
    }

    .coupon-row input {
        border-right: 1px solid #d9dde2;
        border-bottom: 0;
    }

    .login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-actions button {
        width: 100%;
    }

    .recovery-links {
        justify-items: start;
    }
}

.flow-step {
    display: none;
}

.flow-step.is-active {
    display: grid;
}

.ficha-step.is-active,
.payment-step.is-active {
    display: block;
}

.flow-shell {
    width: min(1060px, calc(100% - 32px));
    margin: 14px auto 58px;
}

.mini-brand {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--teal);
    font-weight: 800;
    text-transform: uppercase;
}

.mini-brand strong {
    font-size: 0.92rem;
}

.mini-brand span {
    font-size: 1rem;
}

.participant-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid #00a88e;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: #ffffff;
}

.participant-strip div {
    min-height: 54px;
    padding: 0.7rem 0.95rem;
}

.participant-strip strong,
.participant-strip span {
    display: block;
}

.participant-strip strong {
    color: #16191c;
    font-size: 0.9rem;
}

.participant-strip span {
    margin-top: 0.28rem;
    color: #6b737a;
    font-size: 0.7rem;
}

.profile-form,
.summary-card {
    padding: 0.9rem;
    border: 1px solid var(--line);
    background: #ffffff;
}

.profile-form h1 {
    margin: 0 0 0.8rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    background: #f8f8f8;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.activity-box {
    width: 320px;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    background: #ffffff;
}

.activity-box strong,
.activity-box span {
    display: block;
}

.activity-box span {
    margin: 0.2rem 0 1rem;
    color: #683dc7;
    font-size: 1.3rem;
}

.activity-box label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #555d64;
    font-size: 0.72rem;
}

.profile-form fieldset {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
}

.profile-form legend {
    width: calc(100% + 2rem);
    margin: -1rem -1rem 0.8rem;
    padding: 0.45rem 0.7rem;
    border-bottom: 1px solid var(--line);
    color: #2f353a;
    background: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-form label {
    display: block;
    margin-bottom: 0.7rem;
}

.profile-form label span,
.profile-form small {
    display: block;
}

.profile-form label span {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.profile-form input,
.profile-form select {
    width: 100%;
    min-height: 32px;
    padding: 0.38rem 0.65rem;
    border: 1px solid #d9dde2;
    background: #ffffff;
}

.profile-form small {
    margin-top: 0.35rem;
    color: #e03131;
    font-size: 0.72rem;
}

.wide {
    grid-column: 1 / -1;
}

.address-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 0.7fr 0.9fr;
    gap: 0.75rem;
}

.form-grid.three {
    grid-template-columns: 1fr 1fr 1fr;
}

.step-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cancel-button {
    min-height: 38px;
    padding: 0 2rem;
    border: 0;
    color: #ffffff;
    background: #df2f2f;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.form-message {
    min-height: 1.2rem;
    margin: 0.65rem 0 0;
    color: #d83131;
    font-weight: 700;
}

.form-message.is-ok {
    color: var(--green);
}

.access-default-box,
.success-access {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem;
    border: 1px solid rgba(0, 120, 95, 0.2);
    border-radius: 6px;
    background: #f1faf7;
}

.access-default-box strong,
.success-access span {
    color: var(--teal);
    font-weight: 800;
    text-transform: uppercase;
}

.access-default-box span,
.success-access strong {
    color: #2f353a;
    font-weight: 700;
}

.success-access {
    margin-bottom: 1rem;
}

.success-access b {
    color: var(--green);
}

.success-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.78);
}

.success-modal[hidden] {
    display: none;
}

.success-dialog {
    width: min(720px, 100%);
    padding: 1rem;
    border: 1px solid var(--line);
    background: #ffffff;
    text-align: center;
}

.success-dialog h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.success-choice-text {
    margin: 0 0 0.85rem;
    color: #42505a;
    line-height: 1.6;
}

.success-dialog button {
    width: min(420px, 100%);
    min-height: 34px;
    margin: 0.45rem auto;
    display: block;
    border: 1px solid currentColor;
    background: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.summary-button {
    color: var(--blue);
}

.payment-button {
    color: var(--green);
}

.completion-screen {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    place-items: center;
    background: #ffffff;
    padding: 1.5rem;
}

.completion-screen[hidden] {
    display: none;
}

.completion-screen__message {
    max-width: 520px;
    color: #0f1f29;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.payment-shell {
    width: min(980px, calc(100% - 32px));
}

.payment-card {
    min-height: 360px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.95rem;
    padding: 3rem 1.25rem;
    border: 1px solid var(--line);
    border-top: 6px solid var(--teal);
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 120, 95, 0.1);
    text-align: center;
}

.payment-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 0.9rem;
    border: 1px solid rgba(0, 120, 95, 0.22);
    border-radius: 6px;
    color: var(--teal);
    background: #f1faf7;
    font-weight: 800;
    text-transform: uppercase;
}

.payment-card h1 {
    margin: 0.1rem 0 0;
    color: var(--teal);
    font-size: 3.1rem;
    line-height: 1.05;
    text-transform: uppercase;
}

.payment-card p {
    max-width: 520px;
    margin: 0 0 0.45rem;
    color: #5f6870;
    font-size: 1rem;
    font-weight: 600;
}

.payment-link-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0 1.45rem;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(24, 170, 62, 0.22);
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.payment-link-button:hover,
.payment-link-button:focus-visible {
    background: var(--green-dark);
}

.summary-card {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.summary-card h1,
.summary-card h2,
.summary-card h3 {
    margin: 0 0 1rem;
}

.summary-card h1,
.summary-card h2 {
    font-size: 1.1rem;
}

.summary-card h3 {
    font-size: 1.2rem;
}

.summary-list {
    display: grid;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.summary-card hr {
    border: 0;
    border-top: 1px solid var(--line);
}

.payment-coupon label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.payment-coupon div {
    display: grid;
    grid-template-columns: 1fr 120px;
}

.payment-coupon input {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    text-transform: uppercase;
}

.payment-coupon button {
    border: 0;
    color: #ffffff;
    background: var(--green);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.debit-authorization {
    margin: 1.1rem 0 1rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #e5c88a;
    background: #fff8ed;
    font-size: 0.78rem;
}

.summary-card h4 {
    margin: 1.1rem 0 0.8rem;
    color: #477eb9;
    font-size: 1.05rem;
    text-transform: uppercase;
}

.pagseguro-box {
    padding: 0.9rem;
    border: 1px solid var(--line);
}

.pagseguro-box > strong {
    display: block;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.payment-methods label {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    background: #fbfbfb;
    font-weight: 700;
}

.attention-box {
    margin: 0 0 0.9rem;
    padding: 0.8rem;
    border: 1px solid #e5c88a;
    background: #fff8ed;
}

.attention-box b,
.attention-box span {
    display: block;
}

.pay-button {
    min-height: 42px;
    padding: 0 1rem;
    border: 0;
    color: #ffffff;
    background: var(--blue);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.return-link {
    width: max-content;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    text-decoration: none;
}

.pay-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

@media (max-width: 900px) {
    .participant-strip,
    .address-grid,
    .form-grid.three,
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .flow-shell,
    .payment-shell {
        width: min(100% - 24px, 520px);
    }

    .profile-form,
    .summary-card {
        padding: 0.75rem;
    }

    .payment-card {
        min-height: 300px;
        padding: 2rem 0.9rem;
    }

    .payment-card h1 {
        font-size: 2rem;
    }

    .payment-card p {
        font-size: 0.9rem;
    }

    .payment-link-button {
        width: 100%;
        max-width: 390px;
        padding: 0.85rem 0.9rem;
        text-align: center;
    }

    .payment-coupon div {
        grid-template-columns: 1fr;
    }

    .payment-coupon button {
        min-height: 34px;
    }
}

/* Ajustes para celulares Android/iOS */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

@media (max-width: 640px) {
    .registration-header-inner {
        width: calc(100% - 24px);
        align-items: center;
    }

    .registration-brand {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .brand-divider {
        display: none;
    }

    .brand-event small {
        display: none;
    }

    .language-switcher button {
        width: 28px;
        height: 28px;
    }

    .registration-page,
    .flow-shell,
    .payment-shell {
        width: calc(100% - 24px);
    }

    .registration-form input,
    .registration-form select,
    .login-form input,
    .profile-form input,
    .profile-form select,
    .payment-coupon input {
        min-height: 40px;
    }

    .participant-strip,
    .address-grid,
    .form-grid,
    .form-grid.three,
    .privacy-options,
    .coupon-row,
    .payment-coupon div,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .summary-card,
    .registration-card,
    .payment-card {
        width: 100%;
        max-width: 100%;
    }

    .payment-card h1 {
        font-size: 1.8rem;
        line-height: 1.12;
    }

    .payment-link-button,
    .continue-button,
    .summary-button,
    .payment-button {
        width: 100%;
    }
}

/* Camada final Android/iOS */
@media (max-width: 767.98px) {
    body {
        background:
            linear-gradient(180deg, rgba(0, 120, 95, 0.08), rgba(245, 245, 245, 0.98) 260px),
            var(--page);
        font-size: 14px;
    }

    .registration-header {
        position: sticky;
        top: 0;
        z-index: 60;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 22px rgba(0, 88, 72, 0.08);
        backdrop-filter: blur(10px);
    }

    .registration-header-inner {
        width: calc(100% - 24px);
        min-height: 66px;
        gap: 0.8rem;
    }

    .registration-brand {
        grid-template-columns: minmax(108px, 0.95fr) 1px minmax(0, 1.1fr);
        gap: 0.62rem;
    }

    .brand-sbot-image {
        width: 104px;
    }

    .brand-divider {
        display: block;
        height: 42px;
    }

    .brand-sbot strong {
        font-size: 1.2rem;
    }

    .brand-sbot small {
        font-size: 0.34rem;
        line-height: 1.08;
    }

    .brand-event strong,
    .brand-event span {
        font-size: 0.82rem;
    }

    .brand-event small {
        display: block;
        font-size: 0.4rem;
        line-height: 1.16;
    }

    .language-switcher {
        gap: 0.45rem;
    }

    .language-switcher button {
        width: 30px;
        height: 30px;
    }

    .registration-page,
    .flow-shell,
    .payment-shell {
        width: calc(100% - 24px);
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .registration-page {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .registration-card,
    .profile-form,
    .summary-card,
    .payment-card {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(0, 120, 95, 0.08);
    }

    .card-title {
        min-height: 48px;
        padding: 0.75rem 0.85rem;
    }

    .card-title h1,
    .card-title h2 {
        font-size: 1.08rem;
        line-height: 1.2;
    }

    .registration-form,
    .login-form {
        padding: 0.85rem;
    }

    .registration-form label,
    .login-form label,
    .profile-form label {
        margin-bottom: 0.78rem;
    }

    .registration-form input,
    .registration-form select,
    .login-form input,
    .profile-form input,
    .profile-form select,
    .payment-coupon input {
        min-height: 46px;
        border-radius: 6px;
        font-size: 1rem;
    }

    .form-row,
    .form-grid,
    .form-grid.three,
    .address-grid,
    .participant-strip,
    .privacy-options,
    .payment-methods,
    .payment-coupon div {
        grid-template-columns: 1fr !important;
    }

    .coupon-row {
        display: grid;
        grid-template-columns: 1fr !important;
    }

    .coupon-button,
    .continue-button,
    .cancel-button,
    .summary-button,
    .payment-button,
    .pay-button,
    .login-actions button,
    .payment-coupon button,
    .payment-link-button,
    .return-link {
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .login-actions,
    .step-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .participant-strip {
        border-top-width: 4px;
        border-radius: 8px;
        overflow: hidden;
    }

    .participant-strip div {
        min-height: 0;
        padding: 0.75rem 0.85rem;
        border-bottom: 1px solid var(--line);
    }

    .participant-strip div:last-child {
        border-bottom: 0;
    }

    .profile-form,
    .summary-card {
        padding: 0.85rem;
    }

    .profile-form h1 {
        padding: 0.75rem 0.85rem;
        font-size: 1rem;
        line-height: 1.25;
        border-radius: 8px;
    }

    .activity-box {
        width: 100%;
        border-radius: 8px;
    }

    .profile-form fieldset {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .profile-form legend {
        width: calc(100% + 1.7rem);
        margin: -0.85rem -0.85rem 0.85rem;
    }

    .access-default-box,
    .success-access,
    .attention-box,
    .debit-authorization,
    .pagseguro-box {
        border-radius: 8px;
    }

    .success-modal {
        padding: 0.85rem;
    }

    .success-dialog {
        max-height: calc(100svh - 32px);
        overflow-y: auto;
        border-radius: 8px;
    }

    .success-dialog h2 {
        font-size: 1.1rem;
        line-height: 1.25;
    }

    .payment-card {
        min-height: calc(100svh - 120px);
        padding: 2.2rem 1rem;
    }

    .payment-card h1 {
        font-size: 2rem;
        line-height: 1.08;
    }

    .payment-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .payment-link-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.9rem;
    }
}

@media (max-width: 380px) {
    .registration-brand {
        grid-template-columns: minmax(0, 1fr);
    }

    .brand-divider {
        display: none;
    }

    .brand-event small {
        display: none;
    }
}

/* Redesign da tela inicial de inscrição */
.registration-page.flow-step.is-active {
    width: min(920px, calc(100% - 32px));
    margin: 28px auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.registration-start-head {
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
    border: 1px solid rgba(0, 120, 95, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(0, 120, 95, 0.98), rgba(24, 170, 62, 0.92)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
    box-shadow: 0 18px 36px rgba(0, 88, 72, 0.14);
}

.registration-start-head > span {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.38rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.registration-start-head h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.06;
    text-transform: uppercase;
}

.registration-start-head p {
    max-width: 680px;
    margin: 0.7rem 0 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.65;
}

.registration-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.registration-steps strong {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
    line-height: 1.2;
}

.registration-steps b {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--teal);
    background: #ffffff;
    font-size: 0.78rem;
}

.registration-card {
    overflow: hidden;
    border: 1px solid rgba(0, 120, 95, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(0, 88, 72, 0.1);
}

.signup-card {
    min-height: 100%;
}

.login-card {
    position: sticky;
    top: 86px;
}

.card-title {
    min-height: 82px;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid rgba(0, 120, 95, 0.12);
    color: var(--teal);
    background:
        linear-gradient(180deg, #f7fffb, #ffffff),
        repeating-linear-gradient(135deg, rgba(0, 120, 95, 0.07) 0 1px, transparent 1px 16px);
}

.card-title .title-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--green));
}

.card-title h1,
.card-title h2 {
    margin: 0;
    color: #0b5f51;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.12;
}

.card-title p {
    margin: 0.28rem 0 0;
    color: #65726f;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.registration-form,
.login-form {
    display: grid;
    gap: 1.1rem;
    padding: 1.25rem;
}

.form-section {
    display: grid;
    gap: 0.9rem;
}

.form-section + .form-section {
    padding-top: 1.05rem;
    border-top: 1px solid #e5efeb;
}

.form-section > strong {
    color: #0b5f51;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.registration-form label,
.login-form label {
    margin: 0;
}

.registration-form label > span:first-child,
.login-form label > span:first-child {
    margin-bottom: 0.38rem;
    color: #26322f;
    font-size: 0.86rem;
    font-weight: 800;
}

.registration-form input,
.registration-form select,
.login-form input {
    min-height: 48px;
    padding: 0 0.9rem;
    border: 1px solid #cfded9;
    border-radius: 8px;
    background: #fbfefd;
    font-size: 0.98rem;
}

.registration-form input:focus,
.registration-form select:focus,
.login-form input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(0, 120, 95, 0.11);
}

.form-grid {
    gap: 0.9rem;
}

.coupon-area {
    display: grid;
    gap: 0.5rem;
    margin-top: 0;
}

.coupon-area > span {
    margin: 0;
    color: #4d5d59;
    font-size: 0.84rem;
    line-height: 1.4;
}

.coupon-row {
    grid-template-columns: minmax(0, 1fr) 168px;
    gap: 0.55rem;
}

.coupon-row input {
    border-right: 1px solid #cfded9;
}

.coupon-row button {
    min-height: 48px;
    border-radius: 8px;
    background: var(--teal);
}

.privacy-options {
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0.75rem;
}

.privacy-option {
    min-height: 58px;
    align-items: center;
    padding: 0.78rem;
    border: 1px solid #d9e8e3;
    border-radius: 8px;
    background: #fbfefd;
    font-size: 0.82rem;
}

.privacy-option input {
    flex: 0 0 auto;
}

.learn-more {
    width: 100%;
    margin: 0;
    padding: 0.55rem;
    border-radius: 8px;
    color: var(--teal);
    background: #f1faf7;
    text-align: center;
}

.required-note {
    margin: 0;
    padding-top: 0;
    border-top: 0;
    color: #5e6d69;
    font-size: 0.84rem;
}

.continue-button,
.login-actions button {
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    background: var(--green);
    box-shadow: 0 10px 20px rgba(24, 170, 62, 0.18);
}

.continue-button:hover,
.login-actions button:hover {
    background: var(--green-dark);
}

.login-form > p {
    margin: 0;
    color: #50605c;
    line-height: 1.55;
}

.icon-field input {
    padding-right: 2.65rem;
}

.login-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.login-actions button {
    width: 100%;
}

.recovery-links {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
}

.recovery-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    padding: 0.45rem 0.6rem;
    border: 1px solid rgba(0, 120, 95, 0.18);
    border-radius: 8px;
    color: var(--teal);
    background: #f8fcfa;
    text-align: center;
}

@media (max-width: 900px) {
    .registration-page.flow-step.is-active {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: min(100% - 24px, 680px);
        margin-top: 1rem;
    }

    .registration-start-head {
        padding: 1.25rem;
    }

    .registration-steps {
        grid-template-columns: 1fr;
    }

    .login-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .registration-start-head h1 {
        font-size: 2rem;
    }

    .registration-start-head p {
        font-size: 0.94rem;
    }

    .card-title {
        min-height: 0;
        align-items: flex-start;
        padding: 1rem;
    }

    .card-title .title-icon {
        width: 38px;
        height: 38px;
    }

    .card-title h1,
    .card-title h2 {
        font-size: 1.28rem;
    }

    .registration-form,
    .login-form {
        padding: 1rem;
    }

    .form-grid,
    .coupon-row,
    .privacy-options {
        grid-template-columns: 1fr;
    }

    .privacy-option {
        min-height: 0;
    }

.recovery-links {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.registration-brand {
    grid-template-columns: minmax(148px, 0.95fr) 1px minmax(300px, 1.55fr);
    gap: 1rem;
}

.brand-sbot-image {
    width: 148px;
}

.brand-divider {
    height: 54px;
}

.brand-event strong {
    font-size: 1.38rem;
}

.brand-event span {
    margin-top: 0.12rem;
    font-size: 1.16rem;
}

.brand-event small {
    margin-top: 0.28rem;
    font-size: 0.58rem;
    letter-spacing: 0.02em;
}

.login-card .card-title {
    gap: 0;
}

@media (max-width: 900px) {
    .registration-brand {
        grid-template-columns: minmax(120px, 0.95fr) 1px minmax(228px, 1.35fr);
        gap: 0.8rem;
    }

    .brand-sbot-image {
        width: 122px;
    }

    .brand-divider {
        height: 44px;
    }

    .brand-event strong {
        font-size: 1.08rem;
    }

    .brand-event span {
        font-size: 0.94rem;
    }

    .brand-event small {
        font-size: 0.48rem;
    }
}

@media (max-width: 640px) {
    .registration-brand {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
    }

    .brand-divider {
        display: none;
    }

    .brand-sbot-image {
        width: 118px;
    }

    .brand-event strong {
        font-size: 0.96rem;
    }

    .brand-event span {
        font-size: 0.82rem;
    }

    .brand-event small {
        font-size: 0.44rem;
    }
}
/* Ajuste final: a ficha de inscrição deve ficar limpa, sem mini-login lateral. */
.registration-page.flow-step.is-active {
    grid-template-columns: minmax(0, 1fr) !important;
}

.registration-page .signup-card {
    width: 100%;
}

.registration-page .login-card,
.registration-page #quick-login-form {
    display: none !important;
}
