/* ==========================================================================
   Brand assessment — the mountain of stages, the checklist dialogs and the
   score/consultation form. Shared by Home ("Start") and Inquiry.
   ========================================================================== */

:where(.main-body) * { margin: 0; padding: 0; }
:where(.main-body) a { color: #000; cursor: pointer; }
:where(.main-body) ::selection { color: #fff; background: skyblue; }
:where(.main-body) button {
  display: inline-block;
  padding: 1px 6px;
  border: none;
  background-color: buttonface;
  color: buttontext;
  font-size: .875rem;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  cursor: pointer;
}
.noun { color: var(--blue); }

/* Dialog shell ------------------------------------------------------------ */
.dial-el {
  max-width: 1100px;
  margin: auto;
  border: none;
  border-radius: 1rem;
  scrollbar-width: none;
}
.dial-el::-webkit-scrollbar { display: none; }
.dial-el--tall { height: 90vh; }
.modal-div { display: flex; }

.close-btn {
  margin-left: 95%;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #000;
}
.close-btn:hover { background: none; color: var(--blue); }
.close-btn:focus { background: none; }
.close-btn:focus:not(:focus-visible) { outline: none; }
.close-btn svg { display: block; width: 24px; height: 24px; fill: #000; }
.mount-btn { position: absolute; top: 1rem; right: 1rem; z-index: 10; margin: 0; }

/* Mountain of stages ------------------------------------------------------ */
.moun-bg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1100px;
  height: 90vh;
  overflow: hidden;
  background: url('../img/assess-mountain.jpg') no-repeat;
  background-size: 100% 100%;
}
.moun-section {
  position: relative;
  display: flex;
  width: 100%;
  height: 20%;
  padding: 1rem;
}
.moun-section--first { justify-content: space-between; padding: 1.5rem 2rem; }
.moun-title p { font-weight: 300; }

.moun-point {
  height: fit-content;
  padding: .5rem;
  border-radius: .75rem;
  background-color: rgba(255, 255, 255, .5);
  color: #000;
  font-weight: 400;
  text-align: start;
  cursor: default;
}
.moun-point:hover,
.moun-point:focus { background: rgba(255, 255, 255, .5); }
.moun-point h2 { font-size: 1.25rem; font-weight: 400; line-height: 1.4; text-transform: none; }
.moun-point p { color: rgba(0, 0, 0, .66); font-size: 1rem; }

.dot {
  position: absolute;
  display: block;
  width: 30px;
  height: 30px;
  border: 8px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background-color: #2982be;
  cursor: pointer;
  transition: 200ms;
}
.dot:hover { transform: scale(1.2); }

/* Checklist dialog -------------------------------------------------------- */
.moun-bg-2 {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 1100px;
  height: 90vh;
  overflow: hidden;
  border-radius: 1rem;
  background: url('../img/assess-checklist-bg.webp') no-repeat;
  background-size: 100% 100%;
}
.moun-2 { display: flex; width: 100%; height: 100%; }
.moun-2-left { width: 60%; height: 100%; padding-top: 2rem; }
.moun-2-left p { font-weight: 300; }
.moun-2-right { width: 40%; height: 100%; padding: 1rem 2rem 0 0; }

.check-container { display: flex; flex-direction: column; margin-top: 2rem; }
.container {
  position: relative;
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  padding-left: 2.5rem;
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  text-align: start;
  cursor: pointer;
  user-select: none;
}
.container p { margin-top: .25rem; }
.container input { position: absolute; width: 0; height: 0; opacity: 0; cursor: pointer; }
.checkmark {
  position: absolute;
  top: 5px;
  left: 0;
  width: 25px;
  height: 25px;
  border: 1px solid gray;
  border-radius: .25rem;
  background-color: #fff;
}
.container:hover input ~ .checkmark { background-color: #ccc; }
.container input:checked ~ .checkmark { background-color: #2196f3; }
.checkmark::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  display: none;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.container input:checked ~ .checkmark::after { display: block; }

/* Buttons ------------------------------------------------------------------ */
.start-btn {
  width: 40%;
  margin-top: 1rem;
  padding-block: .25rem;
  border: none;
  border-radius: .25rem;
  background: linear-gradient(129.76deg, #3a98d7 11.88%, #166aa2 110.11%);
  color: #fff;
}
.eval-btn {
  width: auto;
  height: 3rem;
  border-radius: 1rem;
  box-shadow: 4px 8px 8px 0 rgba(0, 0, 0, .25);
  font-size: 1rem;
}

/* Score + consultation form ----------------------------------------------- */
.moun-bg-2-1 {
  padding: 1rem;
  background: url('../img/assess-form-bg.webp') no-repeat;
}
.div-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100%;
  text-align: center;
}
.score-div { position: relative; width: 72px; margin: 0 auto; }
.spinner-3 {
  position: absolute;
  top: 0;
  left: -60%;
  width: auto;
  max-width: 10rem;
  height: 10rem;
  animation: spin 2s linear infinite;
}
@keyframes spin { to { transform: rotate(-360deg); } }
.score { padding-top: 4rem; color: rgba(0, 0, 0, .66); font-size: 3rem; font-weight: 500; }
.desc { max-width: 12rem; margin: 4rem auto 0; }
.desc p { font-size: 1.25rem; font-weight: 400; }
.consult { margin-top: 2rem; }
.consult p { color: rgba(0, 0, 0, .66); }

.inp-form { display: flex; flex-direction: column; row-gap: 1rem; }
.inp-div { display: flex; column-gap: .5rem; }
.inp-div input,
.sel-inp {
  width: 310px;
  height: 2rem;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, .66);
  background: none;
  font: inherit;
}
.inp-div input {
  padding: .75em .75em .75em 1rem;
  border-radius: 2px;
  color: #666;
  font-size: 1rem;
  line-height: 1.7;
}
.inp-div input:focus { color: #111; }
.sel-inp {
  -webkit-appearance: button;
  width: 312px;
  padding: 2px 20px 2px 1rem;
  border-radius: 1px;
  color: rgba(0, 0, 0, .5);
  font-size: .8rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
}

@media (max-width: 768px) {
  .modal-div { flex-direction: column; width: auto; }
  .close-btn {
    position: absolute;
    top: 2%;
    right: 2%;
    display: grid;
    border-radius: 50%;
    background: rgba(0, 0, 0, .2);
  }
  .moun-bg {
    background: url('../img/assess-mountain-mobile.jpg') no-repeat 0 100%;
    background-size: 100% 115%;
  }

  .moun-bg-2 {
    overflow-y: scroll;
    background: url('../img/assess-checklist-bg-mobile.webp') no-repeat 0 15%;
    background-size: 100% 150%;
  }
  .moun-2 { flex-direction: column; }
  .moun-2-left,
  .moun-2-right { width: 100%; height: auto; padding: .5rem; }
  .inp-div { flex-direction: column; row-gap: 1rem; }
  .spinner-3 { top: -3px; left: -50%; }
}

/* Arabic: the stage labels sit on fixed points of the mountain artwork, so the
   geometry stays as designed and only the text inside flips. */
[dir="rtl"] .moun-bg,
[dir="rtl"] .moun-bg-2 { direction: ltr; }
[dir="rtl"] .moun-point,
[dir="rtl"] .moun-title,
[dir="rtl"] .moun-2-left,
[dir="rtl"] .moun-2-right,
[dir="rtl"] .div-form { direction: rtl; }
[dir="rtl"] .moun-2-right { padding: 1rem 0 0 2rem; }
[dir="rtl"] .container { padding-left: 0; padding-right: 2.5rem; }
[dir="rtl"] .checkmark { left: auto; right: 0; }
