/* ==========================================================================
   HSMP Core — Formulário de marcações (nativo, sem iframe)
   Namespace total em .hsmp-form para não colidir com o tema nem o Elementor.
   Design system: navy #1B2F5B · steel #326293 · bg #F6F6F6 · gold #F2C12E
   Cantos retos em tudo (border-radius: 0).
   ========================================================================== */

.hsmp-form {
  --hf-navy: #1B2F5B;
  --hf-steel: #326293;
  --hf-steel-dark: #27507a;
  --hf-bg: #F6F6F6;
  --hf-line: #DFE3EA;
  --hf-gold: #F2C12E;
  --hf-green: #2e7d5b;
  --hf-amber-bg: #FFF6E0;
  --hf-amber-line: #E8C66A;
  --hf-muted: #5C6880;
  --hf-title: "Sofia Sans Extra Condensed", "Barlow Condensed", sans-serif;
  --hf-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  font-family: var(--hf-body);
  color: var(--hf-navy);
  background: var(--hf-bg);
  padding: 34px 20px 40px;
  box-sizing: border-box;
}

.hsmp-form *,
.hsmp-form *::before,
.hsmp-form *::after { box-sizing: border-box; }

.hsmp-form__inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ---------- Tabs consulta / exame ---------- */

.hsmp-form__tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 26px;
}

.hsmp-form__tab {
  flex: 1 1 0;
  border: 0;
  border-radius: 0;
  background: #E6E9EF;
  color: var(--hf-navy);
  font-family: var(--hf-title);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 17px 14px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.hsmp-form__tab:hover { background: #DADFE8; }

.hsmp-form__tab[aria-selected="true"] {
  background: var(--hf-steel);
  color: #fff;
}

.hsmp-form__tab:focus-visible {
  outline: 3px solid var(--hf-gold);
  outline-offset: -3px;
}

/* ---------- Grelha: passos + resumo sticky ---------- */

.hsmp-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 980px) {
  .hsmp-form__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
}

/* ---------- Passo ---------- */

.hsmp-step {
  background: #fff;
  border: 1px solid var(--hf-line);
  border-radius: 0;
  padding: 22px 24px 24px;
  margin-bottom: 14px;
  opacity: 1;
  transition: opacity .22s ease, transform .22s ease;
}

.hsmp-step[hidden] { display: none; }

.hsmp-step--locked {
  opacity: 0.32;
  pointer-events: none;
  user-select: none;
}

.hsmp-step--entering {
  animation: hsmpStepIn .22s ease both;
}

@keyframes hsmpStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.hsmp-step__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hsmp-step__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hf-steel);
  color: #fff;
  border-radius: 50%;
  font-family: var(--hf-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
}

.hsmp-step--done .hsmp-step__num { background: var(--hf-green); }

.hsmp-step__label {
  font-family: var(--hf-title);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  color: var(--hf-navy);
}

/* ---------- Campos ---------- */

.hsmp-form label.hsmp-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--hf-navy);
}

.hsmp-form select.hsmp-input,
.hsmp-form input.hsmp-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #C6CDD9;
  border-radius: 0;
  background: #fff;
  color: var(--hf-navy);
  font-family: var(--hf-body);
  font-size: 16px;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
}

.hsmp-form select.hsmp-input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='%231B2F5B' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.hsmp-form .hsmp-input:focus {
  outline: 3px solid var(--hf-gold);
  outline-offset: -1px;
  border-color: var(--hf-steel);
}

.hsmp-form .hsmp-input[aria-invalid="true"] {
  border-color: #B3261E;
  background-color: #FDF3F2;
}

.hsmp-field { margin-bottom: 16px; }
.hsmp-field:last-child { margin-bottom: 0; }

.hsmp-error {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #B3261E;
}

.hsmp-hint {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--hf-muted);
}

/* ---------- Grelha de campos (dados pessoais) ---------- */

@media (min-width: 620px) {
  .hsmp-fields-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .hsmp-fields-2 .hsmp-field--full { grid-column: 1 / -1; }
}

