.skin-options {
  /* display: flex; */
  /* flex-direction: column; */
  /* align-items: center; */
  /* gap: 12px; */
  /* width: 100%; */
  /* max-width: 500px; */
  /* min-height: 400px; */
  /* padding: 1.5rem; */
  /* border-radius: 20px; */
  /* background: rgba(255, 255, 255, 0.15); */
  /* box-shadow: 5px 4px 20px 0px #053f5966 inset; */
  /* backdrop-filter: blur(7.099999904632568px); */
}

.skin-options:has(label:nth-child(12)) {
  /* max-height: 400px; */
  /* width: 606px; */
  /* overflow-y: scroll; */
  /* overflow-x: hidden; */
  /* padding: 1.5rem; */
  /* border-radius: 20px; */
  /* background: rgba(255, 255, 255, 0.15); */
  /* box-shadow: 5px 4px 20px 0px #053f5966 inset; */
  /* backdrop-filter: blur(7.099999904632568px); */
  /* scrollbar-width: thin; */
  /* scrollbar-color: white rgba(255, 255, 255, 0.2); */
}

/* .skin-options:has(label:nth-child(12))::-webkit-scrollbar {
  width: 8px;
}

.skin-options:has(label:nth-child(12))::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.skin-options:has(label:nth-child(12))::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 8px;
} */

.skin-options input[type="checkbox"],
.skin-options input[type="radio"] {
  display: none;
}

.skin-options label {
  display: flex;
  width: 90%;
  max-width: 500px;
  min-height: 35px;
  background-color: white;
  border: 1px solid #447d84;
  /* outline: 1px solid #ff080800; */
  border-radius: 18px !important;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  /* transition: all 0.2s ease; */
  font-size: 14px;
  color: #447d84;
  font-weight: 400;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 3px 0px #447d848a;
}

label {
  -webkit-tap-highlight-color: transparent;
}

/* Phone */
.skin-options label p {
  font-size: 8px;
  /* or 12px if you prefer */
  margin: 0 0 3px 0;
  font-weight: 600;
  font-family: "Montserrat";
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .skin-options label p {
    font-size: 13px;
    font-family: "Archivo Expanded";
    letter-spacing: 0.5px;
    font-weight: 400;
  }
}

/* .skin-options label:hover {
  background-color: #fff; 
  border-color: #447D84;
}
 */

.skin-options input[type="checkbox"]:checked+label,
.skin-options input[type="radio"]:checked+label {
  background-color: #447d84;
  color: #fff;
  border: 1px solid white;
  box-shadow: 3px 3px 3px 0px #447d848a;
}

.skin-options label {
  position: relative;
}

/* The box is drawn only for multi-select questions. Every rule below keys off
   `input[type="checkbox"] +`, so the radio questions -- where only one answer
   can be given and a tick box would wrongly imply otherwise -- render as the
   plain cards they were before. */
.skin-options input[type="checkbox"]+label::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background-color: #fff;
  opacity: 0.5;
  transform: translateY(-50%);
}

/* Back to full strength once ticked: at 50% the white fill lets the teal card
   through, and the tick drawn on it loses its contrast. */
.skin-options input[type="checkbox"]:checked+label::before {
  opacity: 1;
}

.skin-options input[type="checkbox"]:checked+label::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 5px;
  height: 10px;
  box-sizing: border-box;
  border: solid #447d84;
  border-width: 0 2px 2px 0;
  transform: translate(0, -62%) rotate(45deg);
}

/* Scoped to match: only the cards that actually carry a box need to reserve
   room for it. Radio labels get their full width back, so their copy centres
   in the card rather than in a gap it no longer has. */
.skin-options input[type="checkbox"]+label p {
  max-width: 65%;
  margin-left: auto;
  margin-right: auto;
}

.questionnaire-query {
  font-size: 14px;
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.4;
}

.questionnaire-item>label {
  display: block;
  text-align: center;
  margin: 0 0 1rem 0;
}

.questionnaire-item>label p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

.skin-options label small {
  display: block;
  font-size: 11px;
  margin-top: 3px;
  font-weight: 400;
  color: #333;
}

.questionnaire-query {
  font-size: 28px;
  text-align: center;
}

.questionnaire-query+label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.4;
  height: calc(30px * 1.4 * 2);
}

#question_1 {
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#question_5 {
  max-height: 80vh;
  overflow-y: auto;
}

/* Phone (default) */
.questionnaire-item>label>p {
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}

/* Tablets & desktop */
@media (min-width: 768px) {
  .questionnaire-item>label>p {
    font-size: 18px;
    font-family: "Archivo Expanded";
    font-weight: 400;
    letter-spacing: 0.5px;
  }
}

