/**
 * Formulário Austera — alinhado ao ecrã de login admin (cartão #f4f6fb, #1f3cb0, fundo com imagem)
 */
:root {
  --login-blue: #1f3cb0;
  --login-blue-hover: #19349b;
  --login-card: #f4f6fb;
  --login-title: #273043;
  --login-input-bg: #e9eef8;
  --login-input-border: #d6deeb;
  --login-input-focus: #8da6e6;
  /* Texto secundário / observações — um pouco mais escuro para legibilidade */
  --login-muted: #6a768a;
  --login-shadow-card: 0 16px 35px rgba(2, 8, 28, 0.32);
  /* Sombra suave nos botões primários (evita faixa azul escura sob o controlo) */
  --login-shadow-btn: 0 1px 2px rgba(25, 40, 90, 0.06), 0 3px 10px rgba(31, 60, 176, 0.12);
  --login-shadow-btn-hover: 0 2px 4px rgba(25, 40, 90, 0.08), 0 5px 14px rgba(31, 60, 176, 0.16);
  --austera-touch: 48px;
  --austera-font: "Inter", "Source Sans Pro", Arial, sans-serif;
  --austera-step-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-card: 14px;
  --radius-input: 6px;
  --radius-btn: 8px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.austera-page {
  --austera-header-stack: calc(0.65rem + env(safe-area-inset-top, 0px) + clamp(36px, 9vw, 46px) + 0.65rem);
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--austera-font);
  color: rgba(255, 255, 255, 0.92);
  background-color: rgb(16, 38, 142);
  background-image: url("/assets/admin/img/login-bg.jpg?v=1");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  padding: 0 env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0);
}

@media (max-width: 767px) {
  body.austera-page {
    background-image: url("/assets/admin/img/login-bg-mobile.jpg?v=1");
    background-position: center bottom;
  }
}

/* Header fixo — mesmo tom do login, sobre a imagem */
.austera-page .austera-fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px)) 1rem 0.55rem;
  background: rgba(16, 38, 142, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(2, 8, 28, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.austera-page .austera-fixed-header__inner {
  max-width: 32rem;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(36px, 9vw, 46px);
}

.austera-page .austera-fixed-header__logo {
  height: clamp(36px, 9vw, 46px);
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  display: block;
}

/* Área principal: centra o cartão na altura útil (como o login), scroll se o conteúdo for alto */
.austera-page .austera-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding-top: var(--austera-header-stack);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Layout — margens laterais + safe-area (não usar padding: 0 em wrap--main ou anula o horizontal) */
.austera-page .wrap {
  max-width: min(100%, 520px);
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  padding-top: 0;
  padding-bottom: 0;
}

.austera-page .wrap--main {
  width: 100%;
  padding-top: 0.25rem;
  padding-bottom: 0.35rem;
  flex-shrink: 0;
}

/* Em ecrãs baixos ou teclado aberto: alinha ao topo para não cortar o início do formulário */
@media (max-height: 520px) {
  .austera-page .austera-main {
    justify-content: flex-start;
  }
}

/* Cartão = login-box-body */
.austera-page .card {
  --c-text: #273043;
  --c-muted: #4a5568;
  --c-soft: #6a768a;
  --c-border: #d6deeb;
  --c-input-bg: #e9eef8;
  --c-surface: #e9eef8;
  position: relative;
  background: var(--login-card);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 3.5vw, 1.45rem) clamp(1rem, 3.5vw, 1.65rem) clamp(1rem, 2.5vw, 1.25rem);
  box-shadow: var(--login-shadow-card);
  color: var(--c-text);
  overflow: hidden;
  border: none;
  width: 100%;
  max-width: 100%;
  animation: austeraCardIn 0.55s var(--austera-step-ease) both;
}

.austera-page .card::before {
  display: none;
}

@keyframes austeraCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .austera-page .card {
    animation: none;
  }
}

/* Cabeçalho do formulário — centrado como a referência / mensagem do login */
.austera-page .row-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.austera-page .row-head h1 {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--login-title);
}

.austera-page .intro {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  max-width: 36em;
}

.austera-page .badge {
  flex-shrink: 0;
  background: rgba(31, 60, 176, 0.08);
  color: var(--login-blue);
  border: 1px solid rgba(31, 60, 176, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progresso */
.austera-page .wizard-progress-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
}

.austera-page .wizard-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 0.45rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--c-soft);
}

.austera-page .wizard-progress-label span.num {
  color: var(--login-title);
  font-variant-numeric: tabular-nums;
}

.austera-page .wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 60, 176, 0.12);
  overflow: hidden;
}

.austera-page .wizard-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--login-blue);
  box-shadow: none;
  transition: width 0.45s var(--austera-step-ease);
}

