.register-container {
  margin: 0 auto;
}

.register-container .login-pf-page {
  margin: auto;
  padding: 10px;
  max-width: 800px;
  min-width: 800px;
}

.register-container .login-pf-page .card-pf {
  border-radius: 15px;
  padding: 0px;
  margin: 5% auto;
  flex-direction: column;
}

.register-container .card-pf {
    padding: 0 20px;
    max-width: 100%;
}

.register-container #kc-content {
  width: 90%;
  padding-bottom: 30px;
}

.register-container #form-horizontal {
  margin-bottom: 0px;
}

/* Topo */
.register-container .login-pf-header {
  padding: 0px;
  margin: 0px;
  max-height: 80px;
  background-color: #003f88;
  min-height: 120px;
}

.register-container #kc-page-title {
 display: flex;
 position: relative;
  align-items: center;       /* Alinha verticalmente */
  height: 0.1vh;             /* Ocupa toda a altura da tela */
  padding: 0;
  margin: 0;
  color: #fff;
  text-align: left;
  font-weight: 400;
}
.register-container .subtitle {
    text-align: right;
    margin-top: 10px;
    color: #fff;
    font-size: 11px;
}

/* Barra de progresso */
.progress-container {
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #0066cc;
  width: 0%;
  transition: width 0.3s ease;
}

/* Etapas do formulário */
.form-step {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 2rem;
  border-left: 3px solid #007bff;
  background: #fefefe;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
}

.form-step.show {
  display: block;
}

.step-title {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.45rem 1rem;
  margin: 1rem 0;
  background-color: #f5f5f5;
  border-left: 4px solid #0066cc;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.step-title:hover {
  background-color: #e6f0ff;
}

/* Botões de navegação */
.nav-btn {
  background-color: #0066cc;
  color: white;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  border: none;
  border-radius: 4px;
  margin: 0.5rem -1.25rem 0 0;
  margin-left: -20px;
  margin-right: 25px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.nav-btn:hover {
  background-color: #004a99;
}

/* Grupos e Labels */
.form-group,
.kcFormGroupClass {
  margin-bottom: 0.8rem;
}

.form-group label,
.kcLabelClass {
  display: inline-block;
  font-weight: 500;
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.form-group label span.required,
.kcLabelClass span.required {
  color: red;
  margin-left: 2px;
}

/* Campos de input */
.register-container input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.88rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-container input:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
  outline: none;
}

/* Submit */
.register-container input[type="submit"] {
  background-color: #0077ba;
  color: white;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
}
.register-container input[type="submit"]:hover {
  background-color: #218838;
}

/* Checkbox e Radio Customizado */
.register-container .pf-c-check {
  display: flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

/** 3 colunas **/
.checkbox-grid-3 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
}
/** 3 colunas **/
.checkbox-grid-3 .pf-c-check {
  width: 30%;
  display: flex;
  align-items: center;
}

.pf-c-check {
  display: flex;
  align-items: flex-start; /* ou center, se preferir */
  gap: 0.4rem;
}

.pf-c-check__input {
  flex-shrink: 0;
  margin-top: 0.25rem; /* alinha o checkbox com topo do label */
  width: 18px;
  height: 18px;
}

.register-container .pf-c-check__input {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  cursor: pointer;
  accent-color: #0066cc;
}

.register-container .pf-c-check__label {
  font-size: 0.88rem;
  color: #333;
  cursor: pointer;
}

/* Título visual de grupo */
.form-group-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  display: block;
  color: #333;
}

#kc-header-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: #004b93;
}

/* Estilo do título */
#kc-page-title {
  /* color: white; */
  font-size: 1.4rem;
  font-weight: bold;
}

/* Posicionamento e estilo do seletor de idioma */
#kc-locale {
  position: relative;
  z-index: 10;
}

#kc-current-locale-link {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative; /* necessário para posicionar a seta */
  background: transparent;
  border: none;
  color:#222;
  font-size: 0.95rem;
  cursor: pointer;
  padding-right: 1.2rem; /* espaço reservado para a seta */
  padding-left: 0.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.25rem;
}

/* Seta personalizada */
#kc-current-locale-link::after {
  content: '▼';
  font-size: 0.5rem;
  color: #222;
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Estilização do dropdown */
.pf-c-dropdown__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.3rem;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  min-width: 180px;
  padding: 0.3rem 0;
  z-index: 100;
}

.pf-c-dropdown__menu-item {
  padding: 0.5rem 1rem;
  display: block;
  color: #333;
  text-decoration: none;
}

.pf-c-dropdown__menu-item:hover {
  background-color: #f0f0f0;
}

/* Termos */
.terms-group {
    margin-top: 15px;
    font-size: 14px;
}

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-checkbox a {
    color: #0066cc;
    text-decoration: underline;
}

.terms-checkbox a:hover {
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 600px) {
  .step-title {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .nav-btn {
    width: 100%;
    padding: 0.6rem;
    font-size: 1rem;
  }
}

/* fix login password field styling */
.form-group.form-group-login-inputs input[type="password"] {
  border: 0;
  border-bottom: 1px solid rgb(138, 141, 144);
  font-size: 16px;
}

/* Posicionamento e estilo do seletor de idioma Login */
.register-container #kc-current-locale-link {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative; /* necessário para posicionar a seta */
  background: transparent;
  border: none;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;

  padding-right: 1.2rem; /* espaço reservado para a seta */
  padding-left: 0.5rem;
  padding-top: 0.55rem;
  padding-bottom: 0.25rem;
}

/* Seta personalizada */
.register-container #kc-current-locale-link::after {
  content: '▼';
  font-size: 0.5rem;
  color: white;
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.alert-error {
  position: relative;
  background-color: #f8d7da;
  color: #842029;
  padding: 12px 40px 12px 12px;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  margin: 10px 0;
}

.terms-buttons-group {
  display: flex;
  justify-content: center;
}

.terms-buttons-group button {
  margin-left: 10px;
}

.terms-button-accept {
  background-color: #0066cc;
  color: white;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  margin: 0.5rem -1.25rem 0 0;
  margin-left: -20px;
  margin-right: 25px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.terms-button-decline {
  background-color: #cc0000;
  color: white;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  margin: 0.5rem -1.25rem 0 0;
  margin-left: -20px;
  margin-right: 25px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}


.update-profile .form-group:has(> div > label[id^="header-group_"]) {
    display: none;
}

.form-group select {
  padding: 0.4rem 0.6rem;
  font-size: 0.88rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