/* Default for desktop/tablet */
.questionnaire-query {
  font-size: 28px;
  /* large size for bigger screens */
  text-align: center;
  line-height: 1.4;
}

/* For tablets (optional, slightly smaller) */
@media (max-width: 1024px) {
  .questionnaire-query {
    font-size: 28px;
  }
}

/* For phones / small screens */
@media (max-width: 768px) {
  .questionnaire-query {
    font-size: 30px;
    /* smaller on phone */
    letter-spacing: 0.8px;
    font-weight: 500;
  }
}

/* Keep your existing bar layout */
.status-skin-character .status-detail-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-skin-character .status-label-left,
.status-skin-character .status-label-right {
  width: 120px;
  /* fixed width to keep bars aligned */
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  /* desktop font size */
}

.status-skin-character .status-bar {
  /* flex: 1; */
  height: 1.5rem;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
}

.status-skin-character .status-fill {
  height: 100%;
  background: #447d84;
  border-radius: 3px;
}

/* Make text smaller on smaller screens */
@media screen and (max-width: 480px) {

  .status-skin-character .status-label-left,
  .status-skin-character .status-label-right {
    font-size: 12px;
    /* smaller font, still fixed width */
  }

  .skin-options label {
    display: flex;
    width: 90%;
    max-width: 200px;
    min-height: 15px;
    background-color: white;
    border: 1px solid #447d84;
    /* outline: 1px solid #ff080800; */
    border-radius: 10px !important;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    /* transition: all 0.2s ease; */
    color: #447d84;
    font-weight: 400;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 3px 0px #447d848a;
  }

  .skin-options input[type="checkbox"]+label p {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .skin-options input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid #c9c9c9;
    border-radius: 4px;
    background-color: #fff;
    opacity: 0.5;
    transform: translateY(-50%);
  }

  .questionnaire-query+label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.4;
    height: calc(30px * 1.4 * 2);
  }

  .questionnaire-query {
    font-size: 15px !important;
    /* smaller on phone */
    letter-spacing: 0.8px;
    font-weight: 500;
  }

  .stress-slider-heading {
    margin: 56px 0 0;
    font-size: 14px !important;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0px 1px 12.2px #1b6068;
    line-height: 1.2;
  }

  .stress-slider-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px !important;
    height: 40px !important;
    background: url("../design/images/analyzer/slider2.png") center / 100% 100% no-repeat;
    transform: translate(-50%, -43.7%);
    pointer-events: none;
    transition: transform 0.15s ease;
  }

  .stress-slider-readout {
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: 24px;
    font-size: 14px !important;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0px 1px 12.2px #014681;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.12s ease;
  }

  .stress-slider-track-wrap.is-dragging .stress-slider-bubble {
    opacity: 1;
    visibility: visible;
    font-size: 14px !important;
  }

  .stress-slider-track-wrap.is-dragging .stress-slider-readout {
    opacity: 0;
  }

  .questionnaire-block {
    width: 100% !important;
  }


  .questionnaire-block textarea {
    font-size: 8px !important;
  }

  .questionnaire-query+label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    line-height: 1.4;
    height: calc(30px * 1.4 * 2);
  }

  .questionnaire-query {
    margin: 0 0 5px 0 !important;
  }

  #geoLocation input {
    padding: 12px 8px;
    font-size: 12px !important;
  }

  #geoLocation .weather-input::before {
    width: 16px !important;
    height: 16px !important;
  }

  #geoLocation .edit-icon {
    width: 16px !important;
    height: 16px !important;
  }

  #geoLocation .weather-data-item {
    min-height: 80px !important;
  }

  #geoLocation .weather-data-title {
    font-size: 14px !important;
    top: 8px !important;
  }

  #geoLocation .weather-data-value {
    font-size: 24px !important;
  }

  #geoLocation .weather-data-item .weather-data-state {
    padding: 5px 6px !important;
    font-size: 10px !important;
    width: 60px !important;
  }

  #geoLocation .weather-data-ideal {
    position: absolute;
    bottom: 10px;
    font-size: 10px !important;
  }

  .stress-slider-bubble {
    width: 70px !important;
    height: 50px !important;
  }
}

.skin-char-small {
  font-size: 100%;
  /* 60% of normal size */
  font-weight: 500;
  /* optional: slightly bold */
  margin-bottom: -1.5rem;
  /* small spacing before SKIN CODE [4] */
}

.skin-analysis-text {
  font-size: 100%;
  /* 60% of normal size */
  font-weight: 500;
  /* optional: slightly bold */
  color: #447d84;
  text-align: center;
  margin-bottom: 40px;
}