@media (prefers-reduced-motion: reduce) {
  .austera-page .wizard-progress-fill {
    transition: none;
  }
}

/* Erro — estilo próximo ao #loginErr */
.austera-page .err {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-input);
  background: rgba(201, 48, 44, 0.08);
  border: 1px solid rgba(201, 48, 44, 0.25);
  color: #c9302c;
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1.4;
}

.austera-page .err.err--shake {
  animation: austeraErrShake 0.5s var(--austera-step-ease);
}

@keyframes austeraErrShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .austera-page .err.err--shake {
    animation: none;
  }
}

/* Campo de ficheiro em falta (validação do assistente) */
.austera-page .full.file-field--error {
  margin: -0.35rem;
  padding: 0.5rem 0.45rem 0.55rem;
  border-radius: var(--radius-input);
  background: rgba(201, 48, 44, 0.06);
  border: 1px solid rgba(201, 48, 44, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 48, 44, 0.12);
}

.austera-page .full.file-field--error > label {
  color: #c9302c;
}

/* Resposta após envio */
.austera-page .submit-result {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-input);
  font-size: 0.92rem;
  line-height: 1.5;
}

.austera-page .submit-result[hidden] {
  display: none !important;
}

.austera-page .submit-result__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.austera-page .submit-result p {
  margin: 0 0 0.45rem;
}

.austera-page .submit-result p:last-child {
  margin-bottom: 0;
}

.austera-page .submit-result__protocol {
  margin-top: 0.65rem !important;
  font-size: 0.95rem;
}

.austera-page .submit-result__hint {
  color: var(--c-muted, #4a5568);
  font-size: 0.88rem;
  margin-top: 0.75rem !important;
}

.austera-page .submit-result--loading {
  background: rgba(31, 60, 176, 0.07);
  border: 1px solid rgba(31, 60, 176, 0.2);
  color: var(--login-blue, #1f3cb0);
}

.austera-page .submit-result--success {
  background: rgba(46, 125, 50, 0.09);
  border: 1px solid rgba(46, 125, 50, 0.28);
  color: #1b5e20;
}

.austera-page .wizard-shell[hidden] {
  display: none !important;
}

.austera-page .submit-result--done-only {
  margin-top: 0;
  text-align: center;
  padding: 2.5rem 1.5rem 2.75rem;
}

.austera-page .submit-result__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.austera-page .submit-result--done-only .submit-result__title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.austera-page .submit-result__subtitle {
  color: #2e5c30;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 auto 0 !important;
  opacity: 0.85;
}

.austera-page .submit-result--done-only .submit-result__protocol {
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
  font-size: 0.75rem;
  opacity: 0.55;
  letter-spacing: 0.01em;
}

.austera-page .submit-result--done-only .submit-result__protocol span {
  font-family: monospace;
}

.austera-page .submit-result--error {
  background: rgba(201, 48, 44, 0.08);
  border: 1px solid rgba(201, 48, 44, 0.25);
  color: #c9302c;
}

/* Passos */
.austera-page .wizard-step {
  display: none;
  position: relative;
  z-index: 1;
}

.austera-page .wizard-step.is-active {
  display: block;
  animation: austeraStepIn 0.38s var(--austera-step-ease) both;
}

@keyframes austeraStepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .austera-page .wizard-step.is-active {
    animation: none;
  }
}

.austera-page .wizard-step h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 600;
  color: var(--login-title);
}

/* Passo boas-vindas — mais visual, menos “bloco de texto” */
.austera-page .wizard-step--welcome {
  text-align: center;
}

.austera-page .welcome-hero {
  margin: 0 0 1rem;
}

.austera-page .welcome-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.austera-page .welcome-icon {
  width: 3.25rem;
  height: 3.25rem;
  color: var(--login-blue);
  opacity: 0.95;
}

.austera-page .welcome-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--login-muted);
}

.austera-page .wizard-step--welcome .welcome-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 700;
  color: var(--login-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.austera-page .welcome-lead {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--c-muted);
  font-weight: 400;
}

.austera-page .welcome-lead strong {
  color: var(--login-title);
  font-weight: 600;
}

.austera-page .welcome-points {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.austera-page .welcome-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--login-input-border);
  border-radius: var(--radius-input);
  box-shadow: 0 1px 0 rgba(31, 60, 176, 0.04);
}

.austera-page .welcome-point-ic {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.08rem;
  border-radius: 50%;
  background: rgba(31, 60, 176, 0.1);
  color: var(--login-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.austera-page .welcome-point-ic svg {
  width: 0.7rem;
  height: 0.7rem;
}

.austera-page .welcome-point-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--login-title);
}

.austera-page .welcome-point-text strong {
  font-weight: 600;
}

