/* ====================================
   QNR Evaluation - Form Styles
   ==================================== */

/* Main Form Container */
.qnr-eval-form {
  max-width: 90%;
  margin: auto;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(29, 29, 31, 0.15);
  position: relative;
  overflow: hidden; 
  padding: 20px;
  visibility: hidden; /* FOUC prevention */
}

.qnr-eval-form.qnr-css-loaded {
  visibility: visible;
}

/* Upload fallback message */
.qnr-upload-fallback {
  padding: 2rem;
  text-align: center;
  color: #86868b;
  background: #f5f5f7;
  border-radius: 12px;
  border: 2px dashed #d2d2d7;
}

/* Security message */
.qnr-security-message {
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  font-size: 14px;
  font-weight: 500;
}

/* Navigation & Progress */
.qnr-top-prev {
  position: absolute;
  /* display: inline-flex
; */
  /* align-items: center; */
  /* justify-content: center; */
  /* padding: 10px 20px; */
  /* border: 1px solid #d2d2d7; */
  /* border-radius: 12px; */
  background: none;
  /* color: #333;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
   transition: all 0.25s ease;
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); */
}

.qnr-top-prev:hover:not(:disabled) {
  background:none !important;
  transform: translateX(-2px);

}

.qnr-progress-linear{
  position:relative;
  height:0;       
  margin:-20px;        
  padding:0;       
  z-index:1;
}

/* On mobile, adjust progress bar margin to be visible */
@media (max-width: 768px) {
  .qnr-progress-linear {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 10px;
  }
  
  .qnr-progress-linear .progress-track {
    position: relative;
    height: 10px;
  }
}
.qnr-progress-linear .progress-track{
  position:absolute;
  top:0;left:0;
  width:100%;
  height:10px;   
  background:transparent;               
  border-top-left-radius: 15px;         
  border-top-right-radius: 15px;        
  overflow: hidden;
}

/* Mobile progress bar overrides */
@media (max-width: 768px) {
  .qnr-progress-linear .progress-track {
    position: relative !important;
    top: auto;
    left: auto;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  
  .qnr-progress-linear .progress-fill {
    border-top-right-radius: 0;
  }
}
.qnr-progress-linear .progress-fill{
  height:100%;
  background:#ce1111;                   
  width:10%;                         
  transition:width .4s ease;
  border-top-right-radius: 4px;         
}
.qnr-progress-linear .progress-label{display:none}

.qnr-progress-linear .progress-text {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
}

.qnr-progress-linear .current-step {
  color: #ce1111;
  font-weight: 700;
}

/* Steps */
.qnr-step {
  display: none !important;
  text-align: center;
  position: relative;
  z-index: 1; 
}

.qnr-step.is-active {
  display: block !important;
  animation: fadeInUp 0.4s ease;
  margin: 20px;
}

.qnr-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 60px 0px 30px 0px;
  line-height: 1.2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  justify-content: center;
}

/* Style SVG icons in h3 titles to match emoji size */
.qnr-step h3 svg {
  width: 20px;
}

.qnr-step .step-subtitle {
  font-size: 1rem;
  color: #86868b;
  margin-bottom: 20px;
  font-weight: 400;
}

.qnr-note {
  max-width: 90%;
  font-size: 0.8rem;
  color: #86868b;
  font-weight: 400;
  margin: 20px auto;
  text-align: center;
}

/* Form Options */
.qnr-option {
  background: #f5f5f7;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.05);
  transition: all 0.25s ease;
  display: block;
  width: 100%;
  padding: 15px 20px;
  margin-bottom: 10px;
  border: 2px solid #f5f5f7;
  cursor: pointer;
  text-align: left;
}

.qnr-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.08);
}

.qnr-option.is-selected {
  border-color: #ce1111;
  background: #fff;
}

.qnr-option.is-selected .option-text {
  color: #ce1111;
  font-weight: 600;
}

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

.qnr-option input[type="text"],
.qnr-option input[type="email"],
.qnr-option input[type="tel"],
.qnr-option input[type="date"],
.qnr-option input[type="file"] {
  display: block !important;
  padding: 0px !important
}

