h1.wp-block-post-title {
  display: none;
}

#profile-mapping * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: #FFFFFF
}

#profile-mapping {
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

#profile-mapping-email input {
  background: transparent;
}

#profile-mapping #welcome h3 {
  font-size: 2.0rem;
  margin-top: 32px;
  font-weight: bold;
  color: #FFC000;
}

#profile-mapping #welcome h4 {
  font-size: 1.2rem;
  margin-top: 32px;
  font-weight: medium;
  text-align: center;
  color: #FFF;
}

#profile-mapping #welcome-steps {
  margin-top: 24px;
}

#profile-mapping #welcome-steps .step {
  display: flex;
  margin-top: 16px;
}

#profile-mapping #welcome-steps .step p {
  flex: 1;
}

#profile-mapping #welcome-steps .step span {
  background: #000;
  outline: 2px solid #FFC000;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFFFFF;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
}

#profile-mapping #welcome input {
  width: 100%;
  background: transparent;
  border: 1px solid #cacaca;
  border-radius: 4px;
  padding: 16px;
  margin-top: 8px;
  font-size: 1.1rem;
}

#profile-mapping button, #profile-mapping .btn  {
  width: 100%;
  margin-top: 16px;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 1.1rem;
  background: #e65729;
  color: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
}

#profile-mapping .question {
  margin-top: 16px;
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

#profile-mapping .question .favorite-question {
  font-size: 0.9rem;
  text-align: center;
  width: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

/* Checkbox acessível mas invisível; estrela real no .m7m-star-icon (evita sumir no Firefox/Focus onde ::before em input não funciona) */
#profile-mapping .question .favorite-question {
  position: relative;
}
#profile-mapping .question .favorite-question input[type="checkbox"].m7m-favorite-checkbox {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
/* Estrela vazia: sempre visível por padrão (todos os navegadores) */
#profile-mapping .question .favorite-question .m7m-star-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(235, 161, 52)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}
/* Estrela cheia: quando o usuário marca (seletor irmão para compatibilidade com navegadores antigos) */
#profile-mapping .question .favorite-question input.m7m-favorite-checkbox:checked + .m7m-star-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='rgb(235, 161, 52)' stroke='rgb(235, 161, 52)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

#profile-mapping .question .question-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 16px;
}

#profile-mapping .question .question-content {
  border: 1px solid #cacaca;
  border-radius: 4px;
}

#profile-mapping .question.invalid .question-content {
  border-color: red;
  outline: 1px solid red;
}

#profile-mapping .question .m7m-wrong-favorite-msg {
  margin-top: 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  font-size: 0.9rem;
  flex: 1 1 100%;
  width: 100%;
  box-sizing: border-box;
}

#profile-mapping .question h6 {
  padding: 16px;
}

#profile-mapping .question .question-answers {
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-top: 0;
}

#profile-mapping .question footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid #cacaca;
}

#profile-mapping .question-answer input[type="radio"] {
  display: none !important;
}

#profile-mapping .question-answer input[type="radio"] + label {
  display: flex;
  align-items: center;
  margin-top: 8px;
  cursor: pointer;
}

#profile-mapping .question-answer input[type="radio"] + label:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #cacaca;
  border-radius: 50%;
  margin-right: 8px;
}

#profile-mapping .question-answer input[type="radio"]:checked + label:before {
  background: #FFC000;
  outline: 2px solid #000;
  border-color: #fff;
}

#profile-mapping .question-answer input[type="radio"]:checked + label:after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111010;
  margin-left: 4px;
}

#profile-mapping-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  text-align: center;
}

#profile-mapping-result img{ 
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

#profile-mapping-result img.m7m-result-logo {
  width: auto;
  max-width: 280px;
  max-height: 120px;
  object-fit: contain;
}

#profile-mapping-result button{
  width: auto;
  margin-top: 40px
} 


/* create a loading spinner */

#profile-mapping .loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#profile-mapping #loading-form,
#profile-mapping #favorite-required-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
}

/* Oculta o modal de estrelas no HTML inicial (antes do Vue montar) para evitar flash da mensagem em todo carregamento */
#profile-mapping #favorite-required-modal:not([data-m7m-modal-visible]) {
  display: none !important;
}

