/* =============================================
   AngoSchool - Serviços Online (Matrícula/Inscrição)
   ============================================= */

:root {
    --mo-primary: #29707D;
    --mo-primary-dark: #1d5660;
    --mo-secondary: #3d9e78;
    --mo-bg: #f5f7fa;
    --mo-card-bg: #ffffff;
    --mo-text: #2d3748;
    --mo-text-muted: #718096;
    --mo-border: #e2e8f0;
    --mo-radius: 12px;
    --mo-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --mo-error: #e53e3e;
    --mo-error-bg: #fed7d7;
    --mo-error-border: #feb2b2;
    --mo-error-text: #c53030;
    --mo-success-bg: #f0fdf4;
    --mo-success-bg-strong: #c6f6d5;
    --mo-success-border: #9ae6b4;
    --mo-success-dark: #276749;
    --mo-warning: #d69e2e;
    --mo-warning-bg: #fefcbf;
    --mo-bg-light: #f8fafc;
    --poppins-Font: "Poppins", sans-serif;
    --inter-Font: "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--inter-Font); background: var(--mo-bg); color: var(--mo-text); }
h1,h2,h3,h4,h5,h6,a { font-family: var(--poppins-Font); }

/* Navbar */
.mo-navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px; background: var(--mo-primary); color: #fff;
}
.mo-navbar-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.mo-navbar-logo i { font-size: 1.4rem; }
.mo-navbar-actions { display: flex; gap: 12px; }