/* ---------- Checkbox RGPD ---------- */

.hsmp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--hf-navy);
  cursor: pointer;
}

.hsmp-check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--hf-steel);
  border-radius: 0;
}

.hsmp-check a { color: var(--hf-steel); text-decoration: underline; }

/* ---------- Slots ---------- */

.hsmp-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.hsmp-slot {
  border: 1px solid #C6CDD9;
  border-radius: 0;
  background: #fff;
  padding: 13px 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--hf-body);
  color: var(--hf-navy);
  transition: border-color .15s ease, background .15s ease;
}

.hsmp-slot:hover { border-color: var(--hf-steel); background: #F3F7FB; }

.hsmp-slot[aria-pressed="true"] {
  background: var(--hf-steel);
  border-color: var(--hf-steel);
  color: #fff;
}

.hsmp-slot:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 2px; }

.hsmp-slot__day {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: .85;
}

.hsmp-slot__time {
  display: block;
  font-family: var(--hf-title);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  margin-top: 2px;
}

/* ---------- Etiqueta "em integração" ---------- */

.hsmp-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--hf-green);
  margin-bottom: 12px;
}

.hsmp-live::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hf-green);
  animation: hsmpPulse 1.6s ease-in-out infinite;
}

@keyframes hsmpPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

@media (prefers-reduced-motion: reduce) {
  .hsmp-live::before { animation: none; }
  .hsmp-step--entering { animation: none; }
}

/* ---------- Notas ---------- */

.hsmp-note {
  border-left: 3px solid var(--hf-amber-line);
  background: var(--hf-amber-bg);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.45;
  margin-top: 12px;
}

.hsmp-note--info {
  border-left-color: var(--hf-steel);
  background: #EFF4F9;
}

/* ---------- Botões ---------- */

.hsmp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 0;
  background: var(--hf-steel);
  color: #fff;
  font-family: var(--hf-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease;
}

.hsmp-btn:hover { background: var(--hf-steel-dark); }
.hsmp-btn:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 2px; }

.hsmp-btn[disabled] {
  background: #A9B4C4;
  cursor: not-allowed;
}

.hsmp-btn--full { width: 100%; }

.hsmp-btn--ghost {
  background: transparent;
  color: var(--hf-steel);
  border: 1px solid var(--hf-steel);
  min-height: 44px;
  padding: 10px 20px;
}

.hsmp-btn--ghost:hover { background: #EFF4F9; }

.hsmp-btn__spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hsmpSpin .7s linear infinite;
}

@keyframes hsmpSpin { to { transform: rotate(360deg); } }

/* ---------- Resumo ---------- */

.hsmp-summary {
  background: #fff;
  border: 1px solid var(--hf-line);
  border-top: 3px solid var(--hf-steel);
  padding: 20px 22px 22px;
}

@media (min-width: 980px) {
  .hsmp-summary { position: sticky; top: 24px; }
}

.hsmp-summary__title {
  font-family: var(--hf-title);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hsmp-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #EDF0F4;
  font-size: 14.5px;
}

.hsmp-summary__row:last-child { border-bottom: 0; }

.hsmp-summary__k {
  color: var(--hf-muted);
  flex: 0 0 auto;
}

.hsmp-summary__v {
  text-align: right;
  font-weight: 600;
}

.hsmp-summary__v--empty { color: #A9B4C4; font-weight: 400; }

.hsmp-summary__tel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #EDF0F4;
  font-size: 14px;
  color: var(--hf-muted);
  line-height: 1.5;
}

.hsmp-summary__tel a {
  color: var(--hf-steel);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Barra fixa mobile ---------- */

.hsmp-mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--hf-line);
  box-shadow: 0 -4px 14px rgba(27,47,91,.10);
}

.hsmp-mobilebar__txt {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
  color: var(--hf-muted);
}