/* Overlay elegante (igual ao modal de envio de PDF por e-mail) */
#profile-mapping #loading-form.m7m-form-overlay-wrap,
#profile-mapping #favorite-required-modal.m7m-form-overlay-wrap {
  background: transparent;
  z-index: 99999;
  flex-direction: row;
}
#profile-mapping .m7m-form-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
#profile-mapping .m7m-form-overlay-card {
  position: relative;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 10px;
  padding: 28px 36px;
  min-width: 300px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#profile-mapping #favorite-required-modal .m7m-form-overlay-card {
  max-width: 33.333vw;
  min-width: 280px;
}
#profile-mapping .m7m-form-overlay-card .loading {
  margin-bottom: 16px;
}
#profile-mapping .m7m-form-overlay-card .loading .spinner {
  border-color: #444;
  border-top-color: #E6A800;
}
#profile-mapping .m7m-form-overlay-msg {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #E6A800;
}
#profile-mapping .m7m-form-overlay-sub {
  margin: 0;
  font-size: 12px;
  color: #aaa;
}
#profile-mapping .m7m-form-overlay-phase {
  margin: 10px 0 0;
  font-size: 13px;
  color: #E6A800;
  font-weight: 600;
}

#profile-mapping .m7m-form-overlay-btn {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  background: #E6A800;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#profile-mapping .m7m-form-overlay-btn:hover {
  background: #d99a00;
}

#profile-mapping .loading .spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#profile-mapping .form-instruction {
  font-size: 1.1rem;
  margin-top: 8px;
  margin-bottom: 16px;
  color: #FFC000;
  font-weight: bold;
}

/* Shortcode [m7m_test_idioma]: barra de rolagem DENTRO do shortcode (mesmas dimensões da tela). */
.m7m-test-idioma-wrap {
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Padding abaixo do último elemento de cada "página" do teste (welcome, formulário, resultado). */
.m7m-test-idioma-wrap #welcome,
.m7m-test-idioma-wrap #form,
.m7m-test-idioma-wrap #profile-mapping-result {
    padding-bottom: 150px;
}

/* Seletor de idioma (shortcode m7m_test_idioma) – dropdown na mesma linha, menor, canto superior direito */
.m7m-test-idioma-wrap .m7m-lang-chooser {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  justify-content: flex-end;
}
.m7m-test-idioma-wrap .m7m-lang-chooser-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  white-space: nowrap;
}
.m7m-test-idioma-wrap .m7m-lang-chooser-select {
  min-width: 0;
  width: auto;
  max-width: 140px;
  font-size: 0.8rem;
  padding: 4px 8px;
  padding-right: 24px;
  background-size: 8px;
  background-position: right 6px center;
}

/* Identidade visual do dropdown de idioma (teste + dashboard): mesmo look dos antigos botões */
.m7m-lang-select-identity {
  color: #fff;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-size: 0.95rem;
  transition: background 0.2s, border-color 0.2s;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23fff'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}
.m7m-lang-select-identity:hover {
  background-color: rgba(255, 192, 0, 0.15);
  border-color: #FFC000;
}
.m7m-lang-select-identity:focus {
  outline: none;
  border-color: #FFC000;
  box-shadow: 0 0 0 2px rgba(255, 192, 0, 0.25);
}
/* Opção selecionada no dropdown: destaque dourado */
.m7m-lang-select-identity option {
  background: #2d2d2d;
  color: #fff;
}
.m7m-lang-select-identity option:checked {
  color: #FFC000;
}

/* Shortcode [m7m_country_selector] – dropdown de país */
.m7m-idioma-selector-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.m7m-idioma-selector-wrap .m7m-idioma-selector-label {
  font-size: 0.95rem;
  font-weight: 500;
}
.m7m-idioma-selector-wrap .m7m-idioma-selector {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
  min-width: 140px;
  background: #fff;
  border-color: #FFC107;
  color: #000;
}
.m7m-idioma-selector-wrap .m7m-idioma-selector:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
}

/* Dashboard: seletor de país com mesma identidade do seletor de idioma (sidebar escura) */
.m7m-dash-lang-wrap .m7m-idioma-selector-wrap {
  display: block;
  margin: 0;
}
.m7m-dash-lang-wrap .m7m-idioma-selector-label {
  display: block;
  font-size: 0.85em;
  opacity: 0.9;
  margin-bottom: 6px;
  color: #fff;
  font-weight: normal;
}
.m7m-dash-lang-wrap .m7m-idioma-selector {
  width: 100%;
  margin-top: 0;
  color: #fff;
  padding: 6px 14px;
  padding-right: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23fff'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.m7m-dash-lang-wrap .m7m-idioma-selector:hover {
  background-color: rgba(255, 192, 0, 0.15);
  border-color: #FFC000;
}
.m7m-dash-lang-wrap .m7m-idioma-selector:focus {
  outline: none;
  border-color: #FFC000;
  box-shadow: 0 0 0 2px rgba(255, 192, 0, 0.25);
}
.m7m-dash-lang-wrap .m7m-idioma-selector option {
  background: #2d2d2d;
  color: #fff;
}
.m7m-dash-lang-wrap .m7m-idioma-selector option:checked {
  color: #FFC000;
}
