/* =============================================================
   CEV/UECE — CSS Combinado (normalize_n + principal_n + extras)
   Pixel-perfect com o original de www2.cev.uece.br
   ============================================================= */

/* =============================================================
   NORMALIZE v8.0.1 | MIT License | github.com/necolas/normalize.css
   ============================================================= */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main { display: block; }
h1 { font-size: 2em; margin: 0.67em 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { font-family: monospace, monospace; font-size: 1em; }
a { background-color: transparent; }
a, a:visited { text-decoration:none; color:#000;}
abbr[title] { border-bottom: none; text-decoration: underline; text-decoration: underline dotted; }
b, strong { font-weight: bolder; }
code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
img { border-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; }
button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; }
fieldset { padding: 0.35em 0.75em 0.625em; }
legend { box-sizing: border-box; color: inherit; display: table; max-width: 100%; padding: 0; white-space: normal; }
progress { vertical-align: baseline; }
textarea { overflow: auto; }
[type="checkbox"], [type="radio"] { box-sizing: border-box; padding: 0; }
[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { -webkit-appearance: textfield; outline-offset: -2px; }
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
details { display: block; }
summary { display: list-item; }
template { display: none; }
[hidden] { display: none; }

/* =============================================================
   PRINCIPAL_N.CSS — CSS original do sistema CEV/UECE
   ============================================================= */

@charset "utf-8";

body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12.8px;
  background: #e8e8e8;
  color: #000;
}

/* =============================================================
   HEADER
   ============================================================= */
header.cc-header {
  background-color: #354e3b;
  background: -webkit-gradient(linear, left top, right top, from(#204D37), color-stop(40%, #00853B));
  background: linear-gradient(to right, #204D37, #00853B 40%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#354e3b', endColorstr='$verde',GradientType=1 );
  margin-bottom: 0;
  width: 100%;
  margin: auto;
  min-width: 1024px;
}

header.cc-header .cc-topbar {
  background-color: rgba(0, 0, 0, 0.15);
  height: 22px;
  text-align: center;
  padding-left: 5px;
  padding-top: 2px;
}

header.cc-header .cc-bg-main-menu {
  background: #FFF;
  border-bottom: 3px solid #00bd19;
  -webkit-box-shadow: 0px 4px 25px 0px rgb(0 0 0 / 30%);
  box-shadow: 0px 4px 25px 0px rgb(0 0 0 / 30%);
  overflow: visible !important;
  position: relative;
  background: url(../../images/base-ondas.svg) no-repeat -50px bottom #FFFFFF;
  background-size: 700px;
  min-width: 1024px;
}

header.cc-header .cc-bg-main-menu.cc-bg-main-menu-company {
  background: url(../../images/base-ondas.svg) no-repeat -50px bottom #FFFFFF;
  background-size: 350px;
  min-width: 1024px;
}

.cc-related-sites-menu-container {
  color: #212529;
  text-align: left;
  margin: 0;
  padding: 5px 0 0 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  height: 26px;
}

.container {
  width: 1024px;
  min-width: 1024px;
}

.container-fluid {
  width: 100%;
}

.menu-top {
  color: #212529;
  text-align: left;
  margin: 0;
  padding: 2px 0 0 5px;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  margin-top: 0;
  padding-left: 0;
  list-style: none;
  margin-bottom: 0 !important;
}

.li-munu-top {
  color: #212529;
  list-style: none;
  margin: 0;
  padding: 0 0 0 5px;
  border: 0;
  font: inherit;
  font-size: .7em;
  vertical-align: baseline;
  box-sizing: border-box;
  display: inline-block;
  margin-right: 0 !important;
}

header.cc-header .cc-main-menu > ul { background: transparent; margin-left: 0 !important; }
.bar-white { height: 30px; }
.justify-content-end { justify-content: end; margin-right: 20px; height: 30px; width: 1024px; }
ul li { display: inline; }
ul li a span { color: #FFF; }
#menu-principal { height: 30px; margin: 0; padding-top: 7px; padding-right: 10px; }
#menu-principal span { color: #00651B; font-weight: bold; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.tit-conc { margin-top: 10px; }

/* =============================================================
   TIMER DA SESSÃO NO HEADER (canto superior direito da topbar)
   ============================================================= */
.header-timer {
  margin-left: auto;
  font: bold 11px Verdana, Arial, Helvetica, sans-serif;
  color: #ffd;
  background: rgba(0,0,0,0.2);
  padding: 2px 10px;
  border-radius: 2px;
  display: none;
  white-space: nowrap;
}
.header-timer.visible {
  display: inline-block;
}

/* =============================================================
   FOOTER ORIGINAL
   ============================================================= */
footer {
  --wp-admin-theme-color: #007cba;
  --wp-admin-theme-color-darker-10: #006ba1;
  --wp-admin-theme-color-darker-20: #005a87;
  -webkit-box-sizing: border-box;
  margin: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  display: block;
  padding: 0;
  background-color: #fff;
  border-top: 2px solid #008442;
  min-width: 1024px;
}

footer .wrapper {
  padding: 0;
  font: inherit;
  vertical-align: baseline;
  max-width: 1024px;
  width: 1024px;
  margin-left: auto;
  margin-right: auto;
}

footer .infos {
  font: inherit;
  vertical-align: baseline;
  margin: 5px 0 40px;
  padding: 5px 0 0;
  border-top: none;
  max-width: 1024px;
  width: 1024px;
}

.dt-2 { width: 17%; float: left; }
.dt-10 { float: right; }

footer .Direitos {
  padding: 0;
  font: inherit;
  vertical-align: baseline;
  float: right;
  padding-left: 20px;
  padding-right: 20px;
  min-height: 1px;
  margin-bottom: 20px;
  width: 83.333333333333%;
}
footer .Direitos .box h2 {
  font: 0.7em "OpenSans-Bold", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  color: #485156;
  text-align: left;
  font-weight: bold;
}
footer .Direitos .box p {
  padding: 0;
  vertical-align: baseline;
  font: 0.7em "OpenSans-Regular", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  color: #485156;
  text-align: left;
}
footer .textw {
  padding: 0;
  font: inherit;
  vertical-align: baseline;
}
.box {
  padding: 0;
  font: inherit;
  vertical-align: baseline;
  display: inline-block;
  position: relative;
  float: left;
  margin: 0 25px 0 0;
}

footer .canais {
  padding: 0;
  vertical-align: baseline;
  letter-spacing: 1px;
  font: 1.1em "OpenSans-Bold", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  color: #485156;
}

footer .canais h2 {
  padding: 0;
  vertical-align: baseline;
  letter-spacing: 1px;
  font: 1.1em "OpenSans-Bold", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  color: #485156;
}

footer .copyright {
  padding: 0;
  font: inherit;
  float: right;
  vertical-align: baseline;
  display: inline-block;
  position: relative;
  margin: 0;
}

.copyright p {
  padding: 0;
  vertical-align: baseline;
  font: 0.7em "OpenSans-Regular", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  text-transform: uppercase;
  color: #485156;
}

.redes {
  padding: 0;
  font: inherit;
  vertical-align: baseline;
}

.redes ul {
  margin: 0;
  padding: 0;
  font: inherit;
  vertical-align: baseline;
  list-style: none;
  text-align: left;
}

.redes ul li {
  padding: 0;
  font: inherit;
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 29px;
  height: 30px;
  box-sizing: border-box;
  background-color: #fff !important;
}

.NomeSite {
  padding-left: 45px;
}

.link-gov h2 {
  --wp-admin-theme-color: #007cba;
  text-align: center;
  -webkit-box-sizing: border-box;
  margin: 9px;
  padding: 0 40px 0 0;
  border: 0;
  vertical-align: baseline;
  letter-spacing: 1px;
  font: 0.9em "OpenSans-Semibold", Helvetica, Arial, sans-serif;
  color: #485156;
  text-transform: uppercase;
}

/* =============================================================
   ESTILOS DO FORMULÁRIO DE INSCRIÇÃO
   ============================================================= */

.tdtxt-t0b0 {
  padding: 4px 8px;
}

/* Botão .btn original do CEV — fundo #CFF1E6 (rgb 207,241,230) */
.btn {
  background: #CFF1E6;
  border: 1px solid #7bbda9;
  color: #000;
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  padding: 5.12px 10.24px;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  display: inline-block;
  margin: 4px 6px 4px 0;
}
.btn:hover {
  background: #b8e6d6;
}
.btn:disabled, .btn.disabled {
  background: #CFF1E6;
  border-color: rgba(16,16,16,0.3);
  color: rgba(16,16,16,0.3);
  cursor: not-allowed;
}
.btn-gray {
  background: #CFF1E6;
  border: 1px solid #7bbda9;
  color: #000;
}
.btn-gray:hover {
  background: #b8e6d6;
}
.btn-red {
  background: #CFF1E6;
  border: 1px solid #7bbda9;
  color: #c0392b;
}
.btn-red:hover {
  background: #b8e6d6;
}

/* Campos de formulário — fundo padrão do browser */
.campo-form,
input[type="text"].campo-form,
input[type="email"].campo-form,
input[type="tel"].campo-form,
select.campo-form {
  background-color: #fff;
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  color: #000;
  border: 1px solid #7bbda9;
  padding: 4px 6px;
  outline: none;
}
.campo-form:focus {
  border-color: #009966;
  background: #f0fff0;
}
.campo-readonly {
  background-color: #e8f0ed !important;
  border: 1px solid #cadcd7 !important;
  color: #333 !important;
  cursor: default;
}

/* Tabela do formulário — fundo #F5FFF5 */
.etapa-form td {
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  padding: 2px;
}
.etapa-form .td-label {
  background: #F5FFF5;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  text-align: right;
  padding: 4px 8px 4px 4px;
  border: none;
}
.etapa-form .td-field {
  background: #F5FFF5;
  padding: 4px 8px;
  border: none;
}
/* Layout 2 colunas lado-a-lado */
.etapa-form .td-label-half {
  background: #F5FFF5;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
  text-align: right;
  padding: 4px 8px 4px 4px;
  border: none;
  width: 25%;
}
.etapa-form .td-field-half {
  background: #F5FFF5;
  padding: 4px 8px;
  border: none;
  width: 25%;
}

/* Step header (barra de subtítulo verde) */
.step-header {
  background: #204d37;
  color: #fff;
  font: bold 12.8px Verdana, Arial, Helvetica, sans-serif;
  padding: 8px 14px;
  margin: 10px 0 8px;
}

/* Barra de botões */
.btn-bar {
  padding: 12px 20px;
  text-align: center;
  border-top: 1px solid #cadcd7;
  margin-top: 14px;
}

/* Spinner CPF */
.cev-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #cadcd7;
  border-top-color: #00954b;
  border-radius: 50%;
  animation: cevspin .7s linear infinite;
  vertical-align: middle;
  margin-left: 6px;
}
@keyframes cevspin { to { transform: rotate(360deg); } }

.cpf-status {
  font: 11px Verdana, Arial, Helvetica, sans-serif;
  margin-left: 8px;
  vertical-align: middle;
}
/* Timer bar (dentro do form — oculta, agora é no header) */
.timer-bar { display: none; }
.cpf-ok { color: #00954b; font-weight: 700; }
.cpf-err { color: #c0392b; font-weight: 700; }

/* Obrigatório */
.req { color: #c0392b; font-weight: 700; }

/* Hidden util */
.etapa-hidden { display: none !important; }

/* Popup/Modal overlay */
.cev-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
}
.cev-modal {
  background: #fff;
  border: 3px solid #00954b;
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.cev-modal h2 {
  font: bold 16px Verdana, Arial, Helvetica, sans-serif;
  color: #00954b;
  margin: 0 0 14px;
}
.cev-modal p {
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.5;
}
.cev-modal .num-inscricao {
  font: bold 22px Verdana, Arial, Helvetica, sans-serif;
  color: #c0392b;
  margin: 10px 0;
}
/* Modal ATENÇÃO (popup etapa 2) */
.cev-modal-atencao {
  background: #fff;
  border: 3px solid #c0392b;
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.cev-modal-atencao h2 {
  font: bold 16px Verdana, Arial, Helvetica, sans-serif;
  color: #c0392b;
  margin: 0 0 14px;
}
.cev-modal-atencao p {
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.6;
  text-align: justify;
}

/* Radio inline */
.radio-group { display: flex; align-items: center; gap: 14px; }
.radio-group label {
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Date selects inline */
.date-group { display: flex; gap: 6px; align-items: center; }

/* Próximos passos */
.proximos-box {
  background: #F5FFF5;
  border: 1px solid #cadcd7;
  padding: 10px 14px;
  margin: 10px 0;
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
}
.proximos-box h4 {
  font: bold 12.8px Verdana, Arial, Helvetica, sans-serif;
  color: #204d37;
  margin: 0 0 6px;
}
.proximos-box ul { margin: 0 0 0 18px; list-style: disc; }
.proximos-box li { margin: 0 0 3px; line-height: 1.6; }

/* Campos obrigatórios nota */
.campos-obrigatorios {
  font: 12.8px Verdana, Arial, Helvetica, sans-serif;
  color: #c0392b;
  padding: 4px 0;
  text-align: left;
}

/* =============================================================
   MOBILE RESPONSIVE
   ============================================================= */
@media(max-width:860px){
  /* Remove todos os min-width fixos */
  header.cc-header,
  header.cc-header .cc-bg-main-menu,
  header.cc-header .cc-bg-main-menu.cc-bg-main-menu-company,
  footer,
  footer .wrapper,
  footer .infos,
  .container,
  .justify-content-end {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body { overflow-x: hidden; }

  /* Header */
  header.cc-header .cc-topbar { padding: 2px 8px; height: auto; }
  .cc-related-sites-menu-container { height: auto; }
  .li-munu-top { font-size: 0.65em; }
  header.cc-header .cc-bg-main-menu,
  header.cc-header .cc-bg-main-menu.cc-bg-main-menu-company {
    background-size: 200px;
  }
  .bar-white { height: auto; padding: 4px 0; }
  .justify-content-end { height: auto; margin-right: 8px; }
  #menu-principal { padding: 4px 8px; height: auto; }
  #menu-principal span { font-size: 12px; }
  img[width="400px"] { max-width: 220px !important; width: auto !important; }

  /* Logo CEV no header - responsive */
  .d-flex img[alt="Logo CEV"],
  .d-flex img[alt="Logo cev_white"],
  a.d-block img { max-width: 200px !important; width: auto !important; height: auto !important; }

  /* Timer sessão */
  .header-timer { font-size: 10px; padding: 2px 6px; }

  /* Conteúdo principal inscricao.html — sobrescreve 850px fixo */
  center { width: 100% !important; }
  div[id="main"] { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  div[id="mainx"] { width: 100% !important; }
  table[width="850"],
  table[width="850px"] { width: 100% !important; max-width: 100% !important; }
  table[width="100%"] { width: 100% !important; }

  /* Formulário etapa-form — tabela vira vertical */
  .etapa-form .td-label,
  .etapa-form .td-label-half {
    display: block;
    width: 100% !important;
    text-align: left;
    padding: 6px 8px 2px;
    white-space: normal;
  }
  .etapa-form .td-field,
  .etapa-form .td-field-half {
    display: block;
    width: 100% !important;
    padding: 2px 8px 8px;
  }
  .etapa-form tr { display: block; border-bottom: 1px solid #e0ebe6; }
  .etapa-form td { display: block; }

  /* Campos de formulário */
  .campo-form,
  input[type="text"].campo-form,
  input[type="email"].campo-form,
  input[type="tel"].campo-form,
  select.campo-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    font-size: 14px;
    padding: 8px 10px;
  }
  select.campo-form { font-size: 13px; }

  /* Date group */
  .date-group { flex-wrap: wrap; gap: 4px; }
  .date-group select { width: auto !important; min-width: 60px; flex: 1; }

  /* Texto do edital na etapa 1 */
  div[style*="text-align: justify"] { font-size: 11.5px; line-height: 1.6; padding: 0 6px; }
  font[size="3"] { font-size: 12px !important; }
  font[size="4"] { font-size: 14px !important; }

  /* Botões */
  .btn { font-size: 13px; padding: 10px 16px; display: block; width: 100%; margin: 6px 0; text-align: center; box-sizing: border-box; }
  .btn-bar { padding: 10px 8px; }
  .btn-bar .btn { display: block; width: 100%; margin: 6px 0; }

  /* Step header */
  .step-header { font-size: 12px; padding: 8px 10px; }

  /* Próximos passos */
  .proximos-box { font-size: 11.5px; padding: 8px 10px; }
  .proximos-box ul { margin-left: 14px; }

  /* Checkbox aceitação */
  table[width="100%"][border="0"] td[width="5%"] { width: auto !important; padding: 8px; vertical-align: top; }
  table[width="100%"][border="0"] td[width="95%"] { width: auto !important; }
  table[width="100%"][border="0"] td[width="100%"] { width: 100% !important; }

  /* Green header do formulário */
  td[bgcolor="#00956B"] font[color="#FFFFFF"],
  td[bgcolor="#00956B"] font { font-size: 11px !important; line-height: 1.4; }
  td[height="90"][bgcolor="#00956B"] { height: auto !important; padding: 12px 8px; }

  /* Footer */
  footer .wrapper { padding: 0 10px; }
  footer .infos { flex-direction: column; width: 100% !important; max-width: 100% !important; }
  .dt-2 { width: 100% !important; float: none; text-align: center; padding-left: 0; }
  .dt-10 { width: 100% !important; float: none; }
  footer .Direitos { width: 100% !important; padding: 10px; }
  footer .Direitos .box,
  .box { display: block; float: none; margin: 6px 0; }
  footer .copyright { float: none; text-align: center; }
  .NomeSite { padding-left: 10px; }
  .link-gov h2 { padding: 6px; text-align: center; }
  .redes ul li { width: 32px; height: 32px; }

  /* Modal overlays */
  .cev-overlay { padding: 10px; }
  .cev-modal { padding: 20px 16px; max-width: 95%; }
  .cev-modal-atencao { padding: 20px 16px; max-width: 95%; }

  /* Tabela de confirmação (etapa 4) */
  table[border="1"][cellpadding="4"] { width: 100% !important; }
  table[border="1"][cellpadding="4"] .td-label { width: auto !important; white-space: normal; }

  /* Radio groups */
  .radio-group { flex-wrap: wrap; gap: 8px; }
}

/* Extra small mobile */
@media(max-width:400px){
  img[width="400px"] { max-width: 160px !important; }
  font[color="#FFFFFF"][size="3"] { font-size: 10px !important; }
  .step-header { font-size: 11px; }
  .campo-form { font-size: 13px; }
  .btn { font-size: 12px; padding: 10px 12px; }
}