.austera-page .welcome-tip {
  margin: 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--c-muted);
  background: rgba(31, 60, 176, 0.06);
  border-radius: var(--radius-input);
  border: 1px dashed rgba(31, 60, 176, 0.2);
  text-align: left;
}

.austera-page .welcome-tip-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--login-blue);
  background: rgba(31, 60, 176, 0.1);
  border-radius: 4px;
  vertical-align: middle;
}

.austera-page #form-austera {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.austera-page #form-austera > .wizard-step.is-active {
  flex: 0 0 auto;
}

/* Grid */
.austera-page .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .austera-page .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
  }
}

.austera-page .full {
  grid-column: 1 / -1;
}

.austera-page .phone-with-cc {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.austera-page .phone-with-cc select {
  flex: 0 0 auto;
  min-width: 9.5rem;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--login-input-border);
  border-radius: var(--radius-input);
  background: var(--login-input-bg);
  color: var(--login-title);
  padding: 0.5rem 0.55rem;
  font-size: 14px;
  font-family: var(--austera-font);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}

.austera-page .phone-with-cc select:focus {
  border-color: var(--login-input-focus);
}

.austera-page .phone-with-cc .phone-with-cc__num {
  flex: 1 1 10rem;
  min-width: 0;
}

.austera-page label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--login-title);
}

/* Inputs = .login-box-body .form-control */
.austera-page input[type="text"],
.austera-page input[type="email"],
.austera-page input[type="date"],
.austera-page input[type="tel"],
.austera-page textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--login-input-border);
  border-radius: var(--radius-input);
  background: var(--login-input-bg);
  color: var(--login-title);
  padding: 0.6rem 0.75rem;
  font-size: 14px;
  font-family: var(--austera-font);
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.austera-page input::placeholder,
.austera-page textarea::placeholder {
  color: var(--login-muted);
}

.austera-page input:focus,
.austera-page textarea:focus {
  border-color: var(--login-input-focus);
  box-shadow: none;
}

/* ── Campo com símbolo de moeda (€) ───────────────────────────────────────── */
.austera-page .field-currency {
  position: relative;
  display: flex;
  align-items: center;
}
.austera-page .field-currency::before {
  content: "€";
  position: absolute;
  left: 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--login-muted);
  pointer-events: none;
  z-index: 1;
}
.austera-page .field-currency input {
  padding-left: 1.9rem;
}
.austera-page .field-currency-suffix {
  position: absolute;
  font-size: 14px;
  color: var(--login-title);
  pointer-events: none;
  user-select: none;
  display: none;
}
.austera-page .field-currency-suffix.is-visible {
  display: block;
}

.austera-page textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.45;
}

/* Ficheiros */
.austera-page input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: var(--c-muted);
  cursor: pointer;
}

.austera-page input[type="file"]::file-selector-button,
.austera-page input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.65rem;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--login-blue);
  color: #fff;
  font-weight: 600;
  font-family: var(--austera-font);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s ease;
  box-shadow: var(--login-shadow-btn);
}

.austera-page input[type="file"]::file-selector-button:hover,
.austera-page input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--login-blue-hover);
  box-shadow: var(--login-shadow-btn-hover);
}

.austera-page input[type="file"]::file-selector-button:active,
.austera-page input[type="file"]::-webkit-file-upload-button:active {
  transform: scale(0.98);
  box-shadow: 0 1px 2px rgba(25, 40, 90, 0.05);
}

/* Escolhas */
.austera-page .choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.austera-page .choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-input);
  background: var(--login-input-bg);
  border: 1px solid var(--login-input-border);
  color: var(--login-title);
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: var(--austera-touch);
  font-size: 0.88rem;
}

.austera-page .choices label:hover {
  border-color: var(--login-input-focus);
}

.austera-page .choices label:active {
  transform: scale(0.995);
}

.austera-page .choices label:has(input:checked) {
  border-color: var(--login-blue);
  background: rgba(31, 60, 176, 0.08);
  box-shadow: none;
}

.austera-page .choices input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
  accent-color: var(--login-blue);
  cursor: pointer;
}

.austera-page .hint {
  color: var(--login-muted);
  font-weight: 500;
  font-size: 0.82rem;
}

.austera-page .field-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--login-muted);
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.35;
}

.austera-page .inspecao-tvde-obs:not([hidden]) {
  color: var(--login-title);
  font-size: 0.82rem;
}

.austera-page .field-group-label {
  margin: 0 0 0.45rem;
}

/** Perguntas antes de grupos de rádio — mesma legibilidade que o título / opções. */
.austera-page .hint.field-group-label,
.austera-page .hint.choice-question {
  color: var(--login-title);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.4;
}

.austera-page .field-group-label--spaced {
  margin-top: 0.85rem;
}

