table.qsm-quiz-table {
  border: 1px solid #000; /* 1px solid black border around the table */
  width: 100%;
}
table.qsm-quiz-table {
  border-collapse: collapse;
}

table.qsm-quiz-table {
  border: 1px solid #000; /* 1px solid black border around the entire table */
}
table.qsm-quiz-table tr {
	padding: 10px;
}
table.qsm-quiz-table th, table.qsm-quiz-table td {
  border: 1px solid #333; /* 1px solid dark gray border for table headers and cells */
  text-align: center;
}
table.qsm-quiz-table th, table.qsm-quiz-table td {
  border-top: 1px solid #000; /* 1px solid black border on the top of the cells */
  border-bottom: 1px solid #000; /* 1px solid black border on the bottom of the cells */
  border-left: 1px solid #000; /* 1px solid black border on the left of the cells */
  border-right: 1px solid #000; /* 1px solid black border on the right of the cells */
  padding: 15px;
}
.qsm-quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 15px;
}



.custom-model-main {
  text-align: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* z-index: 1050; */
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  -webkit-transition: opacity 0.15s linear, z-index 0.15;
  -o-transition: opacity 0.15s linear, z-index 0.15;
  transition: opacity 0.15s linear, z-index 0.15;
  z-index: -1;
  overflow-x: hidden;
  overflow-y: auto;
}

.model-open {
  z-index: 99999;
  opacity: 1;
  overflow: hidden;
}
.custom-model-inner {
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  display: inline-block;
  vertical-align: middle;
  width: 600px;
  margin: 30px auto;
  max-width: 97%;
  padding: 45px;
}
.custom-model-wrap {
  display: block;
  width: 100%;
  position: relative;
  background-color: #fff;
  /*border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);*/
  border-radius: 6px;
 /* -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);*/
  background-clip: padding-box;
  outline: 0;
  text-align: left;
  padding: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-height: calc(100vh - 70px);
	overflow-y: auto;
}
.model-open .custom-model-inner {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  position: relative;
  z-index: 999;
  background: #fff;
}
.model-open .bg-overlay {
  background: rgba(0, 0, 0, 0.13);
  z-index: 99;
}
.bg-overlay {
  opacity: 0.8;
  background: rgba(239, 239, 240,0.8);
  height: 100vh;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-transition: background 0.15s linear;
  -o-transition: background 0.15s linear;
  transition: background 0.15s linear;
}
.close-btn {
  position: absolute;
  right: 0;
  top: -12px;
  right: 6px;
  cursor: pointer;
  z-index: 99;
  font-size: 30px;
  color: #000;
  font-weight: 800;
}

@media screen and (min-width:800px){
	.custom-model-main:before {
	  content: "";
	  display: inline-block;
	  height: auto;
	  vertical-align: middle;
	  margin-right: -0px;
	  height: 100%;
	}
}
@media screen and (max-width:799px){
  .custom-model-inner{margin-top: 45px;}
}
.pop-up-content-wrap {

    display: flex;
    align-items: center;
    justify-content: space-between;

}
.pop-up-content-wrap a {
	border: 1px solid #000;
	padding: 7px 15px;
	text-decoration: none;
}
.pop-up-content-wrap input {

	padding: 15px 20px;
}

/* SEND EMAIL*/

.custom-model-main-email {
  text-align: center;
  overflow: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; /* z-index: 1050; */
  -webkit-overflow-scrolling: touch;
  outline: 0;
  opacity: 0;
  -webkit-transition: opacity 0.15s linear, z-index 0.15;
  -o-transition: opacity 0.15s linear, z-index 0.15;
  transition: opacity 0.15s linear, z-index 0.15;
  z-index: -1;
  overflow-x: hidden;
  overflow-y: auto;
}

.model-open-email {
  z-index: 99999;
  opacity: 1;
  overflow: hidden;
}
.custom-model-inner-email {
  -webkit-transform: translate(0, -25%);
  -ms-transform: translate(0, -25%);
  transform: translate(0, -25%);
  -webkit-transition: -webkit-transform 0.3s ease-out;
  -o-transition: -o-transform 0.3s ease-out;
  transition: -webkit-transform 0.3s ease-out;
  -o-transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out;
  transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
  display: inline-block;
  vertical-align: middle;
  width: 600px;
  margin: 30px auto;
  max-width: 97%;
  padding: 45px;
}
.custom-model-wrap-email {
  display: block;
  width: 100%;
  position: relative;
  background-color: #fff;
  /*border: 1px solid #999;
  border: 1px solid rgba(0, 0, 0, 0.2);*/
  border-radius: 6px;
 /* -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);*/
  background-clip: padding-box;
  outline: 0;
  text-align: left;
  padding: 20px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}