.qnr-option .option-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qnr-option .option-radio,
.qnr-option .option-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #aaaa9c;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.qnr-option .option-radio::after,
.qnr-option .option-checkbox::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: #ce1111;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.qnr-option .option-checkbox {
  border-radius: 8px;
}

.qnr-option .option-checkbox::after {
  content: '✓';
  width: auto;
  height: auto;
  background: none;
  color: #ce1111;
  font-weight: 700;
  font-size: 12px;
}

.qnr-option.is-selected .option-radio::after,
.qnr-option.is-selected .option-checkbox::after {
  transform: translate(-50%, -50%) scale(1);
}

.qnr-option .option-text {
  font-weight: 500;
  color: #1d1d1f;
  transition: all 0.15s ease;
}

/* Input Groups */
.qnr-input-group {
  margin-bottom: 2rem;
  text-align: left;
}

.qnr-input-group label {
  display: block;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.qnr-input-group input,
.qnr-input-group select,
.qnr-input-group textarea,
.qnr-option input[type="text"],
.qnr-option input[type="email"],
.qnr-option input[type="tel"],
.qnr-option input[type="date"],
.qnr-option select {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #d2d2d7;
  border-radius: 12px;
  background: #f5f5f7 !important;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f !important;
  transition: all 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
}

.qnr-input-group input::placeholder,
.qnr-input-group textarea::placeholder,
.qnr-option input[type="text"]::placeholder,
.qnr-option input[type="email"]::placeholder,
.qnr-option input[type="tel"]::placeholder {
  color: #1d1d1f !important;
  opacity: 0.6;
  font-weight: 500;
  font-size: 16px;
}

.qnr-input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.qnr-option select,
.qnr-input-group select {
  padding-right: 1rem;
}

.qnr-option input:-webkit-autofill,
.qnr-option input:-webkit-autofill:hover,
.qnr-option input:-webkit-autofill:focus,
.qnr-option input:-webkit-autofill:active,
.qnr-input-group input:-webkit-autofill,
.qnr-input-group input:-webkit-autofill:hover,
.qnr-input-group input:-webkit-autofill:focus,
.qnr-input-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f5f5f7 inset !important;
  -webkit-text-fill-color: #1d1d1f !important;
  background-color: #f5f5f7 !important;
  color: #1d1d1f !important;
}

.qnr-option input[type="text"]:not([type="radio"]):not([type="checkbox"]),
.qnr-option input[type="email"],
.qnr-option input[type="tel"],
.qnr-option input[type="date"],
.qnr-input-group input,
.qnr-input-group textarea,
.qnr-input-group select {
  color: #1d1d1f !important;
  background: #f5f5f7 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  border: none !important;
}

/* Special styling for height and weight fields */
.qnr-option input[name="height"],
.qnr-option input[name="weight"] {
  text-align: center !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  border: none !important;
}

/* Pain Scale */
.qnr-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0px 40px;
}

.qnr-scale-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #d2d2d7;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  color: #86868b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qnr-scale-dot:hover {
  border-color: #ce1111;
  color: #ce1111;
  transform: scale(1.1);
  background: #f5f5f7;
}

.qnr-scale-dot.is-active {
  background: #ce1111;
  border-color: #ce1111;
  color: #ffffff;
  transform: scale(1.1);
}

/* BodyMap */
.qnr-bodymap-wrap {
  max-width: 30%;
  margin: auto;
}

.qnr-bodymap-wrap .bodymap-placeholder {
  color: #86868b;
  font-style: italic;
}

/* BodyMap Control Buttons */
.qnr-bodymap-controls {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  justify-content: center;
}

.qnr-btn-rotate,
.qnr-btn-reset {
  background: #ffffff;
  color: #1d1d1f;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  font-size: 14px;
}

.qnr-btn-rotate {
  color: #1976d2 !important;
}

.qnr-btn-reset {
  color: #b50f0f !important;
}

.qnr-btn-rotate:hover{
  background: none;
  color: #1976d2 !important;
}

.qnr-btn-reset:hover {
  background: none;
  color: #b50f0f !important;
}

.qnr-btn-rotate:active,
.qnr-btn-reset:active {
  transform: translateY(0);
}

/* DOB Dropdown Styles */
.qnr-dob-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.qnr-dob-dropdowns:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.08);
}

