* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 92, 85, 0.12), transparent 34%),
        linear-gradient(135deg, #fff6f1, #ffffff);
    color: #2b1020;
}

.register-page {
    min-height: 100vh;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.register-shell {
    width: 100%;
    max-width: 560px;
}

.register-brand {
    text-align: center;
    margin: 12px 0 18px;
}

.brand-icon {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff5c55, #8c1944);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    margin-bottom: 10px;
    box-shadow: 0 16px 32px rgba(140, 25, 68, 0.22);
}

.register-brand h1 {
    margin: 0;
    font-size: 44px;
    letter-spacing: -1px;
    color: #6d1739;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
}

.register-brand p {
    margin: 8px 0 0;
    color: #765264;
    font-size: 15px;
    font-weight: 700;
}

.progress-area {
    background: #ffffff;
    border-radius: 24px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 14px 40px rgba(92, 18, 48, 0.09);
    border: 1px solid rgba(114, 27, 61, 0.08);
}

.progress-top {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.progress-top span {
    color: #8c1944;
    font-size: 13px;
    font-weight: 900;
}

.progress-top strong {
    color: #2b1020;
    font-size: 14px;
    text-align: right;
}

.progress-bar {
    height: 10px;
    background: #f1dce4;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 20%;
    background: linear-gradient(135deg, #ff5c55, #8c1944);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.register-card {
    width: 100%;
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 55px rgba(92, 18, 48, 0.12);
    border: 1px solid rgba(114, 27, 61, 0.08);
}

/* CORREÇÃO PRINCIPAL:
   Seu HTML usa .form-step e .active.
   Por isso escondemos todas as etapas e mostramos apenas a etapa ativa. */
.register-card.form-step {
    display: none;
}

.register-card.form-step.active {
    display: block;
}

.step-heading {
    margin-bottom: 20px;
}

.step-heading h2 {
    margin: 0;
    color: #2b1020;
    font-size: 25px;
    letter-spacing: -0.4px;
}

.step-heading p {
    margin: 8px 0 0;
    color: #765264;
    font-size: 15px;
    line-height: 1.45;
}

.message-box {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

.message-box--success {
    background: #e8fff1;
    color: #10783d;
    border: 1px solid #b9efcc;
}

.message-box--error {
    background: #fff0f0;
    color: #a31631;
    border: 1px solid #ffd0d8;
}

.message-box--warning {
    background: #fff5df;
    color: #a16500;
    border: 1px solid #ffe2a7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #3d2030;
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #ead7df;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
    color: #2b1020;
    font-family: Arial, Helvetica, sans-serif;
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input[type="file"] {
    padding: 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #b72e5d;
    box-shadow: 0 0 0 4px rgba(183, 46, 93, 0.1);
}

.form-group small {
    display: block;
    margin-top: 7px;
    color: #765264;
    font-size: 12px;
    line-height: 1.4;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "⌄";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-54%);
    color: #8c1944;
    font-size: 22px;
    font-weight: 900;
    pointer-events: none;
}

.select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 15px 46px 15px 16px;
    border: 1px solid #ead7df;
    border-radius: 16px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
    color: #2b1020;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.select-wrap select:focus {
    border-color: #b72e5d;
    box-shadow: 0 0 0 4px rgba(183, 46, 93, 0.1);
}

.important-note {
    margin-top: 9px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff7ee;
    color: #7b4b1a;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.whatsapp-preview {
    display: none;
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: #f7eef2;
    color: #6d1739;
    font-size: 13px;
    font-weight: 800;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.choice-grid--three {
    grid-template-columns: 1fr;
}

.choice-card {
    position: relative;
    display: block;
    padding: 16px 16px 16px 52px;
    border-radius: 18px;
    border: 1px solid #ead7df;
    background: #ffffff;
    cursor: pointer;
    transition: 0.18s;
}

.choice-card::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 18px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #d7bdc9;
    background: #ffffff;
    transition: 0.18s;
}

.choice-card::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 25px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ffffff;
    transform: scale(0);
    transition: 0.18s;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card span {
    display: block;
    color: #2b1020;
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 5px;
}

.choice-card small {
    display: block;
    color: #765264;
    font-size: 13px;
}

.choice-card.is-selected {
    border-color: #b72e5d;
    background: linear-gradient(135deg, rgba(255, 92, 85, 0.08), rgba(140, 25, 68, 0.08));
    box-shadow: 0 0 0 4px rgba(183, 46, 93, 0.08);
}

.choice-card.is-selected::before {
    border-color: #8c1944;
    background: linear-gradient(135deg, #ff5c55, #8c1944);
}

.choice-card.is-selected::after {
    transform: scale(1);
}

.photo-preview {
    margin-top: 12px;
    display: none;
    width: 120px;
    height: 120px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #ead7df;
    background: #fbf7f4;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fbf7f4;
    border: 1px solid #f0e0e6;
    border-radius: 16px;
    padding: 13px;
    color: #3d2030;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.terms-check input {
    margin-top: 3px;
}

.final-note {
    margin-bottom: 16px;
    padding: 13px;
    border-radius: 16px;
    background: #fff7ee;
    color: #765264;
    font-size: 14px;
    line-height: 1.45;
}

.step-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.next-button,
.back-button,
.submit-button,
.primary-link-button {
    width: 100%;
    border: 0;
    padding: 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.next-button,
.submit-button,
.primary-link-button {
    background: linear-gradient(135deg, #ff5c55, #8c1944);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(140, 25, 68, 0.18);
}

.back-button {
    background: #f7eef2;
    color: #6d1739;
}

.next-button:disabled,
.submit-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.input-error {
    border-color: #b6203c !important;
    box-shadow: 0 0 0 4px rgba(182, 32, 60, 0.08) !important;
}

.field-error {
    margin-top: 7px;
    color: #b6203c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.step-error {
    margin-bottom: 14px;
    padding: 12px 13px;
    border-radius: 14px;
    background: #fff0f0;
    color: #a31631;
    border: 1px solid #ffd0d8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.login-link {
    text-align: center;
    color: #765264;
    margin: 18px 0 0;
    font-size: 14px;
}

.login-link a {
    color: #8c1944;
    font-weight: 900;
    text-decoration: none;
}

.success-card {
    display: block;
    text-align: center;
}

.success-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: #e8fff1;
    color: #10783d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
}

.success-card h2 {
    margin: 0;
    color: #2b1020;
    font-size: 25px;
}

.success-card p {
    color: #765264;
    line-height: 1.5;
    margin: 10px 0 18px;
}

.public-footer {
    margin-top: 24px;
    text-align: center;
    color: #8a6c79;
    font-size: 12px;
}

.public-footer__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 10px;
}

.public-footer__links a {
    color: #7c5367;
    text-decoration: none;
}

.public-footer__links a:hover {
    text-decoration: underline;
}

.public-footer p {
    margin: 0;
}

@media (max-width: 560px) {
    .register-page {
        padding: 12px;
    }

    .register-card,
    .progress-area {
        border-radius: 24px;
    }

    .register-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-brand h1 {
        font-size: 40px;
    }

    .step-heading h2 {
        font-size: 23px;
    }

    .step-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .step-actions .next-button,
    .step-actions .submit-button {
        order: 1 !important;
    }

    .step-actions .back-button {
        order: 2 !important;
    }

    .progress-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .progress-top strong {
        text-align: left;
    }
}