.model-open-email .custom-model-inner-email {
  -webkit-transform: translate(0, 0);
  -ms-transform: translate(0, 0);
  transform: translate(0, 0);
  position: relative;
  z-index: 999;
  background: #fff;
}
.model-open-email .bg-overlay-email {
  background: rgba(0, 0, 0, 0.13);
  z-index: 99;
}
.bg-overlay-email {
  /*background: #fff;*/
  height: 100vh;
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  -webkit-transition: background 0.15s linear;
  -o-transition: background 0.15s linear;
  transition: background 0.15s linear;
}
.close-btn-email {
  position: absolute;
  right: 0;
  top: -12px;
  right: 6px;
  cursor: pointer;
  z-index: 99;
  font-size: 30px;
  color: #000;
  font-weight: 800;
}

@media screen and (min-width:800px){
  .custom-model-main-email:before {
    content: "";
    display: inline-block;
    height: auto;
    vertical-align: middle;
    margin-right: -0px;
    height: 100%;
  }
}
@media screen and (max-width:799px){
  .custom-model-inner-email{margin-top: 45px;}
}
.pop-up-content-wrap-email {

    /*display: flex;
    align-items: center;
    justify-content: space-between;*/

}
.pop-up-content-wrap-email a {
  border: 1px solid #000;
  padding: 7px 15px;
  text-decoration: none;
}
.pop-up-content-wrap-email input {

  padding: 15px 20px;
}

.qsm-email-buttons {
  margin: 15px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;

}
.wp-editor-tabs .wp-switch-editor.switch-html {
  display: none;
}

/* ASSESSMENT CHAT
   Scoped under #qsm-chat-11870 so the theme's button and form styles
   don't override it. */

#qsm-chat-11870 {
  --chat-ink: #231f20;
  --chat-muted: #6b6566;
  --chat-line: #e3dfde;
  --chat-soft: #f7f5f4;
  --chat-green: #56db00;
  max-width: 760px;
  color: var(--chat-ink);
}
#qsm-chat-11870 button {
  font: inherit;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.3;
  box-shadow: none;
}
#qsm-chat-11870 button:focus-visible,
#qsm-chat-11870 summary:focus-visible {
  outline: 2px solid var(--chat-ink);
  outline-offset: 2px;
}

/* Header */
.qsm-chat-back { margin: 0 0 8px; }
.qsm-chat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.qsm-chat-header .qsm-chat-title { margin: 0; }
#qsm-chat-11870 .qsm-chat-reset {
  border: 1px solid var(--chat-line);
  background: #fff;
  color: var(--chat-ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.875em;
  cursor: pointer;
}
#qsm-chat-11870 .qsm-chat-reset:hover { border-color: var(--chat-ink); }

/* Results summary */
.qsm-chat-results {
  margin: 0 0 24px;
  border: 1px solid var(--chat-line);
  border-radius: 12px;
  padding: 12px 16px;
}
.qsm-chat-results summary {
  cursor: pointer;
  font-weight: 600;
}
.qsm-chat-results ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.qsm-chat-results li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 5px 0 5px 12px;
  margin: 0 0 4px;
  border-left: 4px solid #16b0e4;
}
.qsm-chat-results li.qsm-chat-sao-pf { border-left-color: #06d670; }
.qsm-chat-results li.qsm-chat-sao-mv { border-left-color: #16b0e4; }
.qsm-chat-results li.qsm-chat-sao-om { border-left-color: #ffd166; }
.qsm-chat-result-title { flex: 1; }
.qsm-chat-result-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* Comparison with the previous assessment */
.qsm-chat-compare {
  margin: -8px 0 16px;
  color: var(--chat-muted);
  font-size: 0.9em;
}
.qsm-chat-result-change {
  min-width: 52px;
  text-align: right;
  font-size: 0.85em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.qsm-chat-change-up { color: #1a7f37; }
.qsm-chat-change-down { color: #b42318; }
.qsm-chat-change-same,
.qsm-chat-change-none { color: var(--chat-muted); font-weight: 400; }
.qsm-chat-result-sao {
  min-width: 170px;
  font-size: 0.85em;
  color: var(--chat-muted);
}

/* Messages */
.qsm-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}
.qsm-chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.qsm-chat-msg-user {
  align-self: flex-end;
  background: var(--chat-ink);
  color: #fff;
  border-bottom-right-radius: 4px;
  white-space: pre-wrap;
}
/* Replies are often long: give them the full width to read comfortably. */
.qsm-chat-msg-assistant {
  align-self: stretch;
  max-width: none;
  padding: 16px 20px 10px;
  background: var(--chat-soft);
  border-top-left-radius: 4px;
}
.qsm-chat-msg-assistant p,
.qsm-chat-msg-assistant ul,
.qsm-chat-msg-assistant ol {
  margin: 0 0 12px;
}
.qsm-chat-msg-assistant ul,
.qsm-chat-msg-assistant ol {
  padding-left: 1.5em;
}
.qsm-chat-msg-assistant ul { list-style: disc; }
.qsm-chat-msg-assistant ol { list-style: decimal; }
.qsm-chat-msg-assistant li {
  margin: 0 0 6px;
  padding-left: 2px;
}
.qsm-chat-msg-assistant li::marker {
  font-weight: 600;
  color: var(--chat-muted);
}
.qsm-chat-msg-assistant h4 {
  margin: 20px 0 6px;
  font-size: 1.05em;
  line-height: 1.4;
}
.qsm-chat-msg-assistant > :first-child { margin-top: 0; }
.qsm-chat-msg-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--chat-line);
}
#qsm-chat-11870 .qsm-chat-copy {
  border: 0;
  background: none;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.8em;
  color: var(--chat-muted);
  cursor: pointer;
}
#qsm-chat-11870 .qsm-chat-copy:hover {
  color: var(--chat-ink);
  background: rgba(35, 31, 32, 0.06);
}

/* "Thinking" indicator */
.qsm-chat-msg-assistant.qsm-chat-thinking {
  align-self: flex-start;
  padding: 12px 16px;
  color: var(--chat-muted);
}
.qsm-chat-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
}
.qsm-chat-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: qsm-chat-dot 1.2s infinite ease-in-out;
}
.qsm-chat-dots span:nth-child(2) { animation-delay: 0.15s; }
.qsm-chat-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes qsm-chat-dot {
  0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .qsm-chat-dots span { animation: none; opacity: 0.6; }
}

