/* Central de Fichas – visual da Ficha de Reserva (somente aparência; campos e envio intactos) */
body.hr-ficha{
  --hr-azul:#14314F; --hr-azul2:#2137A0; --hr-verde:#23C515; --hr-laranja:#ED6847;
  --hr-borda:#CBD3DD; --hr-fundo:#F3F5F8; --hr-texto:#3F4650;
  background:var(--hr-fundo)!important;
}
body.hr-ficha .elementor-widget-heading .elementor-heading-title{color:var(--hr-azul)!important;font-family:Montserrat,sans-serif!important;font-weight:700!important}
body.hr-ficha .elementor-widget-text-editor{color:var(--hr-texto)!important}

/* Cartão do formulário */
body.hr-ficha .elementor-widget-form{
  width:100%!important;max-width:1040px!important;margin:0 auto!important;
  background:#fff;border-radius:14px;box-shadow:0 6px 28px rgba(20,49,79,.08);
  padding:28px 32px 30px!important;box-sizing:border-box;
}
body.hr-ficha .elementor-widget-form .elementor-form-fields-wrapper{margin:0!important}

/* Grade de 12 colunas dentro de cada etapa */
body.hr-ficha .e-form__step:not(.elementor-hidden){
  display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px 16px;
  width:100%!important;padding:0!important;margin:0!important;
}
body.hr-ficha .e-form__step > .elementor-field-group{
  width:auto!important;max-width:none!important;flex:none!important;padding:0!important;margin:0!important;
  grid-column:span 12;
}