/* Buttons */
.mo-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-weight: 600;
    font-size: 0.9rem; text-decoration: none; cursor: pointer; border: none;
    transition: all 0.2s;
}
.mo-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.5); }
.mo-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.mo-btn-primary { background: var(--mo-primary); color: #fff; }
.mo-btn-primary:hover { background: var(--mo-primary-dark); }
.mo-btn-success { background: var(--mo-secondary); color: #fff; }
.mo-btn-success:hover { opacity: 0.9; }
.mo-btn-lg { padding: 14px 28px; font-size: 1.05rem; }

/* Hero */
.mo-hero {
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    padding: 48px 32px; text-align: center; color: #fff;
}
.mo-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.mo-hero h1 i { margin-right: 8px; }
.mo-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* Main */
.mo-main { max-width: 1000px; margin: 0 auto; padding: 32px 20px; }

/* ===== Selecção de Escola (cascata) ===== */
.mo-seleccao-header {
    text-align: center; margin-bottom: 28px;
}
.mo-seleccao-icon {
    width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.8rem; box-shadow: 0 4px 20px rgba(41,112,125,0.3);
}
.mo-seleccao-header h2 { font-size: 1.4rem; color: var(--mo-text); margin-bottom: 6px; }
.mo-seleccao-header p { color: var(--mo-text-muted); font-size: 0.95rem; }

.mo-seleccao-card {
    background: var(--mo-card-bg); border: 1px solid var(--mo-border);
    border-radius: var(--mo-radius); padding: 32px 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* (steps de cascata removidos — agora usa select directo) */

/* Escola Preview */
.mo-escola-preview {
    background: var(--mo-bg); border: 2px solid rgba(41,112,125,0.15);
    border-radius: var(--mo-radius); padding: 20px; margin-bottom: 24px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.mo-escola-preview-info {
    display: flex; align-items: center; gap: 16px;
}
.mo-preview-logo {
    width: 56px; height: 56px; object-fit: contain; border-radius: 10px;
    border: 2px solid var(--mo-border); background: #fff;
}
.mo-escola-preview-info h4 { font-size: 1rem; margin-bottom: 4px; color: var(--mo-text); }
.mo-escola-preview-info p { font-size: 0.85rem; color: var(--mo-secondary); font-weight: 600; }

/* ===== Searchable Select de Escola ===== */
.mo-searchable-select { margin-bottom: 24px; position: relative; }
.mo-searchable-select > label {
    display: block; font-weight: 600; font-size: 0.95rem;
    margin-bottom: 10px; color: var(--mo-primary);
}
.mo-searchable-select > label i { margin-right: 6px; }

.mo-ss-input-wrap {
    position: relative; display: flex; align-items: center;
}
.mo-ss-icon {
    position: absolute; left: 16px; color: var(--mo-text-muted);
    font-size: 0.95rem; pointer-events: none; transition: color 0.2s;
}
.mo-ss-input-wrap input {
    width: 100%; padding: 16px 44px 16px 44px;
    border: 2px solid var(--mo-border); border-radius: 12px;
    font-size: 1rem; outline: none; background: var(--mo-card-bg);
    transition: all 0.2s; cursor: text;
}
.mo-ss-input-wrap input:focus {
    border-color: var(--mo-primary);
    box-shadow: 0 0 0 4px rgba(41,112,125,0.12);
}
.mo-ss-input-wrap input:focus ~ .mo-ss-icon { color: var(--mo-primary); }
.mo-ss-input-wrap input::placeholder { color: var(--mo-text-muted); }
.mo-ss-input-wrap input.mo-ss-selected {
    border-color: var(--mo-secondary);
    background: rgba(61,158,120,0.04);
    font-weight: 600; color: var(--mo-text);
}

.mo-ss-clear {
    position: absolute; right: 14px; background: none; border: none;
    color: var(--mo-text-muted); cursor: pointer; font-size: 1rem;
    padding: 4px; transition: color 0.2s;
}
.mo-ss-clear:hover { color: var(--mo-error); }

.mo-ss-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: var(--mo-card-bg); border: 2px solid var(--mo-primary);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    max-height: 320px; overflow-y: auto;
}
.mo-ss-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; transition: background 0.15s;
    border-bottom: 1px solid var(--mo-border);
}
.mo-ss-item:last-child { border-bottom: none; }
.mo-ss-item:hover, .mo-ss-item.mo-ss-highlighted { background: rgba(41,112,125,0.08); }
.mo-ss-item img {
    width: 38px; height: 38px; object-fit: contain; border-radius: 8px;
    border: 1px solid var(--mo-border); flex-shrink: 0; background: #fff;
}
.mo-ss-item-icon {
    width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0;
    background: rgba(41,112,125,0.1); display: flex;
    align-items: center; justify-content: center; color: var(--mo-primary);
    font-size: 0.95rem;
}
.mo-ss-item-info { flex: 1; min-width: 0; }
.mo-ss-item-info h4 {
    font-size: 0.9rem; margin-bottom: 2px; color: var(--mo-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mo-ss-item-info p { font-size: 0.78rem; color: var(--mo-text-muted); }
.mo-ss-item-servicos { display: flex; gap: 6px; margin-top: 3px; }
.mo-ss-item-servicos span {
    font-size: 0.7rem; font-weight: 700; padding: 2px 8px;
    border-radius: 10px;
}
.mo-ss-tag-matricula { background: rgba(41,112,125,0.12); color: var(--mo-primary); }
.mo-ss-tag-inscricao { background: rgba(61,158,120,0.12); color: var(--mo-secondary); }

.mo-ss-empty {
    padding: 24px; text-align: center; color: var(--mo-text-muted); font-size: 0.9rem;
}
.mo-ss-empty i { margin-right: 6px; }

.mo-ss-loading {
    padding: 20px; text-align: center; color: var(--mo-text-muted); font-size: 0.9rem;
}

/* Scrollbar do dropdown */
.mo-ss-dropdown::-webkit-scrollbar { width: 6px; }
.mo-ss-dropdown::-webkit-scrollbar-track { background: transparent; }
.mo-ss-dropdown::-webkit-scrollbar-thumb { background: var(--mo-border); border-radius: 3px; }
.mo-ss-dropdown::-webkit-scrollbar-thumb:hover { background: var(--mo-text-muted); }

/* Empty */
.mo-empty { text-align: center; padding: 48px 20px; color: var(--mo-text-muted); }
.mo-empty i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.mo-empty h3 { font-size: 1.1rem; }

@media (max-width: 600px) {
    .mo-escola-preview-info { flex-direction: column; text-align: center; }
}

/* Escola Info */
.mo-escola-info {
    background: var(--mo-card-bg); border: 1px solid var(--mo-border);
    border-radius: var(--mo-radius); padding: 32px; box-shadow: var(--mo-shadow);
}
.mo-escola-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.mo-escola-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; border: 2px solid var(--mo-border); }
.mo-escola-header h2 { font-size: 1.3rem; margin-bottom: 4px; }
.mo-escola-header p { color: var(--mo-text-muted); font-size: 0.9rem; }

/* Servicos Grid */
.mo-servicos-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.mo-servico-card {
    flex: 1; min-width: 200px; padding: 24px; border-radius: var(--mo-radius);
    text-align: center; cursor: pointer; text-decoration: none;
    transition: all 0.2s; border: 2px solid transparent;
}
.mo-servico-card:hover { transform: translateY(-2px); }
.mo-servico-matricula { background: linear-gradient(135deg, #29707D, #1d5660); color: #fff; }
.mo-servico-matricula:hover { border-color: #29707D; }
.mo-servico-inscricao { background: linear-gradient(135deg, #3d9e78, #2d7d5f); color: #fff; }
.mo-servico-inscricao:hover { border-color: #3d9e78; }
.mo-servico-card i { font-size: 2rem; margin-bottom: 12px; }
.mo-servico-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.mo-servico-card p { font-size: 0.85rem; opacity: 0.85; }

/* Info Box */
.mo-info-box {
    background: rgba(41,112,125,0.08); border: 1px solid rgba(41,112,125,0.2);
    border-radius: 8px; padding: 16px; margin-top: 20px;
    color: var(--mo-primary); font-size: 0.9rem; line-height: 1.5;
}
.mo-info-box i { margin-right: 6px; }

/* Footer */
.mo-footer {
    text-align: center; padding: 24px; color: var(--mo-text-muted);
    font-size: 0.85rem; border-top: 1px solid var(--mo-border); margin-top: 48px;
}

/* ===== Painel do Candidato ===== */
.mo-perfil-header {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    border-radius: var(--mo-radius); padding: 28px 32px; color: #fff;
    margin-bottom: 24px; box-shadow: 0 4px 20px rgba(41,112,125,0.25);
}
.mo-perfil-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255,255,255,0.2); display: flex;
    align-items: center; justify-content: center;
    font-size: 1.6rem; flex-shrink: 0;
}
.mo-perfil-info h2 { font-size: 1.3rem; margin-bottom: 6px; }
.mo-perfil-detalhes { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.9rem; opacity: 0.9; }
.mo-perfil-detalhes i { margin-right: 4px; }

.mo-painel-section {
    background: var(--mo-card-bg); border: 1px solid var(--mo-border);
    border-radius: var(--mo-radius); padding: 24px 28px;
    box-shadow: var(--mo-shadow); margin-bottom: 20px;
}
.mo-section-title {
    font-size: 1.05rem; color: var(--mo-primary); margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 2px solid rgba(41,112,125,0.12);
}
.mo-section-title i { margin-right: 8px; }

/* Serviços Grid (Cards) */
.mo-servicos-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.mo-servico-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; border-radius: 14px;
    background: var(--mo-card-bg);
    border: 2px solid var(--mo-border);
    cursor: pointer; transition: all 0.25s ease;
    text-decoration: none; color: inherit;
    position: relative; overflow: hidden;
}
.mo-servico-card::before {
    content: ''; position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.25s ease;
    border-radius: 14px; z-index: 0;
}
.mo-servico-card[data-tipo="matricula"]::before {
    background: linear-gradient(135deg, rgba(41,112,125,0.04), rgba(41,112,125,0.1));
}
.mo-servico-card[data-tipo="inscricao"]::before {
    background: linear-gradient(135deg, rgba(61,158,120,0.04), rgba(61,158,120,0.1));
}
.mo-servico-card:hover::before { opacity: 1; }
.mo-servico-card:hover {
    border-color: var(--mo-primary);
    box-shadow: 0 6px 24px rgba(41,112,125,0.15);
    transform: translateY(-3px);
}
.mo-servico-card[data-tipo="inscricao"]:hover {
    border-color: var(--mo-secondary);
    box-shadow: 0 6px 24px rgba(61,158,120,0.15);
}
.mo-servico-card:active { transform: translateY(-1px); }
.mo-servico-card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0; position: relative; z-index: 1;
    transition: transform 0.25s ease;
}
.mo-servico-card:hover .mo-servico-card-icon { transform: scale(1.1); }
.mo-servico-card-icon.matricula {
    background: linear-gradient(135deg, rgba(41,112,125,0.12), rgba(41,112,125,0.2));
    color: var(--mo-primary);
}
.mo-servico-card-icon.inscricao {
    background: linear-gradient(135deg, rgba(61,158,120,0.12), rgba(61,158,120,0.2));
    color: var(--mo-secondary);
}
.mo-servico-card-body {
    flex: 1; min-width: 0; position: relative; z-index: 1;
}
.mo-servico-card-body h4 {
    font-size: 1rem; font-weight: 700; margin: 0 0 4px;
    color: var(--mo-text);
}
.mo-servico-card-body p {
    font-size: 0.85rem; color: var(--mo-text-muted); margin: 0;
    line-height: 1.4;
}
.mo-servico-card-arrow {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(41,112,125,0.08); color: var(--mo-primary);
    font-size: 0.85rem; flex-shrink: 0; position: relative; z-index: 1;
    transition: all 0.25s ease;
}
.mo-servico-card[data-tipo="inscricao"] .mo-servico-card-arrow {
    background: rgba(61,158,120,0.08); color: var(--mo-secondary);
}
.mo-servico-card:hover .mo-servico-card-arrow {
    background: var(--mo-primary); color: #fff;
    transform: translateX(4px);
}
.mo-servico-card[data-tipo="inscricao"]:hover .mo-servico-card-arrow {
    background: var(--mo-secondary); color: #fff;
}

/* Candidatura Card */
.mo-candidatura-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; border: 1px solid var(--mo-border);
    border-radius: 10px; cursor: pointer; transition: all 0.2s;
    margin-bottom: 10px; background: var(--mo-card-bg);
}
.mo-candidatura-card:hover {
    border-color: var(--mo-primary); box-shadow: 0 2px 12px rgba(41,112,125,0.1);
    transform: translateX(4px);
}
.mo-candidatura-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.mo-candidatura-icon.matricula { background: rgba(41,112,125,0.1); color: var(--mo-primary); }
.mo-candidatura-icon.inscricao { background: rgba(61,158,120,0.1); color: var(--mo-secondary); }
.mo-candidatura-body { flex: 1; min-width: 0; }
.mo-candidatura-body h4 { font-size: 0.95rem; margin-bottom: 3px; color: var(--mo-text); }
.mo-candidatura-body p { font-size: 0.82rem; color: var(--mo-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-candidatura-data { font-size: 0.78rem; color: var(--mo-text-muted); display: block; margin-top: 2px; }
.mo-candidatura-data i { margin-right: 4px; }

/* Candidatura progress bar */
.mo-candidatura-progress {
    height: 4px; background: var(--mo-border); border-radius: 2px; margin-top: 8px; overflow: hidden;
}
.mo-candidatura-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--mo-primary), var(--mo-secondary));
    border-radius: 2px; transition: width 0.5s ease;
}

/* Estado badges via CSS classes */
.mo-candidatura-estado, .mo-estado-badge {
    padding: 5px 14px; border-radius: 20px; font-size: 0.78rem;
    font-weight: 700; white-space: nowrap; flex-shrink: 0;
    display: inline-block;
}
.mo-estado-badge { padding: 8px 20px; font-size: 0.95rem; }
.mo-estado-rascunho { background: var(--mo-bg); color: var(--mo-text-muted); }
.mo-estado-submetido { background: #e6fffa; color: var(--mo-primary); }
.mo-estado-aprovado { background: var(--mo-success-bg-strong); color: var(--mo-secondary); }
.mo-estado-pagamento_pendente { background: var(--mo-warning-bg); color: var(--mo-warning); }
.mo-estado-pago { background: var(--mo-success-bg-strong); color: var(--mo-secondary); }
.mo-estado-finalizado { background: var(--mo-success-bg-strong); color: var(--mo-success-dark); }
.mo-estado-rejeitado { background: var(--mo-error-bg); color: var(--mo-error); }
.mo-estado-cancelado { background: var(--mo-bg); color: var(--mo-text-muted); }
.mo-estado-erro_finalizacao { background: var(--mo-error-bg); color: var(--mo-error); }

.mo-candidatura-arrow { color: var(--mo-text-muted); font-size: 0.9rem; flex-shrink: 0; }

/* Empty state */
.mo-empty-state {
    text-align: center; padding: 48px 24px;
}
.mo-empty-icon {
    width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(41,112,125,0.08), rgba(41,112,125,0.15));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--mo-primary); opacity: 0.6;
}
.mo-empty-state h3 { font-size: 1.1rem; color: var(--mo-text); margin: 0 0 8px; }
.mo-empty-state p { font-size: 0.9rem; color: var(--mo-text-muted); margin: 0; }

/* Skeleton loading */
.mo-skeleton-card {
    height: 72px; border-radius: 10px; margin-bottom: 10px;
    background: linear-gradient(90deg, var(--mo-border) 25%, #f0f0f0 50%, var(--mo-border) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
}
@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Voltar button */
.mo-btn-voltar {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    background: var(--mo-bg-light); border: 1px solid var(--mo-border);
    color: var(--mo-primary); font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s; margin-bottom: 16px;
    font-family: var(--inter-Font);
}
.mo-btn-voltar:hover { background: var(--mo-primary); color: #fff; border-color: var(--mo-primary); }

/* Detalhe section cards */
.mo-detalhe-seccao {
    border: 1px solid var(--mo-border); border-radius: var(--mo-radius);
    margin-bottom: 14px; overflow: hidden;
}
.mo-detalhe-seccao-header {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: linear-gradient(135deg, rgba(41,112,125,0.06), rgba(41,112,125,0.02));
    border-bottom: 1px solid var(--mo-border);
}
.mo-detalhe-seccao-header i { color: var(--mo-primary); font-size: 0.9rem; }
.mo-detalhe-seccao-header h4 { margin: 0; font-size: 0.9rem; color: var(--mo-primary); }
.mo-detalhe-seccao-body { padding: 6px 16px; }

.mo-info-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mo-info-label { color: var(--mo-text-muted); font-size: 0.85rem; }
.mo-info-valor { font-size: 0.85rem; font-weight: 600; text-align: right; }

/* Documentos anexados no detalhe */
.mo-doc-anexado {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--mo-bg-light);
    border: 1px solid var(--mo-border); border-radius: 8px; margin-bottom: 8px;
}
.mo-doc-anexado-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mo-doc-anexado-tipo {
    display: block; font-size: 0.78rem; color: var(--mo-text-muted);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.mo-doc-anexado-nome {
    display: block; font-size: 0.88rem; font-weight: 600; color: var(--mo-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Polling indicator */
.mo-polling-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 8px; margin-top: 12px;
    background: #e6fffa; border: 1px solid rgba(41,112,125,0.15);
    font-size: 0.82rem; color: var(--mo-primary);
}
.mo-polling-indicator span { margin-left: auto; font-size: 0.78rem; color: var(--mo-text-muted); }

/* Alert persistent */
.mo-alert-persistent { position: relative; padding-right: 40px; }
.mo-alert-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1rem;
    color: inherit; opacity: 0.6;
}
.mo-alert-close:hover { opacity: 1; }

/* Upload area (RUPE) */
.mo-upload-area {
    margin-top: 16px; padding: 24px; text-align: center;
    border: 2px dashed var(--mo-primary); border-radius: 12px;
    background: rgba(41,112,125,0.03); cursor: pointer;
    transition: all 0.2s; position: relative;
}
.mo-upload-area:hover { background: rgba(41,112,125,0.08); border-color: var(--mo-primary-dark); }
.mo-upload-area i { font-size: 2rem; color: var(--mo-primary); margin-bottom: 8px; display: block; }
.mo-upload-area p { margin: 0 0 4px; font-size: 0.9rem; color: var(--mo-text); font-weight: 600; }
.mo-upload-area span { font-size: 0.82rem; color: var(--mo-text-muted); }
.mo-upload-area input[type="file"] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}

/* RUPE payment steps */
.mo-pag-steps { margin: 16px 0; }
.mo-pag-step {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mo-pag-step-num {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.82rem;
    background: var(--mo-border); color: var(--mo-text-muted);
}
.mo-pag-step.active .mo-pag-step-num { background: var(--mo-primary); color: #fff; }
.mo-pag-step.done .mo-pag-step-num { background: var(--mo-secondary); color: #fff; }
.mo-pag-step-info { font-size: 0.88rem; line-height: 1.5; }
.mo-pag-step-info code {
    background: rgba(41,112,125,0.08); padding: 2px 8px; border-radius: 4px;
    font-family: monospace; font-size: 0.9rem; font-weight: 700; color: var(--mo-primary);
}

/* Form progress bar */
.mo-form-progress {
    height: 4px; background: var(--mo-border); border-radius: 2px;
    margin-bottom: 20px; overflow: hidden;
}
.mo-form-progress-bar {
    height: 100%; border-radius: 2px;
    background: linear-gradient(90deg, var(--mo-primary), var(--mo-secondary));
    transition: width 0.4s ease;
}

/* Tab completion indicator */
.mo-tab-btn .mo-tab-check { display: none; margin-left: 4px; font-size: 0.7rem; }
.mo-tab-btn.completed .mo-tab-check { display: inline; color: var(--mo-secondary); }
.mo-tab-btn.completed .mo-tab-num {
    background: var(--mo-secondary); color: #fff;
}
.mo-tab-btn .mo-tab-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; font-size: 0.72rem; font-weight: 700;
    background: var(--mo-border); color: var(--mo-text-muted);
    margin-right: 4px; transition: all 0.2s;
}
.mo-tab-btn.active .mo-tab-num { background: var(--mo-primary); color: #fff; }

/* Doc badges */
.mo-doc-badge-obr {
    display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.68rem;
    background: var(--mo-error-bg); color: var(--mo-error); font-weight: 600;
    margin-left: 6px; vertical-align: middle;
}
.mo-doc-badge-opc {
    display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.68rem;
    background: var(--mo-bg); color: var(--mo-text-muted); font-weight: 600;
    margin-left: 6px; vertical-align: middle;
}

@media (max-width: 600px) {
    .mo-perfil-header { flex-direction: column; text-align: center; padding: 24px 20px; }
    .mo-perfil-detalhes { justify-content: center; }
    .mo-servicos-grid { grid-template-columns: 1fr; }
    .mo-candidatura-card { flex-wrap: wrap; }
    .mo-tab-btn .mo-tab-text { display: none; }
    .mo-tab-btn .mo-tab-num { margin-right: 0; }
    .mo-btn-voltar { width: 100%; justify-content: center; }
    input, select, textarea { font-size: 16px !important; }
}

/* Utilities */
.hidden { display: none !important; }

/* ===== Candidato Pages ===== */
.mo-auth-container {
    max-width: 520px; margin: 48px auto; padding: 0 20px;
}
.mo-auth-card {
    background: var(--mo-card-bg); border: 1px solid var(--mo-border);
    border-radius: var(--mo-radius); padding: 40px 36px; box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.mo-auth-card h2 { text-align: center; margin-bottom: 10px; color: var(--mo-primary); font-size: 1.5rem; }
.mo-auth-card p { text-align: center; color: var(--mo-text-muted); margin-bottom: 28px; font-size: 1rem; }

/* Auth Tabs (Entrar / Registar) */
.mo-auth-tabs {
    display: flex; gap: 0; margin-bottom: 28px;
    border-radius: 10px; overflow: hidden;
    border: 2px solid var(--mo-border); background: var(--mo-bg);
}
.mo-auth-tab {
    flex: 1; padding: 14px 20px; font-size: 1rem; font-weight: 600;
    background: transparent; border: none; cursor: pointer;
    color: var(--mo-text-muted); transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mo-auth-tab:hover { color: var(--mo-primary); background: rgba(41,112,125,0.05); }
.mo-auth-tab.active {
    background: var(--mo-primary); color: #fff;
}

.mo-form-group { margin-bottom: 20px; }
.mo-form-group label {
    display: block; font-weight: 600; font-size: 0.88rem;
    margin-bottom: 8px; color: var(--mo-text);
    letter-spacing: 0.01em;
}
/* Campos do formulário — mesmo formato dos selects do portal (altura 52px,
   borda 1.5px, raio 6px, foco na cor do cabeçalho). Ver bloco PORTAL abaixo. */
.mo-form-group input,
.mo-form-group textarea,
.mo-form-group select {
    width: 100%;
    box-sizing: border-box;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #d9e0e5;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--inter-Font);
    outline: none;
    background: var(--mo-card-bg);
    color: var(--pt-escuro, #0d1b1f);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.mo-form-group textarea { height: auto; min-height: 104px; padding: 14px 16px; font-weight: 400; line-height: 1.6; }
.mo-form-group input::placeholder,
.mo-form-group textarea::placeholder { color: var(--mo-text-muted); font-weight: 400; }
.mo-form-group select {
    cursor: pointer; appearance: none; -webkit-appearance: none; -moz-appearance: none;
    padding-right: 44px;
    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='%23718096' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.mo-form-group input:hover,
.mo-form-group textarea:hover,
.mo-form-group select:hover { border-color: #b9c4cb; }
.mo-form-group input:focus,
.mo-form-group textarea:focus,
.mo-form-group select:focus {
    border-color: var(--pt-escuro, #0d1b1f);
    box-shadow: 0 0 0 3px rgba(13, 27, 31, 0.10);
}
.mo-form-group input[type="date"] { color: var(--pt-escuro, #0d1b1f); }

.mo-form-btn {
    width: 100%; padding: 16px; border: none; border-radius: 10px;
    background: var(--mo-primary); color: #fff; font-weight: 700;
    font-size: 1.05rem; cursor: pointer; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 8px;
}
.mo-form-btn:hover { background: var(--mo-primary-dark); }
.mo-form-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.mo-form-link { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.mo-form-link a { color: var(--mo-primary); text-decoration: none; font-weight: 600; }

.mo-alert { padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.mo-alert-error { background: var(--mo-error-bg); color: var(--mo-error-text); border: 1px solid var(--mo-error-border); }
.mo-alert-success { background: var(--mo-success-bg-strong); color: var(--mo-success-dark); border: 1px solid var(--mo-success-border); }

/* Campo com erro */
.mo-campo-erro {
    border-color: var(--mo-error) !important; background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.15) !important;
}
.mo-erro-msg {
    display: block; font-size: 0.78rem; color: var(--mo-error); margin-top: 4px;
    font-weight: 500;
}
@keyframes shakeX {
    0%,100% { transform: translateX(0); }
    20%,60% { transform: translateX(-4px); }
    40%,80% { transform: translateX(4px); }
}
.mo-campo-erro { animation: shakeX 0.4s ease; }

/* ===== Tabs (Formulário multi-step) ===== */
.mo-tabs-nav {
    display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px;
    border-bottom: 2px solid var(--mo-border); padding-bottom: 0;
}
.mo-tab-btn {
    padding: 10px 16px; font-size: 0.85rem; font-weight: 600;
    background: none; border: none; border-bottom: 3px solid transparent;
    color: var(--mo-text-muted); cursor: pointer; white-space: nowrap;
    transition: all 0.2s;
}
.mo-tab-btn:hover { color: var(--mo-primary); }
.mo-tab-btn.active { color: var(--mo-primary); border-bottom-color: var(--mo-primary); }
.mo-tab-btn.completed { color: var(--mo-secondary); }

.mo-tab-panel { display: none; }
.mo-tab-panel.active { display: block; }

.mo-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .mo-form-row { grid-template-columns: 1fr; } }

.mo-form-actions {
    display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--mo-border);
}

/* ===== Estado / Timeline ===== */
.mo-timeline {
    display: flex; align-items: flex-start; gap: 0; margin: 32px 0;
    overflow-x: auto; padding: 10px 0;
}
.mo-timeline-step {
    display: flex; flex-direction: column; align-items: center;
    min-width: 100px; position: relative; flex: 1;
}
.mo-timeline-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: #fff;
    background: var(--mo-border); transition: all 0.3s;
    z-index: 1;
}
.mo-timeline-step.active .mo-timeline-dot { background: var(--mo-primary); box-shadow: 0 0 0 4px rgba(41,112,125,0.2); }
.mo-timeline-step.completed .mo-timeline-dot { background: var(--mo-secondary); }
.mo-timeline-step.rejected .mo-timeline-dot { background: var(--mo-error); }
.mo-timeline-label { font-size: 0.75rem; text-align: center; margin-top: 8px; color: var(--mo-text-muted); max-width: 90px; }
.mo-timeline-step.active .mo-timeline-label { color: var(--mo-primary); font-weight: 600; }
.mo-timeline-line {
    position: absolute; top: 18px; left: 50%; width: 100%;
    height: 3px; background: var(--mo-border); z-index: 0;
}
.mo-timeline-step.completed .mo-timeline-line { background: var(--mo-secondary); }
.mo-timeline-step:last-child .mo-timeline-line { display: none; }

/* Ref Pagamento Box */
.mo-pagamento-box {
    background: linear-gradient(135deg, #29707D, #1d5660);
    color: #fff; border-radius: var(--mo-radius); padding: 24px; margin: 24px 0;
}
.mo-pagamento-box h3 { margin-bottom: 16px; font-size: 1.1rem; }
.mo-pagamento-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.95rem; }
.mo-pagamento-item:last-child { border-bottom: none; }
.mo-pagamento-label { opacity: 0.85; }
.mo-pagamento-valor { font-weight: 700; }

/* Document upload cards */
.mo-doc-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border: 2px dashed var(--mo-border); border-radius: var(--mo-radius);
    cursor: pointer; transition: all 0.2s; margin-bottom: 10px; background: var(--mo-card-bg);
}
.mo-doc-card:hover { border-color: var(--mo-primary); background: rgba(41,112,125,0.03); }
.mo-doc-card-icon { font-size: 1.5rem; color: var(--mo-text-muted); flex-shrink: 0; width: 36px; text-align: center; }
.mo-doc-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-doc-card-label { font-weight: 600; font-size: 0.9rem; color: var(--mo-text); }
.mo-doc-card-status { font-size: 0.82rem; color: var(--mo-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-doc-card-status i { margin-right: 4px; }

/* Done state */
.mo-doc-done { border-style: solid; border-color: var(--mo-secondary); background: var(--mo-success-bg); }
.mo-doc-done .mo-doc-card-icon { color: var(--mo-secondary); }
.mo-doc-done .mo-doc-card-status { color: var(--mo-secondary); }
.mo-doc-done:hover { background: #e6fbee; }

/* Loading state */
.mo-doc-loading { border-color: var(--mo-primary); opacity: 0.7; pointer-events: none; }
.mo-doc-loading .mo-doc-card-icon { color: var(--mo-primary); }

/* Botão Ver documento */
.mo-doc-ver-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 4px;
    padding: 6px 12px; border: 2px solid var(--mo-primary); border-radius: 8px;
    color: var(--mo-primary); text-decoration: none; font-size: 0.85rem; font-weight: 600;
    transition: all 0.2s;
}
.mo-doc-ver-btn:hover { background: var(--mo-primary); color: #fff; }

/* Resumo / Revisão */
.mo-resumo-seccao {
    border: 1px solid var(--mo-border); border-radius: var(--mo-radius);
    margin-bottom: 16px; overflow: hidden;
}
.mo-resumo-seccao-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: linear-gradient(135deg, rgba(41,112,125,0.06), rgba(41,112,125,0.02));
    border-bottom: 1px solid var(--mo-border);
}
.mo-resumo-seccao-header h4 { margin: 0; font-size: 0.92rem; color: var(--mo-primary); }
.mo-resumo-editar {
    font-size: 0.82rem; color: var(--mo-primary); text-decoration: none;
    display: flex; align-items: center; gap: 4px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px; transition: background 0.2s;
}
.mo-resumo-editar:hover { background: rgba(41,112,125,0.08); }
.mo-resumo-seccao-body { padding: 8px 16px; }
.mo-resumo-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.mo-resumo-item:last-child { border-bottom: none; }
.mo-resumo-label { color: var(--mo-text-muted); font-size: 0.85rem; }
.mo-resumo-valor { font-weight: 600; font-size: 0.85rem; color: var(--mo-text); text-align: right; }

/* Documentos no resumo */
.mo-resumo-doc {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; background: var(--mo-bg-light); border-radius: 8px;
    margin-bottom: 8px; border: 1px solid var(--mo-border);
}
.mo-resumo-doc:last-child { margin-bottom: 0; }
.mo-resumo-doc-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mo-resumo-doc-info > i { font-size: 1.2rem; color: var(--mo-primary); flex-shrink: 0; }
.mo-resumo-doc-info > div { display: flex; flex-direction: column; min-width: 0; }
.mo-resumo-doc-tipo { font-size: 0.78rem; color: var(--mo-text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.mo-resumo-doc-nome { font-size: 0.85rem; font-weight: 600; color: var(--mo-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo-resumo-doc-preview {
    background: none; border: 2px solid var(--mo-primary); border-radius: 8px;
    color: var(--mo-primary); cursor: pointer; padding: 6px 12px; font-size: 0.9rem;
    display: flex; align-items: center; gap: 4px; transition: all 0.2s; flex-shrink: 0;
}
.mo-resumo-doc-preview:hover { background: var(--mo-primary); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
    .mo-navbar { padding: 12px 16px; }
    .mo-hero { padding: 32px 16px; }
    .mo-hero h1 { font-size: 1.5rem; }
    .mo-main { padding: 20px 12px; }
    .mo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .mo-escola-header { flex-direction: column; text-align: center; }
    .mo-servicos-grid { flex-direction: column; }
    .mo-tabs-nav { gap: 0; }
    .mo-tab-btn { padding: 8px 10px; font-size: 0.78rem; }
    .mo-timeline { flex-direction: column; align-items: flex-start; }
    .mo-timeline-step { flex-direction: row; gap: 12px; min-width: auto; width: 100%; }
    .mo-timeline-label { margin-top: 0; text-align: left; max-width: none; }
    .mo-timeline-line { display: none; }
}

/* Modal Overlay */
.mo-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.mo-modal-overlay.hidden { display: none; }

/* OTP 6-digit input */
.mo-otp-group {
    display: flex; justify-content: center; gap: 8px; margin-bottom: 20px;
}
.mo-otp-input {
    width: 48px; height: 56px; border: 2px solid var(--mo-border); border-radius: 10px;
    text-align: center; font-size: 1.5rem; font-weight: 700; font-family: var(--poppins-Font);
    color: var(--mo-primary); background: var(--mo-card-bg);
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.mo-otp-input:focus {
    border-color: var(--mo-primary); box-shadow: 0 0 0 3px rgba(41,112,125,0.15);
}
.mo-otp-input.filled {
    border-color: var(--mo-primary); background: #f0fdfa;
}
@media (max-width: 480px) {
    .mo-otp-input { width: 40px; height: 48px; font-size: 1.2rem; }
    .mo-otp-group { gap: 6px; }
}
/* =============================================
   Serviços Online — Homepage Redesign
   ============================================= */

/* Navbar */

/* Hero */

/* Main */
.so-main { max-width: 640px; margin: -20px auto 0; padding: 0 20px 40px; position: relative; z-index: 2; }

/* Steps */

/* Tipo Selector */

/* Search Section */

/* Search Input */
.so-search-box { position: relative; margin-bottom: 20px; }

.so-search-clear {
    background: none; border: none; padding: 0 14px; cursor: pointer;
    color: var(--mo-text-muted); font-size: 0.9rem;
}
.so-search-clear:hover { color: var(--mo-error); }

/* Dropdown */
.so-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: var(--mo-card-bg); border: 1px solid var(--mo-border);
    border-radius: 10px; max-height: 320px; overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* Escola Card Preview */

/* Botão Continuar */
.so-btn-continuar {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--poppins-Font);
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    color: #fff; box-shadow: 0 4px 16px rgba(41,112,125,0.25);
}
.so-btn-continuar:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(41,112,125,0.35); }
.so-btn-continuar:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Como Funciona */

/* Footer */
.so-footer {
    padding: 20px; text-align: center; font-size: 0.82rem; color: var(--mo-text-muted);
    border-top: 1px solid var(--mo-border); background: var(--mo-bg);
}
.so-footer strong { color: var(--mo-primary); }

/* Info box */

/* Responsive */
@media (max-width: 600px) {
    .so-hero { padding: 40px 20px 60px; }
    .so-hero h1 { font-size: 1.6rem; }
    .so-hero-stats { gap: 16px; }
    .so-hero-stat span { display: none; }
    .so-main { padding: 0 12px 32px; }
    .so-tipo-cards { grid-template-columns: 1fr; }
    .so-steps { padding: 14px; gap: 0; }
    .so-step span { font-size: 0.68rem; }
    .so-navbar { padding: 12px 16px; }
    .so-funciona-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   Auth Page — Split Layout
   ============================================= */

body { margin: 0; padding: 0; min-height: 100vh; }

.auth-layout { display: flex; min-height: 100vh; }

/* Brand Side */
.auth-brand {
    flex: 0 0 420px; display: flex; flex-direction: column;
    background: linear-gradient(160deg, #29707D 0%, #1a4f5a 50%, #0e3a42 100%);
    color: #fff; padding: 40px; position: relative; overflow: hidden;
}
.auth-brand::before {
    content: ''; position: absolute; top: -100px; right: -100px;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(61,158,120,0.08);
}
.auth-brand::after {
    content: ''; position: absolute; bottom: -60px; left: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,0.03);
}
.auth-brand-content { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.auth-brand-logo {
    display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
    font-size: 1.3rem; font-weight: 800; font-family: var(--poppins-Font);
}
.auth-brand-logo i { font-size: 1.5rem; }
.auth-brand-text h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.auth-brand-text h1 span { color: #6ee7b7; }
.auth-brand-text p { font-size: 1rem; opacity: 0.8; line-height: 1.6; margin-bottom: 32px; }

.auth-brand-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feature {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.9rem; font-weight: 500; opacity: 0.85;
}
.auth-feature i { color: #6ee7b7; font-size: 0.85rem; }

.auth-brand-footer {
    font-size: 0.78rem; opacity: 0.5; position: relative; z-index: 1;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
}

/* Form Side */
.auth-form-side {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 32px; background: var(--mo-bg);
}
.auth-form-container { width: 100%; max-width: 420px; }

/* Tabs */
.auth-tabs {
    display: flex; gap: 4px; margin-bottom: 28px;
    background: var(--mo-card-bg); border-radius: 12px; padding: 4px;
    border: 1px solid var(--mo-border);
}
.auth-tab {
    flex: 1; padding: 12px; border: none; background: transparent;
    border-radius: 10px; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all 0.25s; color: var(--mo-text-muted);
    font-family: var(--poppins-Font); display: flex; align-items: center;
    justify-content: center; gap: 6px;
}
.auth-tab.active {
    background: var(--mo-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(41,112,125,0.25);
}
.auth-tab:not(.active):hover { color: var(--mo-primary); background: rgba(41,112,125,0.05); }

/* Panel */
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: authFadeIn 0.3s ease; }
@keyframes authFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.auth-panel-header { margin-bottom: 24px; }
.auth-panel-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--mo-text); margin-bottom: 4px; }
.auth-panel-header p { font-size: 0.9rem; color: var(--mo-text-muted); }

/* Fields */
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block; font-size: 0.82rem; font-weight: 600; color: var(--mo-text);
    margin-bottom: 6px;
}
.auth-field label i { color: var(--mo-primary); margin-right: 4px; width: 14px; }
.auth-field input {
    width: 100%; padding: 12px 14px; border: 2px solid var(--mo-border);
    border-radius: 10px; font-size: 0.92rem; transition: all 0.2s;
    font-family: var(--inter-Font); background: var(--mo-card-bg); color: var(--mo-text);
}
.auth-field input:focus { border-color: var(--mo-primary); outline: none; box-shadow: 0 0 0 3px rgba(41,112,125,0.1); }
.auth-field input::placeholder { color: #b0bec5; }

.auth-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Password toggle */
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 44px; }
.auth-toggle-pw {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 8px;
    color: var(--mo-text-muted); font-size: 0.9rem;
}
.auth-toggle-pw:hover { color: var(--mo-primary); }

/* Submit */
.auth-submit {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--poppins-Font); margin-top: 4px;
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    color: #fff; box-shadow: 0 4px 16px rgba(41,112,125,0.25);
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(41,112,125,0.35); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Links */
.auth-link { text-align: center; margin-top: 16px; }
.auth-link a { color: var(--mo-primary); font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

.auth-mobile-link {
    text-align: center; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--mo-border);
}
.auth-mobile-link a { color: var(--mo-text-muted); font-size: 0.85rem; text-decoration: none; }
.auth-mobile-link a i { margin-right: 4px; }

/* Modal */
.auth-modal {
    background: var(--mo-card-bg); border-radius: 16px; padding: 32px;
    max-width: 420px; width: 90%; position: relative;
    animation: authFadeIn 0.3s ease; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-modal h2 { text-align: center; font-size: 1.2rem; margin-bottom: 6px; color: var(--mo-text); }
.auth-modal p { text-align: center; font-size: 0.88rem; color: var(--mo-text-muted); margin-bottom: 20px; }
.auth-modal-close {
    position: absolute; top: 12px; right: 12px; background: none; border: none;
    font-size: 1.1rem; color: var(--mo-text-muted); cursor: pointer; padding: 8px;
    border-radius: 8px; transition: all 0.2s;
}
.auth-modal-close:hover { background: var(--mo-bg); color: var(--mo-text); }
.auth-modal-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--mo-primary), var(--mo-primary-dark));
    color: #fff; box-shadow: 0 4px 16px rgba(41,112,125,0.2);
}
.auth-modal-back { text-align: center; margin-top: 16px; }
.auth-modal-back a { color: var(--mo-text-muted); font-size: 0.85rem; text-decoration: none; }
.auth-modal-back a:hover { color: var(--mo-primary); }
.auth-otp-label { display: block; text-align: center; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 900px) {
    .auth-brand { display: none; }
    .auth-form-side { padding: 20px; }
}
@media (max-width: 500px) {
    .auth-fields-row { grid-template-columns: 1fr; }
    .auth-form-container { max-width: 100%; }
}

/* =============================================
   Global Loader Overlay
   ============================================= */
.so-loader-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.so-loader-overlay.active { opacity: 1; pointer-events: all; }

.so-loader-card {
    background: var(--mo-card-bg); border-radius: 20px; padding: 40px 48px;
    text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    max-width: 360px; width: 90%; animation: loaderPulseIn 0.4s ease;
}
@keyframes loaderPulseIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.so-loader-spinner {
    width: 56px; height: 56px; margin: 0 auto 20px; position: relative;
}
.so-loader-spinner::before, .so-loader-spinner::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid transparent;
}
.so-loader-spinner::before {
    border-top-color: var(--mo-primary); animation: loaderSpin 0.8s linear infinite;
}
.so-loader-spinner::after {
    border-bottom-color: var(--mo-secondary); animation: loaderSpin 1.2s linear infinite reverse;
    inset: 6px;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }

.so-loader-icon {
    width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.so-loader-icon.success { background: #dcfce7; color: #16a34a; }
.so-loader-icon.error { background: #fee2e2; color: #dc2626; }
.so-loader-icon.success i, .so-loader-icon.error i { animation: loaderIconPop 0.4s ease; }
@keyframes loaderIconPop {
    0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}

.so-loader-title {
    font-family: var(--poppins-Font); font-size: 1.1rem; font-weight: 700;
    color: var(--mo-text); margin-bottom: 6px;
}
.so-loader-msg {
    font-size: 0.88rem; color: var(--mo-text-muted); line-height: 1.5; margin-bottom: 0;
}
.so-loader-progress {
    margin-top: 16px; height: 4px; background: var(--mo-border); border-radius: 4px; overflow: hidden;
}
.so-loader-progress-bar {
    height: 100%; background: linear-gradient(90deg, var(--mo-primary), var(--mo-secondary));
    border-radius: 4px; transition: width 0.4s ease; width: 0%;
}
.so-loader-progress-bar.indeterminate {
    width: 30%; animation: loaderIndeterminate 1.5s ease-in-out infinite;
}
@keyframes loaderIndeterminate {
    0% { margin-left: 0; width: 30%; }
    50% { margin-left: 40%; width: 50%; }
    100% { margin-left: 100%; width: 0%; }
}
.so-loader-steps {
    margin-top: 16px; display: flex; flex-direction: column; gap: 8px; text-align: left;
}
.so-loader-step {
    display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--mo-text-muted);
    transition: all 0.3s;
}
.so-loader-step.active { color: var(--mo-primary); font-weight: 600; }
.so-loader-step.done { color: var(--mo-secondary); }
.so-loader-step-icon { width: 20px; text-align: center; font-size: 0.75rem; }
.so-loader-step.active .so-loader-step-icon i { animation: loaderSpin 1s linear infinite; }

/* Validação BI ↔ Província */
.bi-prov-ok {
    display: flex; align-items: center; gap: 5px;
    padding: 4px 10px; margin-top: 4px;
    font-size: 0.72rem; font-weight: 500;
    color: #15803d; background: #f0fdf4;
    border-radius: 6px; border: 1px solid #bbf7d0;
}
.bi-prov-erro {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; margin-top: 4px;
    font-size: 0.72rem; font-weight: 500;
    color: #dc2626; background: #fef2f2;
    border-radius: 6px; border: 1px solid #fecaca;
}
.bi-prov-erro strong, .bi-prov-ok strong { font-weight: 700; }

/* ═══ Escolas Grid Circular ═══ */

/* Avatar ring */

/* Check overlay */

/* Nome */

/* Local */

/* Tags matrícula/inscrição */

.so-tag-matricula {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.so-tag-inscricao {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
}

/* Responsive */
@media (max-width: 480px) {
    .so-escolas-grid { gap: 12px; }
    .so-escola-circle-card { width: 110px; padding: 12px 4px; }
    .so-escola-avatar-ring { width: 64px; height: 64px; }
    .so-escola-avatar-img, .so-escola-avatar-fallback { width: 58px; height: 58px; font-size: 1.1rem; }
    .so-escola-circle-nome { font-size: 0.75rem; }
    .so-escola-check-overlay { width: 20px; height: 20px; font-size: 0.6rem; }
}

/* ==========================================================================
   Serviços Online sem conta (2026-08) — BI como 1.º campo, Código de Inscrição
   ========================================================================== */

/* Campos bloqueados até o Bilhete de Identidade ser validado */
.so-bloqueado {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.6);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

/* Ajuda por baixo do campo do BI */
.mo-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--mo-text-muted);
    line-height: 1.5;
}
.mo-hint-ok    { color: var(--mo-success, #16a34a); font-weight: 600; }
.mo-hint-erro  { color: var(--mo-danger, #dc2626); font-weight: 600; }
.mo-hint-aviso { color: var(--mo-warning, #d97706); font-weight: 600; }

/* Recordatório do BI na tab da naturalidade */
.mo-info-inline {
    font-size: 0.85rem;
    color: var(--mo-text-muted);
    margin-bottom: 14px;
}
.mo-info-inline i { margin-right: 6px; color: var(--mo-primary); }

/* Ecrã final da submissão — o Código de Inscrição */
.so-sucesso-card {
    background: var(--mo-card-bg, #fff);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 620px;
    margin: 40px auto;
}
.so-sucesso-icon { font-size: 3.4rem; color: var(--mo-success, #16a34a); margin-bottom: 14px; }
.so-sucesso-card h2 { font-family: var(--poppins-Font); font-size: 1.5rem; margin: 0 0 10px; color: var(--mo-text); }
.so-sucesso-card p { color: var(--mo-text-muted); line-height: 1.6; margin: 0 0 18px; }
.so-sucesso-nota { font-size: 0.85rem; }
.so-sucesso-nota i { margin-right: 6px; color: var(--mo-primary); }

.so-codigo-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--mo-bg, #f6f8fb);
    border: 2px dashed var(--mo-primary);
    border-radius: 14px;
    padding: 22px 18px;
    margin: 22px 0;
}
.so-codigo-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mo-text-muted); }
.so-codigo-valor {
    font-family: var(--poppins-Font);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--mo-primary);
    word-break: break-all;
}
.so-codigo-copiar {
    border: none;
    background: var(--mo-primary);
    color: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--poppins-Font);
}
.so-codigo-copiar:hover { filter: brightness(1.08); }

.so-sucesso-accoes { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.so-btn-secundario {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 10px;
    border: 1.5px solid var(--mo-border, #d8dee9);
    color: var(--mo-text-muted);
    text-decoration: none;
    font-weight: 600;
    background: none;
    cursor: pointer;
    font-family: var(--poppins-Font);
}
.so-btn-secundario:hover { background: var(--mo-bg, #f6f8fb); }

/* Consulta pública */
.mo-consulta-ajuda { color: var(--mo-text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 16px; }
.mo-consulta-form { display: flex; flex-direction: column; gap: 14px; max-width: 480px; }

/* Cartão de resultado da consulta */
.mo-candidatura-codigo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--poppins-Font);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--mo-primary);
    margin-right: 10px;
}
.mo-candidatura-passo {
    margin: 8px 0 0;
    font-size: 0.83rem;
    color: var(--mo-text-muted);
    line-height: 1.5;
}
.mo-candidatura-passo i { margin-right: 4px; }
.mo-passo-erro { color: var(--mo-danger, #dc2626); }

@media (max-width: 600px) {
    .so-codigo-valor { font-size: 1.5rem; }
    .so-sucesso-card { padding: 28px 18px; }
}

/* O próximo passo é uma frase — não pode ser truncado pelo ellipsis do cartão */
.mo-candidatura-passo {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* ==========================================================================
   PORTAL (2026-08) — landing reescrita no registo institucional do portal
   nacional do Ensino Técnico-Profissional (acessoetp.ao): barra sóbria,
   hero escuro, painel de acesso rápido e SELECTS em cascata dentro de um
   cartão com passos. Prefixo .pt-* (portal).
   ========================================================================== */

:root {
    --pt-escuro: #0d1b1f;
    --pt-escuro-2: #12262b;
    --pt-linha: rgba(255, 255, 255, 0.10);
    --pt-linha-forte: rgba(255, 255, 255, 0.22);
    --pt-claro: #f4f6f8;
    --pt-accent: #3fb6a8;
}

.pt-body {
    margin: 0;
    background: var(--pt-claro);
    color: var(--mo-text);
    font-family: var(--inter-Font);
}

/* ---------- Barra institucional ---------- */
.pt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    background: var(--pt-escuro);
    border-bottom: 1px solid var(--pt-linha);
}
.pt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--poppins-Font);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.pt-brand i { color: var(--pt-accent); }
.pt-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--pt-linha-forte);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.pt-topnav-link:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--pt-accent); }

/* ---------- Hero ---------- */
.pt-hero {
    background: var(--pt-escuro);
    padding: 64px 32px 80px;
}
.pt-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: start;
}
.pt-selo { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.pt-selo-ic {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid var(--pt-linha-forte);
    border-radius: 50%;
    color: var(--pt-accent);
    font-size: 1.15rem;
}
.pt-selo-txt { display: flex; flex-direction: column; line-height: 1.35; }
.pt-selo-txt strong { color: var(--pt-accent); font-size: 0.9rem; font-weight: 700; }
.pt-selo-txt span { color: rgba(255, 255, 255, 0.72); font-size: 0.84rem; }

.pt-hero h1 {
    margin: 0 0 18px;
    font-family: var(--poppins-Font);
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}
.pt-hero-lead {
    margin: 0 0 26px;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1rem;
    line-height: 1.65;
}
.pt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pt-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--pt-linha-forte);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 500;
}
.pt-chip i { color: var(--pt-accent); font-size: 0.85rem; }
.pt-chip b { font-weight: 700; color: #fff; }

/* ---------- Painel de acesso rápido ---------- */
.pt-painel {
    border: 1px solid var(--pt-linha);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 26px;
    backdrop-filter: blur(6px);
}
.pt-painel-label {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pt-painel-lista { display: flex; flex-direction: column; gap: 10px; }
.pt-painel-item {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 18px;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.30);
    color: #fff;
    font-family: var(--inter-Font);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pt-painel-item span { display: inline-flex; align-items: center; gap: 11px; }
.pt-painel-item > i { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; transition: transform 0.18s ease; }
.pt-painel-item:hover { background: rgba(255, 255, 255, 0.10); border-color: var(--pt-accent); }
.pt-painel-item:hover > i { transform: translateX(3px); color: #fff; }

.pt-painel-nota {
    display: flex; gap: 12px;
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(63, 182, 168, 0.35);
    border-radius: 4px;
    background: rgba(63, 182, 168, 0.10);
}
.pt-painel-nota i { color: var(--pt-accent); margin-top: 2px; }
.pt-painel-nota strong { display: block; color: #fff; font-size: 0.85rem; margin-bottom: 3px; }
.pt-painel-nota span { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; line-height: 1.55; }

/* ---------- Cartão do formulário ---------- */
.pt-main { max-width: 860px; margin: -44px auto 0; padding: 0 24px 64px; position: relative; z-index: 2; }

.pt-cartao {
    background: #fff;
    border: 1px solid var(--mo-border);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(13, 27, 31, 0.12);
    overflow: hidden;
}
.pt-cartao-topo { padding: 30px 34px 20px; text-align: center; border-bottom: 1px solid var(--mo-border); }
.pt-cartao-topo h2 {
    margin: 0 0 6px;
    font-family: var(--poppins-Font);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--mo-text);
}
.pt-cartao-topo p { margin: 0; color: var(--mo-text-muted); font-size: 0.92rem; }

/* Passos */
.pt-passos {
    display: flex; gap: 4px;
    margin: 0; padding: 0 34px;
    list-style: none;
    border-bottom: 1px solid var(--mo-border);
    overflow-x: auto;
}
.pt-passo {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 16px;
    color: var(--mo-text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.pt-passo-n {
    display: grid; place-items: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--mo-border);
    color: var(--mo-text-muted);
    font-size: 0.74rem;
    font-weight: 700;
}
.pt-passo.activo { color: var(--mo-primary); border-bottom-color: var(--mo-primary); }
.pt-passo.activo .pt-passo-n { background: var(--mo-primary); color: #fff; }

.pt-cartao-corpo { padding: 28px 34px 8px; }
.pt-ajuda {
    margin: 0 0 24px;
    padding: 13px 16px;
    background: var(--mo-bg-light);
    border-left: 3px solid var(--mo-primary);
    border-radius: 3px;
    color: var(--mo-text-muted);
    font-size: 0.87rem;
    line-height: 1.6;
}

/* Campos */
.pt-campo { margin-bottom: 20px; }
.pt-campo > label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pt-escuro);
    letter-spacing: -0.005em;
}
.pt-obrig { color: var(--mo-error); font-weight: 700; }
.pt-opcional {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--mo-border);
    color: var(--mo-text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* Controlo: ícone à esquerda, seta à direita, altura fixa */
.pt-select-wrap { position: relative; display: block; }

.pt-select-wrap select {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 44px 0 46px;
    border: 1.5px solid #d9e0e5;
    border-radius: 6px;
    background: #fff;
    color: var(--pt-escuro);
    font-family: var(--inter-Font);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 52px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
/* O placeholder (value="") lê-se como texto secundário */
.pt-select-wrap select:invalid,
.pt-select-wrap select.pt-vazio { color: var(--mo-text-muted); font-weight: 400; }

.pt-select-wrap select:hover:not(:disabled) { border-color: #b9c4cb; }
.pt-select-wrap select:focus {
    outline: none;
    border-color: var(--pt-escuro);
    box-shadow: 0 0 0 3px rgba(13, 27, 31, 0.10);
}

/* Ícones do campo */
.pt-campo-ic {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--mo-text-muted);
    font-size: 0.92rem;
    transition: color 0.16s ease;
}
.pt-campo-seta {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--mo-text-muted);
    font-size: 0.75rem;
    transition: color 0.16s ease, transform 0.16s ease;
}
.pt-campo-cadeado {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    display: none;
    pointer-events: none;
    color: var(--mo-text-muted);
    font-size: 0.78rem;
}
.pt-select-wrap:hover .pt-campo-ic,
.pt-select-wrap select:focus ~ .pt-campo-ic { color: var(--pt-escuro); }

/* Estado PREENCHIDO — confirma visualmente que o campo está resolvido */
.pt-campo.pt-preenchido select { border-color: var(--pt-escuro); background: #fbfdfd; }
.pt-campo.pt-preenchido .pt-campo-ic { color: var(--pt-accent); }

.pt-dica {
    display: block;
    margin-top: 8px;
    padding-left: 2px;
    color: var(--mo-text-muted);
    font-size: 0.79rem;
    line-height: 1.5;
}

/* Campo ainda bloqueado (cascata) — cadeado em vez de só opacidade */
.pt-campo.pt-bloq select {
    background: #f2f5f6;
    border-color: var(--mo-border);
    color: #a9b4ba;
    cursor: not-allowed;
    pointer-events: none;
}
.pt-campo.pt-bloq > label { color: var(--mo-text-muted); }
.pt-campo.pt-bloq .pt-campo-seta { display: none; }
.pt-campo.pt-bloq .pt-campo-cadeado { display: block; }
.pt-campo.pt-bloq .pt-campo-ic { color: #c2cbd0; }

/* Resumo da instituição escolhida */
.pt-resumo {
    display: flex; align-items: center; gap: 15px;
    margin: 4px 0 22px;
    padding: 16px 18px;
    border: 1.5px solid var(--mo-primary);
    border-radius: 4px;
    background: rgba(41, 112, 125, 0.05);
}
.pt-resumo img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.pt-resumo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-resumo-txt strong { font-size: 0.98rem; color: var(--mo-text); }
.pt-resumo-txt > span { font-size: 0.83rem; color: var(--mo-text-muted); }
.pt-resumo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.pt-badge { padding: 3px 9px; border-radius: 3px; font-size: 0.72rem; font-weight: 600; }
.pt-badge-verde { background: var(--mo-success-bg-strong); color: var(--mo-success-dark); }
.pt-badge-azul { background: #dbeafe; color: #1e40af; }
.pt-resumo-ok { color: var(--mo-primary); font-size: 1.25rem; }

.pt-aviso {
    margin-bottom: 20px; padding: 13px 16px;
    border: 1px solid var(--mo-error-border);
    border-radius: 4px;
    background: var(--mo-error-bg);
    color: var(--mo-error-text);
    font-size: 0.87rem;
}

/* Acções */
.pt-cartao-accoes {
    display: flex; gap: 12px; justify-content: space-between;
    padding: 22px 34px;
    border-top: 1px solid var(--mo-border);
    background: var(--mo-bg-light);
}
.pt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px;
    border: 1.5px solid transparent;
    border-radius: 4px;
    font-family: var(--poppins-Font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
}
.pt-btn-ghost { border-color: var(--mo-border); background: #fff; color: var(--mo-text-muted); }
.pt-btn-ghost:hover { border-color: var(--mo-text-muted); color: var(--mo-text); }
.pt-btn-principal { background: var(--pt-escuro); color: #fff; min-width: 170px; }
.pt-btn-principal:hover:not(:disabled) { background: var(--mo-primary); }
.pt-btn-principal:disabled { opacity: 0.4; cursor: not-allowed; }

.pt-passo-conta {
    margin: 0; padding: 14px;
    text-align: center;
    color: var(--mo-text-muted);
    font-size: 0.8rem;
    background: var(--mo-bg-light);
    border-top: 1px solid var(--mo-border);
}

.pt-alerta { margin-bottom: 16px; padding: 13px 16px; border-radius: 4px; font-size: 0.88rem; }
.pt-alerta-error { background: var(--mo-error-bg); border: 1px solid var(--mo-error-border); color: var(--mo-error-text); }
.pt-alerta-info { background: var(--mo-bg-light); border: 1px solid var(--mo-border); color: var(--mo-text-muted); }

/* ---------- Como funciona ---------- */
.pt-seccao { padding: 68px 24px; background: #fff; border-top: 1px solid var(--mo-border); }
.pt-seccao-inner { max-width: 1100px; margin: 0 auto; }
.pt-eyebrow {
    margin: 0 0 8px;
    color: var(--mo-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.pt-seccao h2 {
    margin: 0 0 36px;
    font-family: var(--poppins-Font);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mo-text);
}
.pt-passos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pt-passo-card {
    padding: 24px 20px;
    border: 1px solid var(--mo-border);
    border-left: 3px solid var(--mo-primary);
    border-radius: 4px;
    background: var(--mo-bg-light);
}
.pt-passo-num {
    display: block; margin-bottom: 12px;
    font-family: var(--poppins-Font);
    font-size: 1.5rem; font-weight: 800;
    color: var(--mo-border);
}
.pt-passo-card h3 { margin: 0 0 7px; font-size: 0.98rem; font-weight: 700; color: var(--mo-text); }
.pt-passo-card p { margin: 0; font-size: 0.85rem; line-height: 1.6; color: var(--mo-text-muted); }

/* ---------- Rodapé ---------- */
.pt-footer { padding: 26px 24px; text-align: center; background: var(--pt-escuro); }
.pt-footer p { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.84rem; }
.pt-footer strong { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
    .pt-hero-inner { grid-template-columns: 1fr; gap: 38px; }
    .pt-passos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .pt-topbar { padding: 12px 16px; }
    .pt-topnav-link span { display: none; }
    .pt-hero { padding: 40px 18px 62px; }
    .pt-main { padding: 0 14px 48px; }
    .pt-cartao-topo, .pt-cartao-corpo, .pt-cartao-accoes, .pt-passos { padding-left: 18px; padding-right: 18px; }
    .pt-passos-grid { grid-template-columns: 1fr; }
    .pt-cartao-accoes { flex-direction: column-reverse; }
    .pt-btn { width: 100%; }
    .pt-passo { padding: 13px 10px; font-size: 0.78rem; }
}

/* Inputs de texto no mesmo formato dos selects (consulta e acesso) */
.pt-select-wrap input.pt-input {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 16px 0 46px;
    border: 1.5px solid #d9e0e5;
    border-radius: 6px;
    background: #fff;
    color: var(--pt-escuro);
    font-family: var(--inter-Font);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.pt-select-wrap input.pt-input::placeholder { color: var(--mo-text-muted); font-weight: 400; letter-spacing: normal; }
.pt-select-wrap input.pt-input:hover { border-color: #b9c4cb; }
.pt-select-wrap input.pt-input:focus {
    outline: none;
    border-color: var(--pt-escuro);
    box-shadow: 0 0 0 3px rgba(13, 27, 31, 0.10);
}

/* Página de consulta: painéis e acções */
.mo-consulta-form { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.mo-consulta-form .pt-btn { align-self: flex-start; margin-top: 6px; }
.pt-accoes-linha { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.pt-accoes-linha .pt-btn { align-self: auto; margin-top: 0; }