.lifestyle-plan-table {
  width: 90%;
  border-collapse: collapse;
  color: #447d84;
  /* text color */
  margin-bottom: 10px;
  /* space between mini-tables */
  margin: 0 auto;
  margin-bottom: 30px;
}

.lifestyle-plan-table td {
  padding: 16px 12px;
  border: 2.5px solid #447d84;
  /* table border */
  font-size: 16px;
  text-align: center;
  /* center text */
}

.lifestyle-plan-table tr:first-child td {
  font-weight: bold;
  /* label row bold */
  padding: 11px 15px;
  font-size: 15px;
}

.lifestyle-plan-table tr:hover {
  background-color: #e6f0fa;
  /* optional hover effect */
}

.derma-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* space between rows */
  width: 90%;
  margin: 0 auto;
}

/* Normal rows: Profiles 1,2,3,6,7 */
.derma-row {
  display: flex;
  gap: 20px;
  /* space between cells */
}

.derma-cell {
  flex: 1;
  border: 2px solid #447d84;
  /* full border around cell */
  display: flex;
  flex-direction: column;
  text-align: center;
}

.derma-image {
  border-bottom: 2px solid #447d84;
  /* line between image and text */
  padding: 5px;
}

.derma-image img {
  max-width: 100%;
  height: auto;
  max-height: 150px;
}

.derma-text {
  padding: 15px;
  font-size: 16px;
  color: #447d84;
}

/* Merged row for Profiles 4 & 5 */
.derma-row-merged {
  display: flex;
  flex-direction: column;
  border: 2px solid #447d84;
}

.derma-merged {
  display: flex;
  gap: 0px;
  flex: 1;
}

.derma-merged .derma-cell {
  flex: 1;
  border: 2px solid #447d84;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Images row inside merged cell */
.derma-images-row {
  display: flex;
  /* side by side */
  /* border: 2px solid #447D84; */
  /* min-width: 50%; */
  /* max-width: 50%; */
  flex-direction: column;
  flex: 1;
}

.derma-images-row .derma-image {
  flex: 1;
  text-align: center;
  padding: 5px;
}

.derma-texts-row {
  display: flex;
  width: 50%;
}

.derma-texts-row .derma-text {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
}

.derma-texts-row .derma-text:first-child {
  border-left: none;
}

.derma-texts-row .derma-text:last-child {
  border-right: none;
}

.derma-cell-left {
  /* gap: 20px; */
  display: flex;
  width: 100%;
}

.derma-images-row:first-child .derma-text {
  border-right: 2px solid;
}

.derma-image {
  position: relative;
  display: inline-block;
}

.derma-cell-left {
  position: relative;
}

.image-badge {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 25px;
  height: 25px;
  line-height: 16px;
  background-color: transparent;
  color: #447d84;
  border: 2px solid #447d84;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border-radius: 1px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  padding-top: 10px;
  border-top: 0;
  border-left: 0;
}

.product-type {
  display: inline-block;
  margin-right: 5px;
  font-size: 12px;
  font-weight: bold;
  color: #447d84;
}

.day-night {
  font-weight: bold;
  color: #447d84;
}

.remarks {
  color: rgb(77, 152, 216);
  font-weight: 500;
  padding: 0.5rem;
  background: rgb(255 255 255);
  border-radius: 0.5rem;
  text-transform: capitalize;
  box-sizing: border-box;
  width: 100%;
  flex: 1 1 0%;
  display: flex;
  justify-content: center;
  place-items: center;
  margin-bottom: 19px;
  border: 1px solid rgba(194, 194, 194, 0.59);
  font-family: "Archivo Expanded";
  font-size: 0.6rem;
}

/* ===========================================================================
   OPEN-ANSWER TEXTAREA  (question_36)
   ======================================================================== */
.questionnaire-block textarea {
  align-self: flex-start;
  margin: 0 auto;
  box-sizing: border-box;
  width: 90%;
  max-width: 500px;
  height: auto;
  min-height: 132px;
  padding: 15px;
  background-color: white;
  border: 1px solid #447d84;
  border-radius: 20px;
  color: #447d84;
  font-family: "Archivo Expanded";
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.questionnaire-block textarea::placeholder {
  color: #447d84;
  opacity: 0.55;
  font-weight: 600;
}

.questionnaire-block textarea:hover {
  background-color: #e6f0ff;
  font-family: "Archivo Expanded";
}

.questionnaire-block textarea:focus {
  background-color: #ffffff;
  border-color: #447d84;
  box-shadow: 0 0 0 3px rgba(77, 152, 216, 0.18);
}

@media (min-width: 768px) {
  .questionnaire-block textarea {
    font-size: 14px;
    min-height: 160px;
    font-family: "Archivo Expanded";
    width: 491px;
    height: 218px;
  }
}

/* ===========================================================================
   STRESS SLIDER  (question_22)
   ======================================================================== */
.stress-slider-heading {
  margin: 56px 0 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 0px 1px 12.2px #1b6068;
  line-height: 1.2;
}

.questionnaire-block.stress-slider-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 0;
  gap: 14px;
  width: 90%;
  max-width: 500px;
  margin: 0 auto;
  justify-content: flex-start;
}

.stress-slider-current {
  display: flex;
  font-size: 14px;
  font-weight: 500;
  color: #447d84;
  background-color: #f9f9f9;
  border: 1px solid #447d84;
  border-radius: 13px;
  padding: 10px 25px;
  width: 130px !important;
  align-items: center;
}

.stress-slider-current span {
  font-size: 18px;
  font-weight: 600;
  margin-left: 15px;
  /* text-align: end; */
}

.stress-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(90deg,
      #ffffff 0%,
      #ffffff var(--stress-fill, 50%),
      rgba(255, 255, 255, 0.45) var(--stress-fill, 50%),
      rgba(255, 255, 255, 0.45) 100%);
  outline: none;
  cursor: pointer;
}

