/* ═══════════════════════════════════════════════════════════════
   SOMOS UM — CADASTRO PAGE STYLES
   Alinhado com a nova identidade visual (Instrument Serif + Work Sans)
   ═══════════════════════════════════════════════════════════════ */

.su-cad-wrapper {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    background: var(--su-bg-app, #f5f0ea);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* ═══ CADASTRO HEADER ═══ */
.su-cad-header {
    padding: 24px 22px 18px;
    border-bottom: 1px solid var(--su-line, #ded3c5);
}

.su-cad-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Work Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--su-primary, #b4441a);
    margin-bottom: 8px;
}

.su-cad-eyebrow-line {
    width: 24px;
    height: 1.5px;
    background: var(--su-primary, #b4441a);
}

.su-cad-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    color: var(--su-ink, #1f1b18);
    line-height: 1.1;
    margin: 0 0 16px;
    white-space: nowrap;
}

.su-cad-title em {
    font-style: italic;
    font-weight: 400;
}

/* ═══ STEPPED PROGRESS BAR (4 SEGMENTOS) ═══ */
.su-progress-steps {
    display: flex;
    gap: 8px;
    width: 100%;
}

.su-step-bar {
    flex: 1;
    height: 3px;
    background: #ded3c5;
    border-radius: 2px;
}

.su-step-bar.active {
    background: var(--su-primary, #b4441a);
}

/* ═══ FORM MAIN & SECTIONS ═══ */
.su-cad-body {
    padding: 24px 22px 30px;
    flex: 1;
}

.su-cad-section {
    margin-bottom: 32px;
}

.su-cad-step-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.su-step-num {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 26px;
    line-height: 1;
    color: var(--su-primary, #b4441a);
    flex-shrink: 0;
}

.su-step-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--su-ink, #1f1b18);
    line-height: 1.05;
    margin: 0;
}

.su-step-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #6a645c;
    margin: 0 0 16px;
    line-height: 1.4;
}

/* ═══ ROLE SELECTOR CARDS ═══ */
.su-role-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.su-role-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    border: 1.5px solid #1f1b18;
    background: var(--su-bg-app, #f5f0ea);
    color: #1f1b18;
    border-radius: 2px;
    font-family: 'Work Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    user-select: none;
}

.su-role-card input {
    display: none;
}

.su-role-card:hover {
    border-color: #000;
}

.su-role-card.active,
.su-role-card:has(input:checked) {
    background: #1f1b18;
    color: #ffffff;
    border-color: #1f1b18;
}

.su-role-card i {
    font-size: 16px;
}

/* ═══ PHOTO UPLOAD LAYOUT ═══ */
.su-profile-photo-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.su-cad-photo-frame {
    position: relative;
    width: 104px;
    height: 126px;
    margin-top: 6px;
    flex-shrink: 0;
    background: #e2d9cd;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0, rgba(255,255,255,0.2) 10px, transparent 10px, transparent 20px);
    border: 1px solid #c9bea3;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 6px;
}

.su-cad-photo-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.su-cad-photo-frame.has-image img {
    display: block;
}

.su-cad-photo-btn {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #1f1b18;
    border-radius: 2px;
    padding: 3px 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1f1b18;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
}

.su-cad-photo-info {
    padding-top: 4px;
}

.su-photo-help {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #6a645c;
    margin: 4px 0 0;
    line-height: 1.35;
}

/* ═══ FORM INPUTS & LABELS (LINHA INFERIOR) ═══ */
.su-field-group {
    margin-bottom: 20px;
}

.su-field-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--su-muted, #8a8279);
    margin-bottom: 2px;
}

.su-field-input-line {
    border-bottom: 1.5px solid #1f1b18;
    padding: 4px 0 6px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: border-color .2s ease;
}

.su-field-input-line:focus-within {
    border-bottom-color: var(--su-primary, #b4441a);
}

.su-field-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Work Sans', sans-serif;
    font-size: var(--su-input-font-size, 16px);
    color: var(--su-input-color, #111111);
    padding: 0;
    outline: none;
}

.su-field-input::placeholder {
    color: var(--su-input-placeholder, #766a68);
    font-size: 15px;
}

select.su-field-input {
    cursor: pointer;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231f1b18' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

/* Checkbox estilizado */
.su-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
    cursor: pointer;
}

.su-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--su-primary, #b4441a);
    cursor: pointer;
}

.su-check-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1f1b18;
    cursor: pointer;
}

.su-cad-notice {
    font-family: 'Work Sans', sans-serif;
    font-size: 11.5px;
    color: #6a645c;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .su-cad-wrapper {
        max-width: 100%;
        box-shadow: none;
    }
    .su-cad-header,
    .su-cad-body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    input, select, textarea, .su-field-input, .form-control {
        font-size: 16px !important;
    }
}