.qnr-dob-dropdowns .input-label {
  font-weight: 400;
  color: #86868b;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
}

/* Single Select Dropdown Styles (Height & Weight) */
.qnr-option.qnr-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.qnr-option.qnr-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.08);
}

.qnr-option.qnr-select .input-label {
  font-weight: 400;
  color: #86868b;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
}

.qnr-option.qnr-select select {
  width: 100%;
  padding: 5px 15px !important;
  border: 2px solid #e5e5e7 !important;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.qnr-option.qnr-select select:focus,
.qnr-option.qnr-select select:hover {
  border-color: #a2a2a3 !important;
}

.qnr-option.qnr-select.is-focused {
  box-shadow: 0 4px 16px rgba(29, 29, 31, 0.12);
}

.qnr-option.qnr-select select:invalid,
.qnr-option.qnr-select select[value=""] {
  color: #86868b;
}

.qnr-option.qnr-select select option {
  color: #1d1d1f;
  font-weight: 600;
  font-size: 16px;
  padding: 8px;
}

.qnr-option.qnr-select select option:first-child {
  color: #86868b;
  font-style: italic;
}

.dob-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dob-fields select {
  flex: 1;
  min-width: 80px;
  padding: 5px 15px !important;
  border: 2px solid #e5e5e7 !important;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.dob-fields select:focus, .dob-fields select:hover  {
  border-color: #a2a2a3 !important;
}

.dob-fields select:invalid,
.dob-fields select[value=""] {
  color: #86868b;
}

.dob-fields select option {
  color: #1d1d1f;
  font-weight: 600;
  font-size: 16px;
  padding: 8px;
}

.dob-fields select option:first-child {
  color: #86868b;
  font-style: itali;
}

/* Photo Guide */
.qnr-photo-guide {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.05);
  transition: all 0.25s ease;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.qnr-photo-guide img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.qnr-photo-guide figcaption {
  color: #86868b;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* File Upload */
.qnr-option input[type="file"] {
  padding: 1rem !important;
  border: 2px dashed #d2d2d7 !important;
  background: #f5f5f7 !important;
  cursor: pointer;
}

.qnr-option input[type="file"]:hover {
  border-color: #ce1111 !important;
  background: rgba(206, 17, 17, 0.02) !important;
}

.qnr-upload-area {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(29, 29, 31, 0.05);
  transition: all 0.25s ease;
  padding: 4rem;
  border: 2px dashed #d2d2d7;
  text-align: center;
  cursor: pointer;
}

.qnr-upload-area:hover {
  border-color: #ce1111;
  background: rgba(206, 17, 17, 0.02);
}

.qnr-upload-area.has-file {
  border-color: #ce1111;
  background: rgba(206, 17, 17, 0.05);
}

.qnr-upload-area input[type="file"] {
  display: none;
}

.qnr-upload-area .upload-icon {
  font-size: 2rem;
  color: #aaaa9c;
  margin-bottom: 1rem;
}

.qnr-upload-area .upload-text {
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.qnr-upload-area .upload-hint {
  font-size: 0.875rem;
  color: #86868b;
}

/* Date Input */
.qnr-date-input input[type="date"]::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Add visual indicator that the whole area is clickable */
.qnr-date-input::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.qnr-date-input:hover::after {
  box-shadow: inset 0 0 0 2px rgba(206, 17, 17, 0.1);
}

/* Posture Example Section */
.posture-example-section {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 15px;
  margin: 15px 0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.posture-example-section:hover {
  border-color: #dee2e6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.posture-example-section h4 {
  color: #1d1d1f;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  text-align: center;
}

.posture-example-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.posture-image-container {
  flex: 0 0 auto;
  max-width: 300px;
}

.posture-example-img {
  width: 100%;
}

.posture-no-image {
  background: #f5f5f7;
  border: 2px dashed #d2d2d7;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: #86868b;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.posture-no-image-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.posture-instructions {
  flex: 1;
  min-width: 0;
}

.posture-instructions p {
  margin: 0 0 16px 0;
  color: #1d1d1f;
  text-align: justify;
}

.posture-instructions ul {
  margin: 0;
  padding-left: 20px;
  color: #4a4a4a;
  line-height: 1.6;
}

.posture-instructions li {
  margin-bottom: 8px;
}

.posture-instructions li:last-child {
  margin-bottom: 0;
}

/* Conditional Diagnostic Input */
.qnr-dx-details {
  margin-top: 1rem;
  animation: fadeInDown 0.3s ease;
}

.qnr-dx-details .qnr-option {
  margin-bottom: 0;
}

.qnr-dx-details input[type="text"] {
  border-color: #ce1111 !important;
  background: rgba(206, 17, 17, 0.02) !important;
  font-weight: 500;
}

/* Buttons */
.qnr-next,
.qnr-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Remove pseudo-element arrows from buttons */
.qnr-next::after,
.qnr-submit::after,
.qnr-nav-btn::after,
.qnr-eval-footer .qnr-nav-btn::after,
.qnr-eval-footer .qnr-next-btn::after,
.qnr-eval-footer .qnr-prev-btn::after,
.qnr-eval-footer .qnr-next-btn::before,
.qnr-eval-footer .qnr-prev-btn::before {
  display: none !important;
  content: none !important;
}

/* Ensure SVG icons are visible in navigation */
.qnr-eval-footer .qnr-next-btn svg,
.qnr-eval-footer .qnr-prev-btn svg {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 18px !important;
  height: 18px !important;
}

/* Ensure next button works on both desktop and mobile */
@media (max-width: 768px) {
  .qnr-step .qnr-next {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 40px 0 0 0 !important;
    overflow: visible !important;
  }
}

/* Disabled state applies to both desktop and mobile */
.qnr-step .qnr-next:disabled,
.qnr-step .qnr-next.is-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}


.qnr-next,.qnr-submit 
{
  white-space: nowrap;
  background: #ce1111;
  color: #ffffff;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  margin-top: 40px;
}

.qnr-next:hover:not(:disabled)
,.qnr-submit:hover:not(:disabled)
{
  background: #b50f0f;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(29, 29, 31, 0.12);
  color: #ffffff;
}

.qnr-next:active:not(:disabled),
.qnr-submit:active:not(:disabled) {
  transform: translateY(0);
}

.qnr-next:disabled,
.qnr-submit:disabled,
.qnr-next.is-disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  transform: none !important;
  pointer-events: none !important;
  background: #ccc !important;
  color: #666 !important;
}

/* Ensure disabled state works on both desktop and mobile */
.qnr-next:disabled:hover,
.qnr-next.is-disabled:hover {
  background: #ccc !important;
  color: #666 !important;
  transform: none !important;
  box-shadow: none !important;
}

.qnr-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid #d2d2d7;
  border-radius: 9999px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  margin-right: 1rem;
}

.qnr-back:hover:not(:disabled) {
  background: #f5f5f7;
  border-color: #aaaa9c;
  transform: translateY(-1px);
}

/* Error States */
.qnr-field-error {
  color: #ce1111;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.qnr-option.has-error {
  border-color: #ce1111;
  background: rgba(206, 17, 17, 0.05);
}

/* Loading States */
.qnr-spinner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.qnr-spinner::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Responsive Design */
@media (max-width: 640px) {
  .dob-fields {
    flex-direction: column;
    gap: 8px;
  }
  
  .dob-fields select {
    min-width: 100%;
  }

  .qnr-bodymap-wrap {
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .posture-example-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .posture-image-container {
    max-width: 100%;
    text-align: center;
  }
  
  .posture-example-img {
    max-width: 50% !important;
  }
}

@media (max-width: 480px) {
  .posture-example-section {
    padding: 15px;
    margin: 15px 0;
  }
  
  .posture-example-section h4 {
    font-size: 1rem;
    margin-bottom: 15px;
  }
}

/* ========================================
   MOBILE NAVIGATION (Mobile/Tablet) - Under Progress Bar
   ======================================== */

/* Desktop - Hide mobile navigation */
.qnr-eval-footer {
  display: none;
}

/* Mobile/Tablet - Show navigation under progress bar */
@media (max-width: 768px) {
  /* Show navigation inline after progress bar */
  .qnr-eval-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: #fff;
    border: none !important;
    padding: 15px 20px;
    margin: 0;
    z-index: 1;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Footer now only has back button and page indicator - next button removed */
  .qnr-eval-footer .qnr-next-btn {
    display: none !important;
  }
  

  /* Keep horizontal layout for submit step */
  /* .qnr-eval-footer.has-submit {
    flex-direction: row;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
  }

  .qnr-eval-footer.has-submit .qnr-eval-page-indicator {
    order: 2;
    flex: 1;
    text-align: center;
  }

  .qnr-eval-footer.has-submit .qnr-prev-btn {
    order: 1;
    width: auto;
    min-width: 100px;
  }

  .qnr-eval-footer.has-submit .qnr-next-btn {
    order: 3;
    width: auto;
    min-width: 100px;
  } */

  /* Simplify form styling on tablet/mobile */
  .qnr-eval-form {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none;
    overflow: visible;
    border-radius: 0px !important;
    padding-bottom: 20px !important;
    box-sizing: border-box !important;
  }

  /* Extra padding for submit step */
  /* .qnr-eval-footer.has-submit {
    padding: 20px;
  } */

  /* Navigation buttons */
  .qnr-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: none !important;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 100px;
  }

  .qnr-nav-btn:hover:not(:disabled) {
    background: none !important;
  }
  
  /* Previous button moves left */
  .qnr-nav-btn.qnr-prev-btn:hover:not(:disabled) {
    transform: translateX(-5px);
  }
  
  /* Next button moves right */
  .qnr-nav-btn.qnr-next-btn:hover:not(:disabled) {
    transform: translateX(5px);
  }

  .qnr-nav-btn:active:not(:disabled) {
    transform: translateY(0);
  }

  .qnr-nav-btn:disabled {
    background: none !important;
  }

  /* Previous button - secondary style */
  .qnr-prev-btn {
    background: none !important;
    color: #333 !important;
    /* border: 1px solid #d2d2d7; */
    /* Ensure proper flexbox alignment like other nav buttons */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-direction: row !important;
  }
  
  /* Force proper alignment for prev button in footer */
  .qnr-eval-footer .qnr-prev-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    flex-direction: row !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  .qnr-prev-btn:hover:not(:disabled) {
    background: #e8e8ed;
    border-color: #aaaa9c;
  }

  /* Page indicator */
  .qnr-eval-page-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
  }

  .qnr-current-step {
    color: #ce1111;
    font-weight: 700;
  }

  .qnr-total-steps {
    color: #666;
  }

  /* Hide footer next button on mobile - use desktop next button instead */
  .qnr-eval-footer .qnr-next-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* Steps should still only show when active (this is handled by JS, but ensure inactive steps are hidden) */
  .qnr-step:not(.is-active) {
    display: none !important;
  }
  
  /* Active step should be visible */
  .qnr-step.is-active {
    display: block !important;
  }

  /* Hide top back button on mobile/tablet */
  .qnr-top-prev {
    display: none !important;
  }

  /* Submit button in fixed navigation - full width, no shadow */
  .qnr-nav-btn.qnr-submit-btn {
    /* width: 100%; */
    background: #ce1111;
    box-shadow: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    /* Ensure proper alignment for span and SVG */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .qnr-nav-btn.qnr-submit-btn:hover:not(:disabled) {
    background: #b50f0f;
    box-shadow: none;
  }
  
  /* Ensure SVG in submit button has proper styling */
  .qnr-nav-btn.qnr-submit-btn svg {
    display: inline-block !important;
    visibility: visible !important;
  }
  
  /* Ensure SVG in previous button has proper styling - highest specificity */
  .qnr-eval-footer .qnr-nav-btn.qnr-prev-btn svg {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
    fill: currentColor !important;
  }

}

/* Specific styling for title text spans */
.qnr-eval-form .qnr-title-text {
  font-size: 18px !important;
  font-weight: 600 !important;
}

/* Hide number input spinners/arrows */
.qnr-eval-form input[type="number"] {
  appearance: textfield; /* Standard property */
  -moz-appearance: textfield; /* Firefox */
}

.qnr-eval-form input[type="number"]::-webkit-outer-spin-button,
.qnr-eval-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* WebKit browsers */
  margin: 0;
}