/* Ourém está Ativo - estilos da página de inscrições */
:root {
    --oea-red: #dc3531;
    --oea-red-dark: #b8241f;
    --oea-red-tint: #fdf0ef;
    --oea-ink: #2b2b2b;
    --oea-muted: #6f6f6f;
    --oea-line: #e7e5e4;
    --oea-bg: #f7f6f5;
    --oea-radius: 14px;
    --oea-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
}

html, body {
    font-family: 'Mulish', 'Muli', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--oea-ink);
}

body { background: #fff; }

.oea-main {
    background: var(--oea-bg);
    padding: 32px 0 56px;
    min-height: 450px;
}

.oea-flash { border-radius: var(--oea-radius); border: 0; box-shadow: var(--oea-shadow); margin-bottom: 24px; }

/* ---------- Topo ---------- */
.oea-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(120deg, var(--oea-red) 0%, #e8544f 60%, #f07a52 100%);
    color: #fff;
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.oea-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .08);
    pointer-events: none;
}
.oea-hero > div { max-width: 640px; position: relative; z-index: 1; }
.oea-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; opacity: .85; }
.oea-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 4px 0 10px; letter-spacing: -.01em; }
.oea-hero p { margin: 0; font-size: 1.05rem; line-height: 1.55; opacity: .95; }

