        :root {
            --primary: #003A54;
            --secondary: #054F70;
            --accent: #ED9516;
            --accent-d: #c97a0c
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background: linear-gradient(160deg, #054F70 0%, #001e30 100%);
            min-height: 100vh;
            padding: 2rem 1rem 4rem
        }

        input[type=file] {
            width: 100%;
            padding: .5rem .75rem;
            border: 1.5px solid #d1d5db;
            border-radius: 9px;
            font-size: .875rem;
            color: #1f2937;
            background: #f9fafb;
            outline: none;
            font-family: inherit;
            box-sizing: border-box;
            cursor: pointer;
        }
        input[type=file]:focus {
            border-color: #054F70;
            box-shadow: 0 0 0 3px rgba(5,79,112,.11)
        }

        /* ── Header ── */
        .alep-header {
            display: flex;
            align-items: center;
            gap: 14px;
            max-width: 880px;
            margin: 0 auto 2rem
        }

        .alep-header-icon {
            width: 54px;
            height: 54px;
            background: rgba(255, 255, 255, .13);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, .2)
        }

        .alep-header h1 {
            color: #fff;
            font-size: 1.125rem;
            font-weight: 700;
            line-height: 1.3
        }

        .alep-header p {
            color: rgba(255, 255, 255, .6);
            font-size: .8125rem;
            margin-top: 3px
        }

        /* ── Step bar ── */
        .steps-bar {
            display: flex;
            align-items: flex-start;
            max-width: 880px;
            margin: 0 auto 2rem;
            padding: 0 .25rem;
            overflow-x: auto
        }

        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1;
            min-width: 52px
        }

        .step-circle {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: .8125rem;
            font-weight: 700;
            transition: .3s;
            flex-shrink: 0;
            border: 2.5px solid transparent
        }

        .step-circle.done {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent)
        }

        .step-circle.active {
            background: #fff;
            color: var(--primary);
            border-color: #fff
        }

        .step-circle.todo {
            background: rgba(255, 255, 255, .08);
            color: rgba(255, 255, 255, .45);
            border-color: rgba(255, 255, 255, .2)
        }

        .step-label {
            font-size: .625rem;
            color: rgba(255, 255, 255, .6);
            text-align: center;
            margin-top: 6px;
            line-height: 1.3;
            white-space: pre-line
        }

        .step-label.active {
            color: #fff;
            font-weight: 600
        }

        .step-conn {
            flex: 1;
            height: 2.5px;
            margin-top: 18px;
            background: rgba(255, 255, 255, .15);
            transition: .3s;
            min-width: 10px
        }

        .step-conn.done {
            background: var(--accent)
        }

        /* ── Card ── */
        .form-card {
            background: #fff;
            border-radius: 18px;
            box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
            padding: 2.25rem;
            max-width: 880px;
            margin: 0 auto
        }

        /* ── Step sections ── */
        .step-section {
            display: none
        }

        .step-section.active {
            display: block
        }

        /* ── Section title ── */
        .sec-title {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary);
            border-bottom: 2.5px solid var(--accent);
            padding-bottom: .625rem;
            margin-bottom: 1.375rem;
            display: flex;
            align-items: center;
            gap: 9px
        }

        .sec-sub {
            font-size: .875rem;
            font-weight: 600;
            color: #374151;
            margin-bottom: .875rem;
            display: flex;
            align-items: center;
            gap: 7px;
            margin-top: 1.25rem
        }

        /* ── Fields ── */
        .fg {
            display: flex;
            flex-direction: column;
            gap: 5px;
            margin-bottom: 1rem
        }

        .fl {
            font-size: .8125rem;
            font-weight: 600;
            color: #374151
        }

        .fl .req {
            color: #e53e3e;
            margin-left: 2px
        }

        .fl .hint {
            font-weight: 400;
            color: #9ca3af;
            font-size: .75rem;
            margin-left: 4px
        }

        input[type=text],
        input[type=email],
        input[type=date],
        input[type=tel],
        select {
            width: 100%;
            height: 2.75rem;
            padding: 0 .75rem!important;
            border: 1.5px solid #d1d5db;
            border-radius: 9px;
            font-size: .875rem;
            color: #1f2937;
            background: #f9fafb;
            transition: border-color .2s, box-shadow .2s, background .2s;
            outline: none;
            font-family: inherit;
            line-height: 1;
            box-sizing: border-box;
            vertical-align: middle
        }

        textarea {
            width: 100%;
            padding: .5rem .75rem;
            border: 1.5px solid #d1d5db;
            border-radius: 9px;
            font-size: .875rem;
            color: #1f2937;
            background: #f9fafb;
            transition: border-color .2s, box-shadow .2s, background .2s;
            outline: none;
            font-family: inherit;
            resize: vertical;
            min-height: 84px;
            line-height: 1.5;
            box-sizing: border-box
        }

        input:focus,
        select:focus,
        textarea:focus {
            border-color: #054F70;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(5, 79, 112, .11)
        }

        select {
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right .75rem center;
            padding-right: 2.25rem
        }

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

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

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

        .span2 {
            grid-column: span 2
        }

        .span3 {
            grid-column: span 3
        }

        /* ── Options (radio/checkbox as cards) ── */
        .opt-group {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            margin-bottom: .25rem
        }

        .opt-item {
            display: flex;
            align-items: flex-start;
            gap: .75rem;
            padding: .75rem 1rem;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            cursor: pointer;
            transition: .2s
        }

        .opt-item:hover {
            border-color: #054F70;
            background: #f0f7fb
        }

        .opt-item.selected {
            border-color: #054F70;
            background: #e8f4f9
        }

        .opt-item input[type=radio] {
            margin-top: 2px;
            accent-color: #054F70;
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            cursor: pointer
        }

        .opt-item label {
            font-size: .875rem;
            color: #374151;
            cursor: pointer;
            line-height: 1.5
        }

        .cond-fields {
            display: none;
            margin-top: .875rem;
            padding: 1rem 1rem .25rem 1rem;
            background: #f0f7fb;
            border-radius: 10px;
            border-left: 3px solid #054F70
        }

        .cond-fields.show {
            display: block
        }

        /* ── Dependent cards ── */
        .dep-card {
            border: 1.5px solid #e5e7eb;
            border-radius: 13px;
            padding: 1.25rem;
            margin-bottom: .875rem;
            transition: .2s
        }

        .dep-card-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem
        }

        .dep-card-label {
            font-size: .9375rem;
            font-weight: 600;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 7px
        }

        .btn-remove {
            background: none;
            border: none;
            color: #dc2626;
            cursor: pointer;
            font-size: 1.1875rem;
            padding: 3px 7px;
            border-radius: 7px;
            transition: .2s;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: .8125rem;
            font-weight: 600
        }

        .btn-remove:hover {
            background: #fff5f5
        }

        .btn-add {
            display: flex;
            align-items: center;
            gap: 9px;
            padding: .625rem 1.25rem;
            border: 1.5px dashed #054F70;
            border-radius: 9px;
            background: transparent;
            color: #054F70;
            font-size: .875rem;
            font-weight: 600;
            cursor: pointer;
            transition: .2s;
            margin-top: .25rem;
            width: 100%;
            justify-content: center
        }

        .btn-add:hover {
            background: #e8f4f9
        }

        .btn-add:disabled {
            opacity: .45;
            cursor: not-allowed
        }

        /* ── Alert ── */
        .alert-info {
            display: flex;
            gap: 10px;
            padding: .875rem 1rem;
            background: #eff6ff;
            border: 1.5px solid #bfdbfe;
            border-radius: 9px;
            font-size: .8125rem;
            color: #1d4ed8;
            margin-bottom: 1.375rem;
            line-height: 1.5
        }

        /* ── Consent box ── */
        .consent-box {
            display: flex;
            align-items: flex-start;
            gap: .875rem;
            padding: 1.125rem;
            border: 1.5px solid #e5e7eb;
            border-radius: 12px;
            background: #f9fafb;
            cursor: pointer;
            transition: .2s;
            user-select: none
        }

        .consent-box:hover {
            border-color: #054F70;
            background: #f0f7fb
        }

        .consent-box.checked {
            border-color: #16a34a;
            background: #f0fdf4
        }

        .consent-box input[type=checkbox] {
            width: 19px;
            height: 19px;
            margin-top: 1px;
            accent-color: #16a34a;
            flex-shrink: 0;
            cursor: pointer
        }

        .consent-box .consent-label {
            font-size: .875rem;
            color: #374151;
            line-height: 1.6;
            cursor: pointer
        }

        /* ── Divider ── */
        hr.div {
            border: none;
            border-top: 1.5px solid #f3f4f6;
            margin: 1.5rem 0
        }

        /* ── Nav buttons ── */
        .nav-btns {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.75rem;
            padding-top: 1.375rem;
            border-top: 1.5px solid #f3f4f6
        }

        .btn-prev {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: .625rem 1.25rem;
            border: 1.5px solid #d1d5db;
            border-radius: 9px;
            background: #fff;
            color: #374151;
            font-size: .875rem;
            font-weight: 600;
            cursor: pointer;
            transition: .2s;
            font-family: inherit
        }

        .btn-prev:hover {
            background: #f9fafb;
            border-color: #9ca3af
        }

        .btn-next {
            display: flex;
            align-items: center;
            gap: 7px;
            padding: .625rem 1.625rem;
            border: none;
            border-radius: 9px;
            background: var(--primary);
            color: #fff;
            font-size: .875rem;
            font-weight: 600;
            cursor: pointer;
            transition: .2s;
            font-family: inherit
        }

        .btn-next:hover {
            background: var(--secondary)
        }

        .btn-submit {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: .6875rem 1.75rem;
            border: none;
            border-radius: 9px;
            background: var(--accent);
            color: #fff;
            font-size: .9375rem;
            font-weight: 700;
            cursor: pointer;
            transition: .2s;
            font-family: inherit
        }

        .btn-submit:hover:not(:disabled) {
            background: var(--accent-d)
        }

        .btn-submit:disabled {
            background: #d1d5db;
            cursor: not-allowed
        }

        .step-counter {
            font-size: .8125rem;
            color: #9ca3af;
            font-weight: 500
        }

        /* ── Modal ── */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 20, 35, .72);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity .25s;
            backdrop-filter: blur(4px)
        }

        .modal-overlay.open {
            opacity: 1;
            pointer-events: all
        }

        .modal-box {
            background: #fff;
            border-radius: 18px;
            max-width: 660px;
            width: 100%;
            max-height: 82vh;
            display: flex;
            flex-direction: column;
            transform: translateY(12px) scale(.98);
            transition: .25s
        }

        .modal-overlay.open .modal-box {
            transform: none
        }

        .modal-head {
            padding: 1.25rem 1.5rem;
            border-bottom: 1.5px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-shrink: 0
        }

        .modal-head h3 {
            font-size: .9375rem;
            font-weight: 700;
            color: var(--primary)
        }

        .btn-modal-close {
            background: none;
            border: none;
            color: #6b7280;
            font-size: 1.375rem;
            cursor: pointer;
            padding: 3px 9px;
            border-radius: 7px;
            transition: .2s;
            line-height: 1
        }

        .btn-modal-close:hover {
            background: #f3f4f6;
            color: #374151
        }

        .modal-body {
            padding: 1.5rem;
            overflow-y: auto;
            font-size: .875rem;
            color: #374151;
            line-height: 1.75
        }

        .modal-body p {
            margin-bottom: 1rem
        }

        .modal-body p:last-child {
            margin-bottom: 0
        }

        .modal-foot {
            padding: 1rem 1.5rem;
            border-top: 1.5px solid #e5e7eb;
            display: flex;
            justify-content: flex-end;
            gap: .75rem;
            flex-shrink: 0
        }

        /* ── Warning box ── */
        .warn-box {
            background: #fffbeb;
            border: 1.5px solid #fde68a;
            border-radius: 10px;
            padding: .875rem 1rem;
            font-size: .8125rem;
            color: #92400e;
            line-height: 1.55;
            display: flex;
            gap: 9px;
            align-items: flex-start
        }

        /* ── Success ── */
        .success-wrap {
            text-align: center;
            padding: 3.5rem 1.5rem
        }

        .success-icon {
            width: 76px;
            height: 76px;
            background: #dcfce7;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem
        }

        /* ── Seleção de modalidade ── */
        .sel-card {
            background: #fff;
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            padding: 2rem 1.75rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            cursor: pointer;
            transition: .25s;
            gap: 1rem
        }
        .sel-card:hover { border-color: #054F70; box-shadow: 0 8px 24px rgba(5,79,112,.12) }
        .sel-card.presencial:hover { border-color: var(--accent) }
        .sel-card-icon {
            width: 64px; height: 64px; border-radius: 16px;
            display: flex; align-items: center; justify-content: center; font-size: 1.75rem
        }
        .sel-card h3 { font-size: 1.0625rem; font-weight: 700; color: var(--primary) }
        .sel-card p  { font-size: .875rem; color: #6b7280; line-height: 1.6 }
        .sel-btn {
            display: inline-flex; align-items: center; gap: 8px;
            padding: .625rem 1.375rem; border-radius: 9px;
            font-size: .875rem; font-weight: 700;
            cursor: pointer; border: none; font-family: inherit;
            transition: .2s; margin-top: auto; text-decoration: none
        }
        .sel-btn.online    { background: var(--primary); color: #fff }
        .sel-btn.online:hover { background: var(--secondary) }
        .sel-btn.presencial    { background: var(--accent); color: #fff }
        .sel-btn.presencial:hover { background: var(--accent-d) }

        /* ── Passo a passo presencial ── */
        .steps-pres { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 }
        .step-pres {
            display: flex; gap: 1rem; align-items: flex-start;
            background: #f8fafc; border: 1.5px solid #e2e8f0;
            border-radius: 12px; padding: 1.125rem 1.25rem
        }
        .step-pres-num {
            width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
            background: var(--primary); color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: .9375rem
        }
        .step-pres-body h4 { font-size: .9375rem; font-weight: 700; color: var(--primary); margin-bottom: .375rem }
        .step-pres-body p  { font-size: .8125rem; color: #6b7280; line-height: 1.55 }
        .dl-btn {
            display: inline-flex; align-items: center; gap: 7px;
            padding: .5rem 1rem; border-radius: 8px; font-size: .8125rem; font-weight: 600;
            border: 1.5px solid var(--primary); color: var(--primary);
            background: #fff; text-decoration: none; transition: .2s; margin-top: .625rem; margin-right: .375rem
        }
        .dl-btn:hover { background: #e8f4f9 }
        .btn-voltar {
            display: inline-flex; align-items: center; gap: 7px;
            padding: .5rem 1.125rem; border: 1.5px solid #d1d5db; border-radius: 9px;
            background: #fff; color: #374151; font-size: .875rem; font-weight: 600;
            cursor: pointer; font-family: inherit; transition: .2s; margin-bottom: 1.5rem
        }
        .btn-voltar:hover { background: #f9fafb; border-color: #9ca3af }
        .contact-box {
            background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 10px;
            padding: 1rem 1.25rem; font-size: .875rem; color: #1d4ed8;
            display: flex; gap: 10px; align-items: flex-start; margin-top: 1rem
        }
        /* ── Responsive ── */
        @media(max-width:640px) {
            body {
                padding: 1rem .75rem 3rem
            }

            .form-card {
                padding: 1.25rem
            }

            .g2,
            .g3,
            .g4 {
                grid-template-columns: 1fr
            }

            .span2,
            .span3 {
                grid-column: 1
            }

            .step-label {
                font-size: .5rem
            }
        }

        @media(max-width:420px) {
            .step-label {
                display: none
            }

            .form-card {
                padding: 1rem
            }
        }