@charset "UTF-8";
/* CSS Document */

/* Override for member signup dropdown - PMPro */
details div.wp-container-core-columns-is-layout-1 {
	margin:0;
}

#nlytn-survey-form {
    position: relative; /* Necessary for positioning child elements */
    width: 100%; /* Adjust width to your layout requirements */
    max-width: 800px; /* Optional: set a max width */
    margin: 0 auto; /* Center the form horizontally */
    padding: 20px; /* Add padding inside the form */
    box-sizing: border-box; /* Ensure padding is included in the width */
    background: #fff; /* Set background color */
}
#question-container {
    position: relative;
    overflow: hidden; /* Prevent overflow during transitions */
}

/* Form Header */
#nlytn-survey-form h2 {
    text-align: center;
    color: #333;
    font-family: 'Arial', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Question Containers */
#nlytn-survey-form div {
    margin: 10px 0 50px;
	position: inherit;
}

/* Labels */
#nlytn-survey-form label {
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

/* Radio Button Images */
.radio-group {
  display: flex;
  gap: 20px;
  align-items: center; /* 🔹 Align items vertically centered */
  margin-top: 10px;
}

.radio-group input[type="radio"] {
  width: 44px;
  height: 44px;
  accent-color: #007bff;
  cursor: pointer;
}

#nlytn-survey-form .radio-group label {
  font-size: 14px;
	font-weight:400;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
	position:relative;
	left:-10px;
}

#nlytn-survey-form label img {
    width: 75px;
    height: 75px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	border-radius: 50px;
}

/* Highlight Selected Option */
#nlytn-survey-form input[type="radio"]:hover + label img {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.6);
}

/* General question styles */
.question {
    display: block;
    position: relative;
    opacity: 1;
    margin-bottom: 30px;
}

.slider-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.slider-label {
  font-size: 14px;
  color: #555;
  width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.nlytn-slider {
  flex-grow: 1;
  height: 20px;
  appearance: none;
  border-radius: 10px;
  background: linear-gradient(to right, #f88, #ffeb3b, #8f8); /* light red → yellow → light green */
  outline: none;
  cursor: pointer;
}

.nlytn-slider::-webkit-slider-thumb {
  appearance: none;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
}

.nlytn-slider::-moz-range-thumb {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #666;
  border-radius: 50%;
  cursor: pointer;
}

/* Submit Button */
#nlytn-survey-form input[type="submit"] {
    display: block;
    width: 50%;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#nlytn-survey-form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Success Message */
#survey-message {
    text-align: center;
    margin-top: 20px;
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
}

/* Chart container alignment */
#chart-container {
	border:1px solid #eee;
	border-radius:10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Visualization Dashboard Styling */
#dashboard-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}

#sidebar {
  flex: 0 0 200px;
  max-width: 200px;
  padding: 10px;
}

#chart-container {
  flex: 1;
  min-width: 0; /* Prevent overflow */
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

/* Summary chart layout */
#summary-charts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary-card {
  flex: 1 1 300px;
  box-sizing: border-box;
  padding: 8px; /* slightly less than before */
  margin: 0; /* remove any margin that could add space */
}

canvas {
  width: 100% !important;
  aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 10px;
}

.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.info-icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  cursor: pointer;
  vertical-align: middle;
}

/* Sidebar container */
#sidebar {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 200px;
  box-sizing: border-box;
}

/* Sidebar list */
#sidebar ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Sidebar items */
#sidebar li {
  margin-bottom: 12px;
}

/* Sidebar links */
#sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  display: block;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

/* Hover effect */
#sidebar a:hover {
  background-color: #e6f0ff;
  color: #007bff;
}

/* Active state */
#sidebar li.active-question a {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}