.hsmp-mobilebar__txt strong {
  display: block;
  color: var(--hf-navy);
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsmp-mobilebar .hsmp-btn { flex: 0 0 auto; min-height: 46px; padding: 12px 18px; }

@media (min-width: 980px) { .hsmp-mobilebar { display: none; } }

body.hsmp-has-mobilebar { padding-bottom: 76px; }

@media (min-width: 980px) { body.hsmp-has-mobilebar { padding-bottom: 0; } }

/* ---------- Skeleton / estados ---------- */

.hsmp-skel {
  height: 48px;
  background: linear-gradient(90deg, #EDF0F4 25%, #F6F8FA 50%, #EDF0F4 75%);
  background-size: 400% 100%;
  animation: hsmpSkel 1.2s ease infinite;
}

@keyframes hsmpSkel {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}

.hsmp-loading {
  font-size: 14px;
  color: var(--hf-muted);
  padding: 10px 0;
}

.hsmp-fatal {
  background: #fff;
  border-left: 3px solid #B3261E;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.5;
}

.hsmp-fatal a { color: var(--hf-steel); font-weight: 700; }

/* ---------- Ecrã de sucesso ---------- */

.hsmp-done {
  background: #fff;
  border: 1px solid var(--hf-line);
  border-top: 3px solid var(--hf-green);
  padding: 34px 30px;
  text-align: center;
}

.hsmp-done__title {
  font-family: var(--hf-title);
  font-weight: 700;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--hf-navy);
}

.hsmp-done__lead {
  font-size: 16.5px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 22px;
  color: var(--hf-muted);
}

.hsmp-done__box {
  text-align: left;
  max-width: 480px;
  margin: 0 auto 24px;
  border: 1px solid var(--hf-line);
  padding: 16px 18px;
}

.hsmp-done__ref {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--hf-title);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--hf-gold);
  color: var(--hf-navy);
  padding: 6px 14px;
}

/* ---------- Acessibilidade ---------- */

.hsmp-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fallback sem JS ---------- */

.hsmp-form noscript .hsmp-note { display: block; margin-top: 0; }

/* ==========================================================================
   BLINDAGEM CONTRA O TEMA
   O tema do HSMP impõe font-size 80px a tudo o que use a Sofia Sans e troca a
   font-family dos labels/inputs por din-2014. Sem !important o formulário sai
   com títulos gigantes e overflow horizontal. Mesma solução já usada nos
   módulos do mega menu (v1.5.x).
   ========================================================================== */

.hsmp-form {
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--hf-body) !important;
}

.hsmp-form__tab {
  font-family: var(--hf-title) !important;
  font-size: 21px !important;
  line-height: 1.1 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  min-width: 0;
}

.hsmp-step__label {
  font-family: var(--hf-title) !important;
  font-size: 25px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.03em !important;
  font-weight: 700 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase !important;
  color: var(--hf-navy) !important;
}

.hsmp-summary__title {
  font-family: var(--hf-title) !important;
  font-size: 23px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
  text-transform: uppercase !important;
}

.hsmp-done__title {
  font-family: var(--hf-title) !important;
  font-size: 38px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.03em !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  text-transform: uppercase !important;
}

.hsmp-slot__time {
  font-family: var(--hf-title) !important;
  font-size: 27px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
}