input[type="range"].stress-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 53px;
  height: 30px;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
}

input[type="range"].stress-range-slider::-moz-range-thumb {
  width: 53px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.stress-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 72px;
  height: 49px;
  background: url("../design/images/analyzer/slider2.png") center / 100% 100% no-repeat;
  transform: translate(-50%, -43.7%);
  pointer-events: none;
  transition: transform 0.15s ease;
}

.stress-slider-track-wrap.is-dragging .stress-slider-thumb {
  transform: translate(-50%, -43.7%) scale(1.16);
}

.stress-slider-readout {
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: 24px;
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0px 1px 12.2px #014681;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.12s ease;
}

.stress-slider-bubble {
  position: absolute;
  top: 50%;
  left: 0;
  width: 96px;
  height: 63px;
  margin-top: -6px;
  box-sizing: border-box;
  padding-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../design/images/analyzer/slider1.png") center / 100% 100% no-repeat;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  transform: translate(-50%, -100%);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.stress-slider-track-wrap.is-dragging .stress-slider-bubble {
  opacity: 1;
  visibility: visible;
}

.stress-slider-track-wrap.is-dragging .stress-slider-readout {
  opacity: 0;
}

.stress-slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  font-weight: 500;
  color: #ffffff;
  /* box-shadow: 0px 4px 12.2px 0px #014681; */
  opacity: 0.85;
}

.stress-slider-track-wrap {
  position: relative;
  width: 100%;
  margin: 72px 0 52px;
  --stress-thumb-visible: 53px;
}

.stress-slider-endlabel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  pointer-events: none;
}

.stress-slider-endlabel--min {
  left: -26px;
  bottom: -13px;
  transform: translate(-50%, -50%);
  text-shadow: 0px 1px 12.2px #014681;
}

.stress-slider-endlabel--max {
  right: -30px;
  bottom: -13px;
  transform: translate(50%, -50%);
  text-shadow: 0px 1px 12.2px #014681;
}

@media (min-width: 768px) {
  .stress-slider-labels {
    font-size: 13px;
    font-weight: 500;
    margin: -10px 0;

    span {
      background: none !important;
      text-shadow: 0px 1px 12.2px #014681;
      /* font-style: italic; */
      letter-spacing: 0.5px;
      margin: 0 -35px;
    }
  }
}

.stress-slider-current,
.stress-slider-endlabel,
.stress-slider-labels {
  display: none;
}

/* ===========================================================================
   DERMA PRODUCT 4 — Day / Night divider alignment
   =========================================================================== */

.derma-cell-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
}

.derma-cell-left>.derma-images-row {
  display: contents;
}

.derma-cell-left>.derma-images-row:nth-of-type(1)>.derma-image {
  grid-row: 1;
  grid-column: 1;
}

.derma-cell-left>.derma-images-row:nth-of-type(1)>.derma-text {
  grid-row: 2;
  grid-column: 1;
}

.derma-cell-left>.derma-images-row:nth-of-type(2)>.derma-image {
  grid-row: 1;
  grid-column: 2;
}

.derma-cell-left>.derma-images-row:nth-of-type(2)>.derma-text {
  grid-row: 2;
  grid-column: 2;
}