.oea-passos { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; position: relative; z-index: 1; flex-wrap: wrap; }
.oea-passos li {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: 6px 14px 6px 6px;
    font-weight: 700; font-size: .85rem;
    color: rgba(255, 255, 255, .8);
}
.oea-passos li span {
    width: 26px; height: 26px; border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(255, 255, 255, .2); font-size: .8rem;
}
.oea-passos li.ativo { background: #fff; color: var(--oea-red); }
.oea-passos li.ativo span { background: var(--oea-red); color: #fff; }
.oea-passos li.feito { color: #fff; }
.oea-passos li.feito span { background: #fff; color: var(--oea-red); }

/* ---------- Secções ---------- */
.oea-secao { margin-bottom: 36px; scroll-margin-top: 16px; }
.oea-titulo { font-size: 1.25rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; color: var(--oea-ink); }
.oea-titulo span {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--oea-red); color: #fff;
    display: inline-grid; place-items: center; font-size: .9rem;
}

/* ---------- Atividades ---------- */
.oea-atividades { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.oea-atividade {
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
    text-align: left;
    background: #fff;
    border: 2px solid transparent;
    border-radius: var(--oea-radius);
    padding: 20px;
    box-shadow: var(--oea-shadow);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
    color: var(--oea-ink);
}
.oea-atividade:hover { transform: translateY(-2px); border-color: #f3c3c1; }
.oea-atividade:focus-visible { outline: 3px solid rgba(220, 53, 49, .35); outline-offset: 2px; }
.oea-atividade.selecionada { border-color: var(--oea-red); background: var(--oea-red-tint); }
.oea-icone {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--oea-red-tint); color: var(--oea-red);
    display: inline-grid; place-items: center; font-size: 1.45rem;
    margin-bottom: 6px;
}
.oea-atividade.selecionada .oea-icone { background: var(--oea-red); color: #fff; }
.oea-atividade-nome { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.oea-atividade-nome small { display: block; font-weight: 700; font-size: .85rem; color: var(--oea-red); margin-top: 2px; }
.oea-atividade-meta { font-size: .85rem; color: var(--oea-muted); display: flex; gap: 6px; align-items: baseline; }
.oea-atividade-meta i { width: 14px; text-align: center; color: #a5a3a1; }

/* ---------- Detalhe ---------- */
.oea-detalhe {
    background: #fff; border-radius: var(--oea-radius); box-shadow: var(--oea-shadow);
    padding: 22px; position: sticky; top: 16px;
}
.oea-detalhe h3 { font-size: 1.2rem; font-weight: 800; margin: 4px 0; }
.oea-tema { color: var(--oea-red); font-weight: 700; margin-bottom: 8px; }
.oea-detalhe dl { margin: 12px 0 0; }
.oea-detalhe dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--oea-muted); font-weight: 700; }
.oea-detalhe dt i { width: 14px; }
.oea-detalhe dd { margin: 2px 0 12px; font-weight: 600; }
.oea-cartaz img { width: 100%; border-radius: 10px; margin-top: 6px; border: 1px solid var(--oea-line); }

/* ---------- Horários ---------- */
.oea-aviso-padel {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fff8e6; border: 1px solid #f5dfa3; color: #6b5310;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
}
.oea-aviso-padel i { margin-top: 3px; }
.oea-dias-lista { display: flex; flex-direction: column; gap: 12px; }
.oea-dia {
    display: flex; gap: 18px; align-items: center;
    background: #fff; border-radius: var(--oea-radius); box-shadow: var(--oea-shadow);
    padding: 14px 18px;
}
.oea-dia-data {
    flex: 0 0 58px; height: 62px; border-radius: 12px;
    background: var(--oea-red-tint); color: var(--oea-red);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.oea-dia-num { font-size: 1.5rem; font-weight: 800; }
.oea-dia-mes { font-size: .75rem; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.oea-dia-corpo { flex: 1; min-width: 0; }
.oea-dia-nome { font-weight: 700; margin-bottom: 8px; }
.oea-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.oea-slot {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--oea-line); background: #fff; border-radius: 999px;
    padding: 7px 8px 7px 14px; font-weight: 700; color: var(--oea-ink);
    transition: border-color .15s, background .15s, color .15s;
}
.oea-slot:hover, .oea-slot:focus-visible { border-color: var(--oea-red); background: var(--oea-red); color: #fff; outline: none; }
.oea-slot i { opacity: .7; }
.oea-slot-vagas { font-size: .75rem; background: #e9f6ee; color: #1f7a45; border-radius: 999px; padding: 3px 9px; font-weight: 700; }
.oea-slot-vagas.poucas { background: #fff1e0; color: #a35a00; }
.oea-slot:hover .oea-slot-vagas, .oea-slot:focus-visible .oea-slot-vagas { background: rgba(255, 255, 255, .22); color: #fff; }

.oea-carregar { display: flex; align-items: center; gap: 12px; padding: 24px; color: var(--oea-muted); justify-content: center; }
.oea-vazio { background: #fff; border-radius: var(--oea-radius); box-shadow: var(--oea-shadow); padding: 36px 24px; text-align: center; color: var(--oea-muted); }
.oea-vazio i { font-size: 2.2rem; color: #d3d1cf; margin-bottom: 10px; }
.oea-vazio p { margin: 0; }

/* ---------- Normas ---------- */
.oea-normas .accordion-item { border: 0; border-radius: var(--oea-radius) !important; overflow: hidden; box-shadow: var(--oea-shadow); }
.oea-normas .accordion-button { font-weight: 800; font-size: 1.05rem; color: var(--oea-ink); }
.oea-normas .accordion-button:not(.collapsed) { background: var(--oea-red-tint); color: var(--oea-red); box-shadow: none; }
.oea-normas .accordion-button:focus { box-shadow: 0 0 0 3px rgba(220, 53, 49, .2); }
.oea-normas .accordion-body { line-height: 1.65; color: #444; }
.oea-normas h3 { font-size: 1rem; font-weight: 800; color: var(--oea-red); }

/* ---------- Janela de inscrição ---------- */
.oea-modal-header { background: var(--oea-red); color: #fff; align-items: flex-start; }
.oea-modal-header .modal-title { font-weight: 800; }
.oea-modal-sub { font-size: .85rem; opacity: .9; margin-top: 4px; }
#formOEAModal .modal-content { border: 0; border-radius: 16px; overflow: hidden; }
#formOEAModal .modal-body { padding: 22px 24px; }
#formOEAModal .form-label { font-weight: 700; font-size: .86rem; color: var(--oea-ink); margin-bottom: 4px; }
#formOEAModal .form-control, #formOEAModal .form-select { border-radius: 10px; padding: .55rem .8rem; }
#formOEAModal .form-control:focus, #formOEAModal .form-select:focus { border-color: #ef8f8c; box-shadow: 0 0 0 .2rem rgba(220, 53, 49, .15); }
.oea-req { color: var(--oea-red); }
.oea-obrigatorio { font-size: .8rem; color: var(--oea-muted); }
.oea-obrigatorio span { color: var(--oea-red); }
.oea-grupo {
    font-weight: 800; color: var(--oea-red); font-size: .95rem;
    border-bottom: 1px solid var(--oea-line); padding-bottom: 8px; margin: 10px 0 0;
}
.oea-grupo i { width: 18px; }
.oea-dias { display: flex; flex-wrap: wrap; gap: 8px; }
.oea-termos { background: var(--oea-bg); border-radius: 12px; padding: 14px 16px; margin-top: 6px; }
.oea-termos ul { margin: 12px 0 0; padding-left: 18px; font-size: .86rem; line-height: 1.6; color: #555; }
.oea-termos a { color: var(--oea-red); font-weight: 700; }
.form-check-input:checked { background-color: var(--oea-red); border-color: var(--oea-red); }

/* ---------- Atividades programadas (site/index) ---------- */
.oea-tabela { background: #fff; border-radius: var(--oea-radius); box-shadow: var(--oea-shadow); overflow: hidden; }
.oea-tabela table { margin: 0; }
.oea-tabela thead th { background: var(--oea-red); color: #fff; font-weight: 700; border: 0; }

@media (max-width: 575.98px) {
    .oea-main { padding-top: 16px; }
    .oea-hero { padding: 26px 22px; border-radius: 16px; }
    .oea-atividades { grid-template-columns: 1fr 1fr; gap: 10px; }
    .oea-atividade { padding: 14px; }
    .oea-icone { width: 42px; height: 42px; font-size: 1.15rem; }
    .oea-atividade-nome { font-size: .95rem; }
    .oea-atividade-meta { font-size: .78rem; }
    .oea-dia { align-items: flex-start; gap: 12px; padding: 12px; }
    .oea-dia-data { flex-basis: 48px; height: 54px; }
    .oea-detalhe { position: static; }
}

/* ---------- Cabeçalho e rodapé ---------- */
.oea-topo { background: #fff; border-bottom: 1px solid var(--oea-line); }
.oea-topo-faixa { height: 6px; background: var(--oea-red); }
.oea-topo .navbar { padding: 10px 0; }
.oea-topo .navbar-brand img { height: 60px; width: auto; }
.oea-topo .nav-link { white-space: nowrap; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; color: #6f6f6f; padding: 8px 12px !important; }
.oea-topo .nav-link:hover, .oea-topo .nav-link.active { color: var(--oea-red); }
.oea-topo .navbar-toggler { border: 0; color: var(--oea-red); font-size: 1.4rem; box-shadow: none; }
.oea-social { display: flex; gap: 6px; margin-left: 8px; }
.oea-social a {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--oea-red); color: #fff;
    display: inline-grid; place-items: center; font-size: .85rem; text-decoration: none;
}
.oea-social a:hover { background: var(--oea-red-dark); }
@media (max-width: 991.98px) {
    .oea-topo .navbar-brand img { height: 48px; }
    .oea-social { margin: 8px 0 4px 12px; }
}

.oea-rodape { padding: 48px 0 32px; font-size: .9rem; color: #ddd; }
.oea-rodape h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; color: #fff; margin-bottom: 12px; }
.oea-rodape a { color: #fff; }
.oea-rodape-social { display: flex; gap: 10px; }
.oea-rodape-social a {
    width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7);
    display: inline-grid; place-items: center; text-decoration: none; transition: background .2s, color .2s;
}
.oea-rodape-social a:hover { background: #fff; color: #363737; }
.copy { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: .82rem; }
.copy a { color: var(--oea-red); font-weight: 700; text-decoration: none; }

/* A janela é "scrollable", mas o <form> fica entre .modal-content e .modal-body:
   o form tem de ser também uma coluna flex para o corpo poder fazer scroll. */
#modal-register-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; overflow: hidden; }
#modal-register-form .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* ---------- Vertentes ---------- */
.oea-vertentes { display: inline-flex; flex-wrap: wrap; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--oea-shadow); margin-bottom: 18px; }
.oea-vertente {
    border: 0; background: transparent; border-radius: 999px; padding: 9px 16px;
    font-weight: 800; color: var(--oea-muted); display: inline-flex; align-items: center; gap: 8px;
    transition: background .15s, color .15s;
}
.oea-vertente:hover { color: var(--oea-red); }
.oea-vertente.ativa { background: var(--oea-red); color: #fff; }
.oea-contador { font-size: .72rem; background: rgba(0, 0, 0, .07); border-radius: 999px; padding: 2px 8px; }
.oea-vertente.ativa .oea-contador { background: rgba(255, 255, 255, .25); }
.oea-vertente-intro { color: var(--oea-muted); margin-bottom: 14px; }
.oea-vertente-intro i { color: var(--oea-red); margin-right: 4px; }
@media (max-width: 575.98px) {
    .oea-vertentes { display: flex; border-radius: 16px; }
    .oea-vertente { flex: 1 1 auto; justify-content: center; padding: 8px 10px; font-size: .9rem; }
}