/* Starter questions */
.qsm-chat-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.qsm-chat-intro {
  flex-basis: 100%;
  margin: 0 0 4px;
  color: var(--chat-muted);
}
#qsm-chat-11870 .qsm-chat-starter {
  border: 1px solid var(--chat-line);
  background: #fff;
  color: var(--chat-ink);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  text-align: left;
}
#qsm-chat-11870 .qsm-chat-starter:hover {
  border-color: var(--chat-green);
  background: #f0fbe8;
}

/* Composer: the textarea and the Send button share one box. */
.qsm-chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  background: #fff;
  border: 1px solid #cfc9c8;
  border-radius: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qsm-chat-composer:focus-within {
  border-color: var(--chat-ink);
  box-shadow: 0 0 0 3px rgba(86, 219, 0, 0.25);
}
#qsm-chat-11870 .qsm-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 24px;
  max-height: 200px;
  margin: 0;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: var(--chat-ink);
  font: inherit;
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
}
#qsm-chat-11870 .qsm-chat-input:disabled { background: transparent; }
#qsm-chat-11870 .qsm-chat-send {
  flex-shrink: 0;
  border: 0;
  border-radius: 10px;
  padding: 9px 18px;
  background: var(--chat-green);
  color: var(--chat-ink);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
#qsm-chat-11870 .qsm-chat-send:hover:not(:disabled) { background: #4cc200; }
#qsm-chat-11870 .qsm-chat-send:disabled {
  background: #ebe8e7;
  color: #8f8a89;
  cursor: not-allowed;
}
#qsm-chat-11870.qsm-chat-busy .qsm-chat-send { cursor: wait; }
.qsm-chat-hint {
  margin: 6px 2px 0;
  font-size: 0.8em;
  color: var(--chat-muted);
}
.qsm-chat-notice {
  color: #b00020;
  margin: 6px 2px 0;
}
.qsm-chat-notice:empty { display: none; }
.qsm-chat-disclaimer {
  margin-top: 20px;
  font-size: 0.8em;
  line-height: 1.5;
  color: var(--chat-muted);
}

/* Consent (shown until the user agrees once) */
.qsm-chat-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fffbea;
  border: 1px solid #f3e2a0;
  border-radius: 12px;
  font-size: 0.875em;
  line-height: 1.5;
  cursor: pointer;
}
.qsm-chat-consent[hidden] { display: none; }
#qsm-chat-11870 .qsm-chat-consent-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--chat-ink);
  cursor: pointer;
}
.qsm-chat-consent a { white-space: nowrap; }
#qsm-chat-11870 .qsm-chat-starter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #fff;
  border-color: var(--chat-line);
}
#qsm-chat-11870 .qsm-chat-withdraw {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 4px;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
#qsm-chat-11870 .qsm-chat-withdraw[hidden] { display: none; }

@media screen and (max-width: 600px) {
  .qsm-chat-msg-user { max-width: 90%; }
  .qsm-chat-msg-assistant { padding: 14px 14px 8px; }
  .qsm-chat-result-sao { display: none; }
  .qsm-chat-hint { display: none; }
}
