/* GILTOS v5 form/assessment final fix
   Purpose: prevent global public form styles from leaking into GILTReady assessment forms. */

/* Scope assessment pages back to white-card SaaS form style */
body .assessment-form .form-section,
body #assessmentForm .form-section {
  background: #ffffff !important;
  color: #1d2129 !important;
  border: 1px solid #e5e6eb !important;
  border-radius: 16px !important;
  padding: 0 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
}

body .assessment-form .form-section-header,
body #assessmentForm .form-section-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  padding: 24px 28px !important;
  border-bottom: 1px solid #eef2f7 !important;
  background: #fff !important;
  text-align: left !important;
}

body .assessment-form .section-letter,
body #assessmentForm .section-letter {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 50% !important;
  background: #1677ff !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

body .assessment-form .section-info,
body #assessmentForm .section-info {
  min-width: 0 !important;
  flex: 1 !important;
  text-align: left !important;
}

body .assessment-form .section-title,
body #assessmentForm .section-title {
  margin: 0 !important;
  color: #111827 !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
}

body .assessment-form .section-subtitle,
body #assessmentForm .section-subtitle {
  margin-top: 4px !important;
  color: #86909c !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  text-align: left !important;
}

body .assessment-form .section-body,
body #assessmentForm .section-body {
  padding: 28px !important;
  background: #fff !important;
  color: #1d2129 !important;
}

body .assessment-form .form-group,
body #assessmentForm .form-group {
  margin-bottom: 24px !important;
  display: block !important;
}

body .assessment-form .form-label,
body #assessmentForm .form-label,
body .assessment-form .form-group > label,
body #assessmentForm .form-group > label {
  display: block !important;
  color: #1d2129 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: left !important;
}

body .assessment-form .required,
body #assessmentForm .required {
  color: #f53f3f !important;
  margin-left: 4px !important;
  font-weight: 800 !important;
}

body .assessment-form input[type="text"],
body .assessment-form input[type="email"],
body .assessment-form input[type="tel"],
body .assessment-form select,
body .assessment-form textarea,
body #assessmentForm input[type="text"],
body #assessmentForm input[type="email"],
body #assessmentForm input[type="tel"],
body #assessmentForm select,
body #assessmentForm textarea {
  width: 100% !important;
  border: 1px solid #cfd6e4 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1d2129 !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

body .assessment-form textarea,
body #assessmentForm textarea {
  min-height: 112px !important;
  resize: vertical !important;
}

body .assessment-form input::placeholder,
body .assessment-form textarea::placeholder,
body #assessmentForm input::placeholder,
body #assessmentForm textarea::placeholder {
  color: #9aa4b2 !important;
}

body .assessment-form input:focus,
body .assessment-form select:focus,
body .assessment-form textarea:focus,
body #assessmentForm input:focus,
body #assessmentForm select:focus,
body #assessmentForm textarea:focus {
  border-color: #1677ff !important;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12) !important;
  outline: none !important;
}

body .assessment-form .radio-group,
body .assessment-form .checkbox-group,
body #assessmentForm .radio-group,
body #assessmentForm .checkbox-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

body .assessment-form .radio-item,
body .assessment-form .checkbox-item,
body #assessmentForm .radio-item,
body #assessmentForm .checkbox-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border: 1px solid #d6deeb !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #344054 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.02) !important;
}

body .assessment-form .radio-item:hover,
body .assessment-form .checkbox-item:hover,
body #assessmentForm .radio-item:hover,
body #assessmentForm .checkbox-item:hover {
  border-color: #1677ff !important;
  background: #f0f7ff !important;
}

body .assessment-form .radio-item.selected,
body .assessment-form .checkbox-item.selected,
body #assessmentForm .radio-item.selected,
body #assessmentForm .checkbox-item.selected {
  border-color: #1677ff !important;
  background: #e6f4ff !important;
  color: #0958d9 !important;
  box-shadow: inset 0 0 0 1px #1677ff !important;
}

body .assessment-form .radio-item label,
body .assessment-form .checkbox-item label,
body #assessmentForm .radio-item label,
body #assessmentForm .checkbox-item label {
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 !important;
  cursor: pointer !important;
  opacity: 1 !important;
}

body .assessment-form .score-option,
body #assessmentForm .score-option {
  background: #fff !important;
  color: #475467 !important;
  border: 1px solid #d6deeb !important;
  border-radius: 8px !important;
}
body .assessment-form .score-option.selected,
body #assessmentForm .score-option.selected {
  background: #1677ff !important;
  color: #fff !important;
  border-color: #1677ff !important;
}

body .assessment-form .form-actions,
body #assessmentForm + .form-actions,
body .form-actions {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid #e5e6eb !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.08) !important;
}

@media (max-width: 960px) {
  body .assessment-layout {
    grid-template-columns: 1fr !important;
  }
  body .assessment-sidebar {
    position: static !important;
  }
}

@media (max-width: 720px) {
  body .assessment-form .form-section-header,
  body #assessmentForm .form-section-header {
    align-items: flex-start !important;
    padding: 20px !important;
  }
  body .assessment-form .section-body,
  body #assessmentForm .section-body {
    padding: 20px !important;
  }
  body .form-actions {
    position: static !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  body .form-actions-left,
  body .form-actions-right {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }
}