/* Títulos de seção (inseridos pelo ficha.js, sem nome = não entram no envio) */
body.hr-ficha .hr-secao{
  grid-column:1/-1;display:flex;align-items:center;gap:10px;margin:10px 0 -4px;
  font:700 17px/1.2 Montserrat,sans-serif;color:var(--hr-azul);
}
body.hr-ficha .hr-s-dados{margin-top:0}
body.hr-ficha .hr-secao::after{content:"";flex:1;height:1px;background:#E3E8EE}
body.hr-ficha .hr-secao .hr-num{
  display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:var(--hr-azul);color:#fff;font-size:12px;font-weight:700;
}
body.hr-ficha .hr-dica{grid-column:1/-1;margin:-8px 0 0;color:#6B7480;font:400 13px Poppins,sans-serif}

/* Rótulos e campos */
body.hr-ficha .elementor-widget-form .elementor-field-label{
  color:var(--hr-azul)!important;font:500 13px/1.3 Poppins,sans-serif!important;margin-bottom:6px!important;padding:0!important;
}
body.hr-ficha .elementor-widget-form .elementor-field-textual,
body.hr-ficha .elementor-widget-form .elementor-select-wrapper select{
  background:#fff!important;color:#1D2733!important;border:1px solid var(--hr-borda)!important;border-radius:8px!important;
  min-height:46px!important;padding:10px 12px!important;font:400 15px Poppins,sans-serif!important;box-shadow:none!important;
  transition:border-color .15s, box-shadow .15s;width:100%!important;
}
body.hr-ficha .elementor-widget-form .elementor-field-textual::placeholder{color:#9AA3AE!important;opacity:1}
body.hr-ficha .elementor-widget-form .elementor-field-textual:focus,
body.hr-ficha .elementor-widget-form .elementor-select-wrapper select:focus{
  border-color:var(--hr-azul2)!important;box-shadow:0 0 0 3px rgba(33,55,160,.15)!important;outline:0!important;
}
body.hr-ficha .elementor-widget-form .elementor-select-wrapper::before{color:var(--hr-azul)!important;font-size:13px!important;z-index:3!important;right:12px!important}
body.hr-ficha .elementor-widget-form .elementor-error .elementor-field-textual,
body.hr-ficha .elementor-widget-form .elementor-error select{border-color:var(--hr-laranja)!important;background:#FFF6F3!important}
body.hr-ficha .elementor-widget-form .elementor-message{font-family:Poppins,sans-serif}

/* Indicador de etapas */
body.hr-ficha .e-form__indicators{margin:0 0 22px!important}
body.hr-ficha .e-form__indicators__indicator__number{
  width:32px!important;height:32px!important;border-radius:50%!important;font:700 14px Montserrat,sans-serif!important;
  background:#E6EAF0!important;color:var(--hr-azul)!important;border:0!important;
}
body.hr-ficha .e-form__indicators__indicator--state-active .e-form__indicators__indicator__number,
body.hr-ficha .e-form__indicators__indicator--state-completed .e-form__indicators__indicator__number{background:var(--hr-azul)!important;color:#fff!important}
body.hr-ficha .e-form__indicators__indicator__separator{background:#E3E8EE!important;height:2px!important}

/* Botões */
body.hr-ficha .e-form__buttons__wrapper{margin-top:0!important}
body.hr-ficha .elementor-widget-form .elementor-button{
  width:100%!important;min-height:50px;border-radius:8px!important;font:700 15px Montserrat,sans-serif!important;
  text-transform:none!important;letter-spacing:.01em;border:0!important;
}
body.hr-ficha .elementor-widget-form button[type=submit],
body.hr-ficha .e-form__buttons__wrapper__button-next{background:var(--hr-verde)!important;color:#fff!important}
body.hr-ficha .elementor-widget-form button[type=submit]:hover,
body.hr-ficha .e-form__buttons__wrapper__button-next:hover{background:#1EA912!important}
body.hr-ficha .e-form__buttons__wrapper__button-previous{background:#fff!important;color:var(--hr-azul)!important;border:1px solid var(--hr-borda)!important}

/* ---------- Etapa 1 · desktop (ordem igual ao cadastro do sistema) ---------- */
body.hr-ficha .hr-s-dados{order:0}
body.hr-ficha .elementor-field-group-nome_cliente{order:1;grid-column:span 8!important}
body.hr-ficha .elementor-field-group-data_nascimento{order:2;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-cpf{order:3;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-rg{order:4;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-sexo{order:5;grid-column:span 4!important}
body.hr-ficha .hr-s-contato{order:6}
body.hr-ficha .elementor-field-group-celular{order:7;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-telefone{order:8;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-email{order:9;grid-column:span 4!important}
body.hr-ficha .hr-s-endereco{order:10}
body.hr-ficha .elementor-field-group-cep{order:11;grid-column:span 3!important}
body.hr-ficha .elementor-field-group-rua{order:12;grid-column:span 7!important}
body.hr-ficha .elementor-field-group-numero{order:13;grid-column:span 2!important}
body.hr-ficha .elementor-field-group-complemento{order:14;grid-column:span 3!important}
body.hr-ficha .elementor-field-group-bairro{order:15;grid-column:span 4!important}
body.hr-ficha .elementor-field-group-uf{order:16;grid-column:span 2!important}
body.hr-ficha .elementor-field-group-cidade{order:17;grid-column:span 3!important}
body.hr-ficha .e-form__step > .e-form__buttons{
  order:99;grid-column:1/-1!important;display:flex!important;gap:12px;justify-content:center;
  width:auto!important;padding:0!important;margin:6px 0 0!important;
}
body.hr-ficha .e-form__buttons > .elementor-field-group{flex:1 1 0!important;width:auto!important;max-width:420px!important;padding:0!important;margin:0!important}
body.hr-ficha .e-form__buttons > .elementor-field-type-submit{flex-grow:1.4!important}

/* ---------- Etapa 2 · acompanhantes ---------- */
body.hr-ficha .hr-s-acomp1{order:10}
body.hr-ficha .elementor-field-group-nome1{order:11}
body.hr-ficha .elementor-field-group-data_nascimento1{order:12}
body.hr-ficha .elementor-field-group-sexo1{order:13}
body.hr-ficha .hr-s-acomp2{order:20}
body.hr-ficha .elementor-field-group-nome2{order:21}
body.hr-ficha .elementor-field-group-data_nascimento2{order:22}
body.hr-ficha .elementor-field-group-sexo2{order:23}
body.hr-ficha .hr-s-acomp3{order:30}
body.hr-ficha .elementor-field-group-nome3{order:31}
body.hr-ficha .elementor-field-group-data_nascimento3{order:32}
body.hr-ficha .elementor-field-group-sexo3{order:33}
body.hr-ficha .hr-s-acomp4{order:40}
body.hr-ficha .elementor-field-group-nome4{order:41}
body.hr-ficha .elementor-field-group-data_nascimento4{order:42}
body.hr-ficha .elementor-field-group-sexo4{order:43}
body.hr-ficha .hr-s-acomp5{order:50}
body.hr-ficha .elementor-field-group-nome5{order:51}
body.hr-ficha .elementor-field-group-data_nascimento5{order:52}
body.hr-ficha .elementor-field-group-sexo5{order:53}
body.hr-ficha .hr-s-acomp6{order:60}
body.hr-ficha .elementor-field-group-nome6{order:61}
body.hr-ficha .elementor-field-group-data_nascimento6{order:62}
body.hr-ficha .elementor-field-group-sexo6{order:63}
body.hr-ficha .hr-dica-acomp{order:1}
body.hr-ficha [class*="elementor-field-group-nome"]:not(.elementor-field-group-nome_cliente){grid-column:span 6!important}
body.hr-ficha [class*="elementor-field-group-data_nascimento"]:not(.elementor-field-group-data_nascimento){grid-column:span 3!important}
body.hr-ficha [class*="elementor-field-group-sexo"]:not(.elementor-field-group-sexo){grid-column:span 3!important}
body.hr-ficha .hr-s-acomp .hr-num{background:#E6EAF0;color:var(--hr-azul)}

/* ---------- Tablet ---------- */
@media (max-width:900px){
  body.hr-ficha .elementor-widget-form{padding:22px 20px 24px!important}
  body.hr-ficha .elementor-field-group-nome_cliente{grid-column:span 12!important}
  body.hr-ficha .elementor-field-group-data_nascimento,
  body.hr-ficha .elementor-field-group-cpf,
  body.hr-ficha .elementor-field-group-rg,
  body.hr-ficha .elementor-field-group-sexo{grid-column:span 6!important}
  body.hr-ficha .elementor-field-group-celular,
  body.hr-ficha .elementor-field-group-telefone{grid-column:span 6!important}
  body.hr-ficha .elementor-field-group-email{grid-column:span 12!important}
  body.hr-ficha .elementor-field-group-cep{grid-column:span 4!important}
  body.hr-ficha .elementor-field-group-rua{grid-column:span 8!important}
  body.hr-ficha .elementor-field-group-numero{grid-column:span 4!important}
  body.hr-ficha .elementor-field-group-complemento{grid-column:span 8!important}
  body.hr-ficha .elementor-field-group-bairro{grid-column:span 5!important}
  body.hr-ficha .elementor-field-group-uf{grid-column:span 2!important}
  body.hr-ficha .elementor-field-group-cidade{grid-column:span 5!important}
}

/* ---------- Celular ---------- */
@media (max-width:600px){
  body.hr-ficha .elementor-widget-form{border-radius:0;box-shadow:none;padding:18px 14px 22px!important}
  body.hr-ficha .e-form__step:not(.elementor-hidden){gap:12px 10px}
  body.hr-ficha .elementor-widget-form .elementor-field-textual,
  body.hr-ficha .elementor-widget-form .elementor-select-wrapper select{font-size:16px!important;min-height:48px!important} /* 16px evita zoom no iPhone */
  body.hr-ficha .elementor-field-group-cep,
  body.hr-ficha .elementor-field-group-numero{grid-column:span 6!important}
  body.hr-ficha .elementor-field-group-rua,
  body.hr-ficha .elementor-field-group-complemento{grid-column:span 12!important}
  body.hr-ficha .elementor-field-group-bairro{grid-column:span 12!important}
  body.hr-ficha .elementor-field-group-uf{grid-column:span 4!important}
  body.hr-ficha .elementor-field-group-cidade{grid-column:span 8!important}
  body.hr-ficha [class*="elementor-field-group-nome"]:not(.elementor-field-group-nome_cliente){grid-column:span 12!important}
  body.hr-ficha [class*="elementor-field-group-data_nascimento"]:not(.elementor-field-group-data_nascimento),
  body.hr-ficha [class*="elementor-field-group-sexo"]:not(.elementor-field-group-sexo){grid-column:span 6!important}
  body.hr-ficha .e-form__step > .e-form__buttons{flex-direction:column-reverse!important}
  body.hr-ficha .e-form__buttons > .elementor-field-group{max-width:none!important;flex:none!important}
  body.hr-ficha .hr-secao{font-size:16px}
}

/* ---------- Logo ---------- */
body.hr-ficha img.hr-logo{height:64px!important;width:auto!important;max-width:100%}
@media (max-width:600px){body.hr-ficha img.hr-logo{height:52px!important}}

/* ---------- Rótulos das etapas ---------- */
body.hr-ficha .e-form__indicators__indicator{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px}
body.hr-ficha .hr-etapa{font:600 12px Montserrat,sans-serif;color:#54595F;white-space:nowrap}
body.hr-ficha .e-form__indicators__indicator--state-active .hr-etapa{color:var(--hr-azul)}

/* ---------- Tela de confirmação (depois do envio) ---------- */
body.hr-ficha .hr-enviado form{display:none!important}
body.hr-ficha .hr-enviado .elementor-message{display:none!important}
body.hr-ficha .hr-sucesso{text-align:center;padding:16px 8px 6px;font-family:Poppins,sans-serif}
body.hr-ficha .hr-ok{width:76px;height:76px;border-radius:50%;background:#E8F8E6;display:grid;place-items:center;margin:0 auto 18px}
body.hr-ficha .hr-sucesso h2{margin:0 0 10px;font:700 26px/1.25 Montserrat,sans-serif;color:var(--hr-azul)}
body.hr-ficha .hr-sucesso p{margin:0 auto 12px;max-width:520px;font-size:16px;line-height:1.55;color:var(--hr-texto)}
body.hr-ficha .hr-resumo{display:inline-flex;gap:18px;flex-wrap:wrap;justify-content:center;background:var(--hr-fundo);border-radius:10px;padding:12px 18px;margin:8px 0 22px;font-size:14px;color:var(--hr-azul)}
body.hr-ficha .hr-passos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left;margin:4px 0 24px}
body.hr-ficha .hr-passos > div{border:1px solid #E3E8EE;border-radius:10px;padding:14px}
body.hr-ficha .hr-n{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--hr-azul);color:#fff;font:700 12px Montserrat,sans-serif;margin-bottom:8px}
body.hr-ficha .hr-n.v{background:var(--hr-verde)}
body.hr-ficha .hr-passos strong{display:block;font:600 14px Montserrat,sans-serif;color:var(--hr-azul);margin-bottom:4px}
body.hr-ficha .hr-passos .t{font-size:13px;color:#5E6773;line-height:1.45}
body.hr-ficha .hr-alerta{background:#FFF4EC;border:1px solid #F6CBB8;color:#8A3A1C;border-radius:10px;padding:14px 16px;font-size:14px;line-height:1.5;text-align:left;display:flex;gap:10px;align-items:flex-start}
body.hr-ficha .hr-alerta svg{flex:none;margin-top:1px}
body.hr-ficha .hr-site{display:inline-block;margin-top:22px;color:var(--hr-azul2);font-weight:500;text-decoration:none}
@media (max-width:600px){body.hr-ficha .hr-sucesso h2{font-size:22px}body.hr-ficha .hr-passos{grid-template-columns:1fr}}


/* ---------- Ficha geral igual às 01–09: campos de Sobrenome ficam ocultos ---------- */
body.hr-ficha .hr-oculto{display:none!important}

/* ---------- Mesma largura em todas as fichas ----------
   (a ficha 01 tem o bloco do formulário limitado a ~68% no computador e fixo em 500px no celular; aqui ignoramos isso) */
body.hr-ficha .e-con:has(> .elementor-widget-form),
body.hr-ficha .e-con-inner:has(> .elementor-widget-form){width:100%!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important;--width:100%!important;--content-width:100%!important}