.hsmp-done__ref {
  font-family: var(--hf-title) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

.hsmp-step__num {
  font-family: var(--hf-body) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
}

.hsmp-form label.hsmp-label {
  font-family: var(--hf-body) !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  color: var(--hf-navy) !important;
}

.hsmp-form select.hsmp-input,
.hsmp-form input.hsmp-input {
  font-family: var(--hf-body) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  min-height: 48px !important;
  height: auto !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

.hsmp-form .hsmp-btn {
  font-family: var(--hf-body) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  border-radius: 0 !important;
  min-height: 52px !important;
  height: auto !important;
  width: auto;
}

.hsmp-form .hsmp-btn--full { width: 100% !important; }
.hsmp-form .hsmp-btn--ghost { min-height: 44px !important; }

.hsmp-form .hsmp-slot {
  font-family: var(--hf-body) !important;
  border-radius: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.hsmp-slot__day {
  font-family: var(--hf-body) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  letter-spacing: 0.04em !important;
  font-weight: 400 !important;
}

.hsmp-form .hsmp-note,
.hsmp-form .hsmp-hint,
.hsmp-form .hsmp-error,
.hsmp-form .hsmp-check,
.hsmp-form .hsmp-summary__row,
.hsmp-form .hsmp-loading,
.hsmp-form .hsmp-live,
.hsmp-form .hsmp-summary__tel,
.hsmp-form .hsmp-mobilebar__txt {
  font-family: var(--hf-body) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.hsmp-form .hsmp-note,
.hsmp-form .hsmp-check { font-size: 14.5px !important; line-height: 1.45 !important; }
.hsmp-form .hsmp-hint,
.hsmp-form .hsmp-error { font-size: 13.5px !important; line-height: 1.4 !important; }
.hsmp-form .hsmp-summary__row { font-size: 14.5px !important; line-height: 1.4 !important; }
.hsmp-form .hsmp-live { font-size: 13px !important; line-height: 1.3 !important; letter-spacing: 0.03em !important; }
.hsmp-form .hsmp-done__lead { font-family: var(--hf-body) !important; font-size: 16.5px !important; line-height: 1.55 !important; }

/* o tema mete margens grandes em p/h3 dentro de conteúdo */
.hsmp-form p, .hsmp-form h2, .hsmp-form h3 { margin-top: 0; }
.hsmp-form .hsmp-step__head { margin-bottom: 16px !important; }

/* evitar que a grelha empurre a página para a direita */
.hsmp-form__grid > * { min-width: 0; }

/* --- cores: o tema pinta qualquer <button> de dourado (#FDD204) --- */
.hsmp-form .hsmp-form__tab {
  background: #E6E9EF !important;
  color: var(--hf-navy) !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hsmp-form .hsmp-form__tab:hover { background: #DADFE8 !important; }
.hsmp-form .hsmp-form__tab[aria-selected="true"] {
  background: var(--hf-steel) !important;
  color: #fff !important;
}

.hsmp-form .hsmp-btn {
  background: var(--hf-steel) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.hsmp-form .hsmp-btn:hover { background: var(--hf-steel-dark) !important; }
.hsmp-form .hsmp-btn[disabled] { background: #A9B4C4 !important; }
.hsmp-form .hsmp-btn--ghost {
  background: transparent !important;
  color: var(--hf-steel) !important;
  border: 1px solid var(--hf-steel) !important;
}
.hsmp-form .hsmp-btn--ghost:hover { background: #EFF4F9 !important; }

.hsmp-form .hsmp-slot {
  background: #fff !important;
  color: var(--hf-navy) !important;
  border: 1px solid #C6CDD9 !important;
  box-shadow: none !important;
}
.hsmp-form .hsmp-slot:hover { background: #F3F7FB !important; border-color: var(--hf-steel) !important; }
.hsmp-form .hsmp-slot[aria-pressed="true"] {
  background: var(--hf-steel) !important;
  border-color: var(--hf-steel) !important;
  color: #fff !important;
}

.hsmp-form .hsmp-step__num { background: var(--hf-steel) !important; color: #fff !important; }
.hsmp-form .hsmp-step--done .hsmp-step__num { background: var(--hf-green) !important; }

/* honeypot: o tema força largura nos inputs e o campo esticava a página */
.hsmp-form .hsmp-sr {
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   v1.7.0 — AFINAÇÃO ESTÉTICA (alinhar com o resto do site)
   O site usa Sofia Sans Extra Condensed em CAIXA MISTA, sem letter-spacing,
   navy #1B2F5B (ver "Atendimento Urgente" / "Consulta sem marcação" na home).
   A primeira versão do formulário usava tudo em MAIÚSCULAS com letter-spacing,
   o que destoava. Este bloco reafina tipografia, botões, espaçamentos e
   acrescenta o cabeçalho (hero) opcional da página.
   Mantém-se a "blindagem contra o tema" acima — daí o !important.
   ========================================================================== */

.hsmp-form {
  padding: 40px 60px 56px;
}

@media (max-width: 900px) { .hsmp-form { padding: 22px 20px 34px; } }

/* ---------- Hero da página (opcional: [hsmp_form hero="sim"]) ---------- */

.hsmp-form-hero {
  background: linear-gradient(135deg, #1B2F5B 0%, #326293 100%);
  color: #fff;
  padding: 46px 60px 42px;
}

.hsmp-form-hero__inner { max-width: 1160px; margin: 0 auto; }

.hsmp-form-hero h1 {
  font-family: "Sofia Sans Extra Condensed", "Barlow Condensed", sans-serif !important;
  font-weight: 700 !important;
  font-size: 62px !important;
  line-height: .95 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  max-width: 20ch;
}

.hsmp-form-hero p {
  font-family: "Barlow", sans-serif !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  color: #C9D6F2 !important;
  margin: 0 !important;
  max-width: 62ch;
}

.hsmp-form-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.18);
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  color: #C9D6F2;
}

.hsmp-form-hero__meta b {
  display: block;
  font-family: "Sofia Sans Extra Condensed", sans-serif;
  font-size: 27px;
  line-height: 1;
  color: #fff;
  font-weight: 700;
}

.hsmp-form-hero__meta a { color: #fff !important; text-decoration: none; }
.hsmp-form-hero__meta span { border-left: 2px solid var(--hf-gold); padding-left: 12px; display: block; }

@media (max-width: 900px) {
  .hsmp-form-hero { padding: 26px 20px 24px; }
  .hsmp-form-hero h1 { font-size: 38px !important; }
  .hsmp-form-hero p { font-size: 15px !important; }
  .hsmp-form-hero__meta b { font-size: 23px; }
}

/* o título pequenino do tema fica a mais quando existe hero */
body:has(.hsmp-form-hero) .page-header,
body:has(.hsmp-form-hero) .entry-header { display: none !important; }

/* ---------- Tabs: passam a parecer as entradas rápidas da home ---------- */

.hsmp-form__tabs { gap: 8px; margin-bottom: 22px; }

.hsmp-form .hsmp-form__tab {
  font-family: var(--hf-title) !important;
  font-size: 27px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 700 !important;
  padding: 16px 22px !important;
  text-align: left;
  background: #fff !important;
  color: var(--hf-navy) !important;
  border: 1px solid var(--hf-line) !important;
  border-bottom: 3px solid var(--hf-line) !important;
}

.hsmp-form .hsmp-form__tab:hover {
  background: #fff !important;
  border-bottom-color: #A9B4C4 !important;
}

.hsmp-form .hsmp-form__tab[aria-selected="true"] {
  background: var(--hf-steel) !important;
  color: #fff !important;
  border-color: var(--hf-steel) !important;
  border-bottom-color: var(--hf-gold) !important;
}

@media (max-width: 620px) {
  .hsmp-form .hsmp-form__tab { font-size: 21px !important; padding: 13px 14px !important; text-align: center; }
}

/* ---------- Passos ---------- */

.hsmp-step {
  padding: 24px 26px 26px;
  margin-bottom: 12px;
  border-top: 3px solid transparent;
}

/* o passo activo ganha o friso de aço, como os cards de unidade do site */
.hsmp-step--active { border-top-color: var(--hf-steel); }
.hsmp-step--done  { border-top-color: var(--hf-green); }

.hsmp-step--locked { opacity: .45; }

@media (max-width: 620px) { .hsmp-step { padding: 18px 16px 20px; } }

/* número do passo: quadrado, como os passos do mega menu (nada de círculos) */
.hsmp-form .hsmp-step__num {
  border-radius: 0 !important;
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  min-width: 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* título do passo: caixa mista, sem letter-spacing */
.hsmp-form .hsmp-step__label {
  font-size: 31px !important;
  line-height: .98 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 620px) { .hsmp-form .hsmp-step__label { font-size: 26px !important; } }

.hsmp-step__head { gap: 11px; }

/* ---------- Etiquetas e campos ---------- */

.hsmp-form label.hsmp-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase !important;
  color: var(--hf-steel) !important;
  margin-bottom: 7px;
}

.hsmp-form select.hsmp-input,
.hsmp-form input.hsmp-input {
  min-height: 50px !important;
  font-size: 16px !important;
  border-color: #C6CDD9 !important;
}

.hsmp-form .hsmp-input:hover { border-color: #9FAEC4 !important; }

/* ---------- Botões: iguais aos do site (Barlow 700, caixa alta, compactos) --- */

.hsmp-form .hsmp-btn {
  font-size: 13px !important;
  letter-spacing: .08em !important;
  min-height: 50px !important;
  padding: 14px 28px !important;
}

.hsmp-form .hsmp-btn--ghost { min-height: 42px !important; font-size: 12px !important; padding: 10px 18px !important; }

/* ---------- Resumo ---------- */

.hsmp-form .hsmp-summary__title {
  font-size: 27px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 12px !important;
}

.hsmp-summary { padding: 22px 22px 24px; }

.hsmp-summary__k { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

.hsmp-form .hsmp-summary__tel a:hover { font-size: 14px !important; }

/* ---------- Horários ---------- */

.hsmp-form .hsmp-slot__time {
  font-size: 30px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.hsmp-slot__day { font-size: 11.5px !important; font-weight: 700 !important; letter-spacing: .1em !important; }

.hsmp-slot { padding: 12px 13px; }

@media (max-width: 620px) {
  .hsmp-slots { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
  .hsmp-form .hsmp-slot__time { font-size: 25px !important; }
}

/* ---------- Ecrã final ---------- */

.hsmp-form .hsmp-done__title {
  font-size: 46px !important;
  line-height: .98 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.hsmp-form .hsmp-done__ref {
  font-family: var(--hf-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  padding: 8px 16px;
}

@media (max-width: 620px) { .hsmp-form .hsmp-done__title { font-size: 34px !important; } }

/* ---------- Barra fixa de telemóvel: mesma linguagem da .hsmp-mbar ---------- */

.hsmp-mobilebar { padding: 8px 12px; }
.hsmp-form .hsmp-mobilebar .hsmp-btn { min-height: 44px !important; padding: 11px 16px !important; font-size: 12px !important; }

/* a barra do formulário substitui a barra global do site enquanto se marca */
body.hsmp-has-mobilebar .hsmp-mbar { display: none !important; }

/* ---------- Guarda contra o "zoom" de hover do kit do Elementor ---------- */
/* ver nota em hsmp-front.css (v1.7.0): o kit tem tipografia de hover ligada a
   uma global vazia, o que faz o texto herdar o tamanho do pai ao passar o rato */
.hsmp-form a:hover, .hsmp-form button:hover { font-size: inherit; }
.hsmp-form .hsmp-check a:hover { font-size: 14.5px !important; }

/* v1.7.0-a — o kit do Elementor impõe 18px a qualquer <a>; o telefone do hero
   ficava pequeno dentro do <b>. Herdar o tamanho do contentor. */
.hsmp-form-hero__meta b a,
.hsmp-form-hero__meta a { font-size: inherit !important; line-height: inherit !important; }
.hsmp-form-hero__meta a:hover { font-size: inherit !important; text-decoration: underline; }

/* v1.7.1 — a regra dos artigos no kit (body.hsmp-fullw .elementor-widget-theme-post-content a:not(.hsmp-artigo-cta-btn), !important, (0,3,2)) pintava o telefone do hero de aço sobre navy. Override com especificidade (0,4,2). */
body.hsmp-fullw .elementor-widget-theme-post-content .hsmp-form-hero .hsmp-form-hero__meta a,
.hsmp-form-hero .hsmp-form-hero__meta a {
  color: #fff !important;
  text-decoration: none !important;
}
body.hsmp-fullw .elementor-widget-theme-post-content .hsmp-form-hero .hsmp-form-hero__meta a:hover,
.hsmp-form-hero .hsmp-form-hero__meta a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   v1.7.0-b — correcções encontradas no teste em telemóvel (iframe 390px)
   ========================================================================== */

/* A barra fixa de telemóvel é injectada no <body>, FORA de .hsmp-form. As
   variáveis do design system estão declaradas em .hsmp-form, por isso não lhe
   chegavam: o botão "Ligar" ficava #F6F6F6 sobre branco (invisível) e todas as
   regras prefixadas com `.hsmp-form .hsmp-mobilebar` eram letra morta. */
.hsmp-mobilebar {
  --hf-navy: #1B2F5B;
  --hf-steel: #326293;
  --hf-steel-dark: #27507a;
  --hf-bg: #F6F6F6;
  --hf-line: #DFE3EA;
  --hf-gold: #F2C12E;
  --hf-green: #2e7d5b;
  --hf-muted: #5C6880;
  --hf-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--hf-body);
}

.hsmp-mobilebar .hsmp-btn {
  background: var(--hf-steel) !important;
  color: #fff !important;
  border: 0 !important;
  font-family: var(--hf-body) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  min-height: 44px !important;
  padding: 11px 16px !important;
  box-shadow: none !important;
}

.hsmp-mobilebar .hsmp-btn--ghost {
  background: #fff !important;
  color: var(--hf-steel) !important;
  border: 1px solid var(--hf-steel) !important;
}

.hsmp-mobilebar .hsmp-btn[disabled] { background: #A9B4C4 !important; color: #fff !important; border: 0 !important; }

.hsmp-mobilebar__txt { font-family: var(--hf-body) !important; color: var(--hf-muted) !important; font-size: 13px !important; }
.hsmp-mobilebar__txt strong { color: var(--hf-navy) !important; font-size: 14px !important; }

/* Tabs: em 390px o texto transbordava a caixa (scrollWidth 175 > 154). */
@media (max-width: 520px) {
  .hsmp-form .hsmp-form__tab { font-size: 17px !important; padding: 12px 8px !important; letter-spacing: 0 !important; }
}
@media (max-width: 380px) {
  .hsmp-form .hsmp-form__tab { font-size: 16px !important; padding: 11px 6px !important; }
}

/* Passo concluído: risco mais discreto — o activo é que deve saltar à vista. */
.hsmp-step--done { border-top-color: #BFD9CC; }


/* ============================================================
   v1.7.1-compact (2026-08-12, pedido do Pedro) — form mais curto
   1) Etiquetas .hsmp-label saem do ecrã mas ficam para leitores de
      ecrã (a info passou para o placeholder / 1.ª opção do select).
   2) Campos e títulos de passo mais baixos.
   3) Em telemóvel o hero e o form ocupam a largura toda (o cartão
      já tem goteira interna).
   ============================================================ */
.hsmp-form .hsmp-label {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important; border: 0 !important;
}
.hsmp-form select.hsmp-input,
.hsmp-form input.hsmp-input {
  min-height: 42px !important;
  padding: 8px 12px !important;
}
.hsmp-form .hsmp-step__label { font-size: 24px !important; }
.hsmp-form .hsmp-step__num {
  width: 24px !important; height: 24px !important;
  font-size: 12.5px !important;
}
.hsmp-form .hsmp-step { padding-top: 28px !important; padding-bottom: 28px !important; }
@media (max-width: 782px) {
  .hsmp-form .hsmp-step__label { font-size: 21px !important; }
  .hsmp-form,
  .hsmp-form-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
}


/* ==========================================================================
   v1.8 (2026-08-26) — switch residente/não residente, calendário de dia e
   hora preferencial (substitui os slots), newsletter, tabs com rótulo longo
   ========================================================================== */

.hsmp-form .hsmp-form__tab { white-space: normal !important; line-height: 1.1 !important; }

/* --- switch segmentado (residência) --- */
.hsmp-form .hsmp-seg {
  display: flex; gap: 4px; margin: 0 0 16px;
  background: #EDF0F5; border: 1px solid #C6CDD9; padding: 4px;
}
.hsmp-form .hsmp-seg__btn {
  flex: 1 1 0; padding: 10px 12px; border: 0 !important; cursor: pointer;
  background: transparent !important; color: var(--hf-navy) !important;
  font-family: var(--hf-body) !important; font-size: 12.5px !important;
  font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important;
  line-height: 1.2 !important;
}
.hsmp-form .hsmp-seg__btn:hover { background: #DADFE8 !important; font-size: 12.5px !important; }
.hsmp-form .hsmp-seg__btn[aria-checked="true"] { background: var(--hf-steel) !important; color: #fff !important; }
.hsmp-form .hsmp-seg__btn:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 1px; }

/* --- calendário de preferência --- */
.hsmp-cal { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 620px) { .hsmp-cal { grid-template-columns: 1fr; } }

.hsmp-cal__month, .hsmp-cal__times { border: 1px solid #C6CDD9; background: #fff; padding: 14px; }
.hsmp-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hsmp-cal__head strong {
  font-family: var(--hf-title) !important; font-size: 22px !important;
  color: var(--hf-navy) !important; text-transform: capitalize; line-height: 1 !important;
}
.hsmp-form .hsmp-cal__navbtn {
  width: 32px; height: 32px; border: 1px solid #C6CDD9 !important; margin-left: 6px; cursor: pointer;
  background: #fff !important; color: var(--hf-navy) !important; font-size: 16px !important;
  line-height: 1 !important; padding: 0 !important;
}
.hsmp-form .hsmp-cal__navbtn:hover { border-color: var(--hf-steel) !important; background: #F3F7FB !important; font-size: 16px !important; }
.hsmp-form .hsmp-cal__navbtn:disabled { opacity: .35; cursor: default; }
.hsmp-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hsmp-form .hsmp-cal__dow {
  font-family: var(--hf-body) !important; font-size: 10.5px !important; font-weight: 700 !important;
  letter-spacing: .08em !important; color: var(--hf-steel) !important; text-align: center; padding: 4px 0 6px;
}
.hsmp-form .hsmp-cal__day {
  min-height: 36px; border: 1px solid transparent !important; cursor: pointer;
  background: #F3F5F9 !important; color: var(--hf-navy) !important;
  font-family: var(--hf-body) !important; font-size: 14px !important; padding: 0 !important;
  line-height: 1 !important;
}
.hsmp-form .hsmp-cal__day:hover { border-color: var(--hf-steel) !important; background: #F3F7FB !important; font-size: 14px !important; }
.hsmp-form .hsmp-cal__day:disabled { background: transparent !important; color: #B4BCCB !important; cursor: default; border-color: transparent !important; }
.hsmp-form .hsmp-cal__day.is-sel { background: var(--hf-steel) !important; color: #fff !important; }
.hsmp-form .hsmp-cal__day:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 1px; }

.hsmp-cal__times { display: flex; flex-direction: column; }
.hsmp-cal__timeshead {
  font-family: var(--hf-title) !important; font-size: 22px !important;
  color: var(--hf-navy) !important; margin-bottom: 10px; line-height: 1 !important;
}
.hsmp-cal__timeshint { color: #6C7686; font-size: 14px; margin: auto 0; text-align: center; }
.hsmp-cal__timelist { display: grid; grid-template-columns: 1fr; gap: 8px; overflow-y: auto; max-height: 320px; padding-right: 2px; }
@media (max-width: 620px) { .hsmp-cal__timelist { grid-template-columns: repeat(3, 1fr); max-height: none; } }
.hsmp-form .hsmp-cal__time {
  border: 1px solid #C6CDD9 !important; padding: 8px 10px; cursor: pointer; text-align: center;
  background: #fff !important; color: var(--hf-navy) !important;
  font-family: var(--hf-title) !important; font-size: 21px !important; line-height: 1.1 !important;
}
.hsmp-form .hsmp-cal__time:hover { border-color: var(--hf-steel) !important; background: #F3F7FB !important; font-size: 21px !important; }
.hsmp-form .hsmp-cal__time[aria-pressed="true"] { background: var(--hf-steel) !important; color: #fff !important; border-color: var(--hf-steel) !important; }
.hsmp-form .hsmp-cal__time:focus-visible { outline: 3px solid var(--hf-gold); outline-offset: 2px; }
