/* SecurIT360 survey skin — extends fruity_twentythree
   Brand tokens from https://www.securit360.com + locked heat-map palette
*/
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap");

:root {
  --s360-forest: #1a3d2b;
  --s360-forest-deep: #0b3d2e;
  --s360-forest-mid: #266040;
  --s360-lime: #69e38f;
  --s360-ink: #0a0a0a;
  --s360-muted: #6b7280;
  --s360-line: #e4e4e4;
  --s360-mint: #f6fcf8;
  --s360-white: #ffffff;
  --s360-font-head: "Instrument Sans", "IBM Plex Sans", system-ui, sans-serif;
  --s360-font-body: "Plus Jakarta Sans", "Instrument Sans", system-ui, sans-serif;
  --s360-pill: 999px;
}

html body.fruity_twentythree,
html body.securit360 {
  font-family: var(--s360-font-body) !important;
  color: var(--s360-ink);
  background: var(--s360-forest-deep) !important;
  min-height: 100vh;
  /* room for fixed nav — keep compact so logo doesn't float in empty green */
  padding-top: 44px !important;
}

/* Decorative rings stay behind all UI — never create a stacking trap for modals */
body.fruity_twentythree::before,
body.securit360::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 42vh;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 0%, rgba(105, 227, 143, 0.16) 0%, transparent 45%),
    repeating-radial-gradient(
      circle at 50% 0%,
      transparent 0,
      transparent 46px,
      rgba(105, 227, 143, 0.07) 47px,
      transparent 50px
    );
}

/* Do NOT put z-index on article / #dynamicReloadContainer — that traps
   Bootstrap modal dialogs under .modal-backdrop (grey overlay, can't close). */

/* Keep LimeSurvey / Bootstrap modals above theme chrome */
body.fruity_twentythree .modal-backdrop,
body.securit360 .modal-backdrop {
  z-index: 1050 !important;
  pointer-events: auto !important;
}

body.fruity_twentythree .modal,
body.securit360 .modal {
  z-index: 1055 !important;
  pointer-events: none;
}

body.fruity_twentythree .modal.show,
body.securit360 .modal.show {
  pointer-events: auto !important;
}

body.fruity_twentythree .modal .modal-dialog,
body.securit360 .modal .modal-dialog,
body.fruity_twentythree .modal .btn-close,
body.securit360 .modal .btn-close,
body.fruity_twentythree .modal .btn,
body.securit360 .modal .btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

/* Navbar / logo — keep brand mark pinned to the top edge */
body.fruity_twentythree #survey-nav.navbar,
body.securit360 #survey-nav.navbar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-top: 4px !important;
  padding-bottom: 2px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  align-items: flex-start !important;
  min-height: 0 !important;
  height: auto !important;
}

body.fruity_twentythree #survey-nav .container-fluid,
body.securit360 #survey-nav .container-fluid {
  max-width: 920px;
  width: 100%;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Brand SVG already includes the forest pill + mint helmet + wordmark */
.s360-logo-pill {
  display: inline-flex !important;
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 0 !important;
  align-self: flex-start !important;
}

.s360-logo-pill img {
  display: block;
  height: 36px;
  width: auto;
  filter: none !important;
}

body.fruity_twentythree #navbar-toggler,
body.securit360 #navbar-toggler {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

body.fruity_twentythree #main-dropdown,
body.securit360 #main-dropdown {
  border-radius: 12px;
}

/* Progress — sit tight under the logo bar */
body.fruity_twentythree .top-container,
body.securit360 .top-container {
  background: transparent !important;
  padding-top: 2px;
  padding-bottom: 4px;
}

body.fruity_twentythree .ls-progress-container .progress,
body.securit360 .ls-progress-container .progress {
  background: rgba(255, 255, 255, 0.15) !important;
  height: 4px;
  border-radius: var(--s360-pill);
  overflow: hidden;
}

body.fruity_twentythree .ls-progress-container .progress-bar,
body.securit360 .ls-progress-container .progress-bar {
  background: var(--s360-lime) !important;
}

/* White curved panel */
body.fruity_twentythree .outerframe,
body.securit360 .outerframe {
  background: var(--s360-white) !important;
  border-radius: 48px 48px 0 0;
  margin-top: 12px;
  padding-top: 28px !important;
  padding-bottom: 48px !important;
  min-height: 70vh;
  box-shadow: none !important;
}

body.fruity_twentythree #main-col,
body.securit360 #main-col {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography in panel — title only; description/welcome stay body copy */
body.fruity_twentythree .survey-name,
body.securit360 .survey-name,
body.fruity_twentythree .group-title,
body.securit360 .group-title,
body.fruity_twentythree .question-title-container,
body.securit360 .question-title-container,
body.fruity_twentythree h1.survey-name,
body.securit360 h1.survey-name,
body.fruity_twentythree h1.large-heading,
body.securit360 h1.large-heading {
  font-family: var(--s360-font-head) !important;
  color: var(--s360-ink) !important;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  margin-bottom: 0.75rem !important;
}