.austera-page .field-req {
  color: #c9302c;
  font-weight: 700;
  margin-left: 0.15em;
}

/** Esclarecimento ao lado do rótulo (ex.: CMTVDE = licença de motorista). */
.austera-page .field-label-note {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--login-muted);
  margin-left: 0.35rem;
}

/** Marca campos não obrigatórios (ficheiros ou outros). */
.austera-page .optional-indicator {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.14rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--login-muted);
  background: rgba(0, 26, 94, 0.07);
  border: 1px solid rgba(0, 26, 94, 0.14);
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.25;
  white-space: nowrap;
}

.austera-page .doc-note {
  font-size: 0.85rem;
  color: var(--c-muted);
  margin: 0 0 0.85rem;
  line-height: 1.45;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-input);
  background: rgba(31, 60, 176, 0.06);
  border-left: 3px solid var(--login-blue);
}

.austera-page .doc-note--warn {
  background: rgba(200, 30, 30, 0.07);
  border-left-color: #c81e1e;
  color: #8b0000;
}

.austera-page .doc-note--warn strong {
  color: #c81e1e;
}

.austera-page .doc-note--insurance-q {
  color: #142040;
  font-size: 0.9rem;
}

.austera-page .doc-note--insurance-q strong {
  font-weight: 700;
}

.austera-page .seguro-mediador-lembrete {
  margin: -0.25rem 0 0.85rem;
  font-style: italic;
  line-height: 1.45;
}

.austera-page .doc-extra-fieldset {
  border: none;
  padding: 0;
  margin: 0.85rem 0 0;
  width: 100%;
  min-width: 0;
}

.austera-page .doc-extra-fieldset .hint {
  margin-bottom: 0.45rem;
}

/* Revisão */
.austera-page .review-block {
  background: #fff;
  border: 1px solid var(--login-input-border);
  border-radius: var(--radius-input);
  padding: 0.85rem;
  margin-top: 0.45rem;
  font-size: 0.85rem;
  max-height: min(50vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.austera-page .review-block dt {
  color: var(--login-muted);
  font-weight: 700;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.austera-page .review-block dt:first-child {
  margin-top: 0;
}

.austera-page .review-block dd {
  margin: 0.15rem 0 0;
  color: var(--login-title);
  line-height: 1.4;
}

/* Navegação = botões login */
.austera-page .wizard-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--login-input-border);
  flex-shrink: 0;
}

@media (min-width: 420px) {
  .austera-page .wizard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
  }

  .austera-page .wizard-nav .btn-secondary {
    margin-right: auto;
  }
}

.austera-page .wizard-nav button {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--austera-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1rem;
  transition: background 0.15s, transform 0.12s, opacity 0.15s, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.austera-page .wizard-nav .btn {
  background-color: var(--login-blue);
  border: 1px solid var(--login-blue);
  color: #fff;
  box-shadow: var(--login-shadow-btn);
  order: -1;
}

.austera-page .wizard-nav .btn:hover {
  background-color: var(--login-blue-hover);
  border-color: var(--login-blue-hover);
  box-shadow: var(--login-shadow-btn-hover);
}

@media (min-width: 420px) {
  .austera-page .wizard-nav .btn {
    order: 0;
    flex: 0 1 auto;
    min-width: 9rem;
  }
}

.austera-page .wizard-nav .btn:active {
  transform: scale(0.99);
  box-shadow: 0 1px 2px rgba(25, 40, 90, 0.05);
}

.austera-page .wizard-nav .btn-secondary {
  background: transparent;
  border: 1px solid var(--login-input-border);
  color: var(--login-title);
  box-shadow: none;
}

.austera-page .wizard-nav .btn-secondary:hover {
  background: var(--login-input-bg);
  border-color: var(--login-input-focus);
}

.austera-page .wizard-nav button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.austera-page #form-austera.is-submitting .wizard-nav button {
  pointer-events: none;
  opacity: 0.85;
}

.austera-page #form-austera.is-submitting #btnSubmit {
  position: relative;
  color: transparent !important;
}

.austera-page #form-austera.is-submitting #btnSubmit::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.575rem 0 0 -0.575rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: austeraSpin 0.65s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .austera-page #form-austera.is-submitting #btnSubmit::after {
    animation: none;
    border: 2px solid #fff;
  }
}

.austera-page pre#out {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  background: #1a1f2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-input);
  padding: 0.85rem;
  overflow: auto;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9ee8c0;
  max-height: 40vh;
  -webkit-overflow-scrolling: touch;
}

.austera-page pre#out:empty {
  display: none;
}

@media (min-width: 720px) {
  .austera-page .wrap,
  .austera-page .austera-fixed-header__inner {
    max-width: 560px;
  }
}