/* Both description + welcome use .form-heading in LS markup — keep them as body text */
body.fruity_twentythree .survey-description,
body.securit360 .survey-description,
body.fruity_twentythree .survey-welcome,
body.securit360 .survey-welcome,
body.fruity_twentythree .survey-description.form-heading,
body.securit360 .survey-description.form-heading,
body.fruity_twentythree .survey-welcome.form-heading,
body.securit360 .survey-welcome.form-heading,
body.fruity_twentythree #survey-description,
body.securit360 #survey-description,
body.fruity_twentythree .welcome-text,
body.securit360 .welcome-text {
  font-family: var(--s360-font-body) !important;
  color: var(--s360-muted) !important;
  font-size: 0.98rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  margin: 0 0 1rem !important;
  letter-spacing: normal !important;
  position: static !important;
}

body.fruity_twentythree .survey-description p,
body.securit360 .survey-description p,
body.fruity_twentythree .welcome-text p,
body.securit360 .welcome-text p {
  margin: 0 0 0.75rem !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}

body.fruity_twentythree .group-description,
body.securit360 .group-description,
body.fruity_twentythree .question-help,
body.securit360 .question-help,
body.fruity_twentythree .ls-questionhelp,
body.securit360 .ls-questionhelp {
  color: var(--s360-muted) !important;
}

/* Question cards / radios */
body.fruity_twentythree .question-container,
body.securit360 .question-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin-bottom: 1.5rem;
  padding: 0 !important;
}

body.fruity_twentythree .list-radio .answer-item,
body.securit360 .list-radio .answer-item,
body.fruity_twentythree .radio-list .answer-item,
body.securit360 .radio-list .answer-item {
  border: 1px solid var(--s360-line) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-bottom: 8px !important;
  background: #fff !important;
}

body.fruity_twentythree .list-radio .answer-item:hover,
body.securit360 .list-radio .answer-item:hover {
  border-color: #b7d0c2 !important;
}

body.fruity_twentythree .list-radio .answer-item:has(input:checked),
body.securit360 .list-radio .answer-item:has(input:checked) {
  border-color: var(--s360-forest-mid) !important;
  background: var(--s360-mint) !important;
}

body.fruity_twentythree input[type="radio"],
body.securit360 input[type="radio"] {
  accent-color: var(--s360-forest-mid);
}

body.fruity_twentythree .form-control,
body.securit360 .form-control,
body.fruity_twentythree .form-select,
body.securit360 .form-select,
body.fruity_twentythree textarea,
body.securit360 textarea {
  border-radius: 12px !important;
  border-color: var(--s360-line) !important;
}

body.fruity_twentythree .form-control:focus,
body.securit360 .form-control:focus,
body.fruity_twentythree textarea:focus,
body.securit360 textarea:focus {
  border-color: var(--s360-forest-mid) !important;
  box-shadow: 0 0 0 3px rgba(38, 96, 64, 0.15) !important;
}

/* Buttons */
body.fruity_twentythree .btn,
body.securit360 .btn,
body.fruity_twentythree .ls-move-btn,
body.securit360 .ls-move-btn {
  border-radius: var(--s360-pill) !important;
  font-family: var(--s360-font-head) !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.35rem !important;
}

body.fruity_twentythree .btn-primary,
body.securit360 .btn-primary,
body.fruity_twentythree .ls-move-next-btn,
body.securit360 .ls-move-next-btn,
body.fruity_twentythree .ls-move-submit-btn,
body.securit360 .ls-move-submit-btn {
  background: var(--s360-forest) !important;
  border-color: var(--s360-forest) !important;
  color: #fff !important;
}

body.fruity_twentythree .btn-primary:hover,
body.securit360 .btn-primary:hover,
body.fruity_twentythree .ls-move-next-btn:hover,
body.securit360 .ls-move-next-btn:hover {
  background: var(--s360-forest-mid) !important;
  border-color: var(--s360-forest-mid) !important;
}

body.fruity_twentythree .btn-outline-secondary,
body.securit360 .btn-outline-secondary,
body.fruity_twentythree .ls-move-previous-btn,
body.securit360 .ls-move-previous-btn {
  background: transparent !important;
  color: var(--s360-forest) !important;
  border: 1px solid #c9d5ce !important;
}

/* Completed / heat map */
body.fruity_twentythree .completed-wrapper,
body.securit360 .completed-wrapper,
body.fruity_twentythree .completed-text,
body.securit360 .completed-text {
  font-family: var(--s360-font-body);
  color: var(--s360-ink);
}

body.fruity_twentythree .assessment-heading,
body.securit360 .assessment-heading {
  font-family: var(--s360-font-head);
  font-weight: 600;
}

body.fruity_twentythree .hm-wrap h2,
body.securit360 .hm-wrap h2 {
  font-family: var(--s360-font-head) !important;
}

body.fruity_twentythree .hm-cta a,
body.securit360 .hm-cta a {
  background: var(--s360-forest) !important;
  border-radius: var(--s360-pill) !important;
  font-family: var(--s360-font-head) !important;
}

/* Soften default Apple variation chrome */
body.fruity_twentythree .alert-danger.warningjs {
  border-radius: 12px;
}

@media (max-width: 700px) {
  body.fruity_twentythree .outerframe,
  body.securit360 .outerframe {
    border-radius: 28px 28px 0 0;
  }
}
