.form-field {
  width: 100%;
}

.form-field label {
  display: block;
  font-weight: bold;
}


input {
  padding: 8px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

/* Question Form */
.question-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-self: center;
  gap: 25px;
}

.form-section {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px var(--shadow-color);
}

.form-section h3 {
  margin: 0 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.form-section .form-field {
  margin-bottom: 15px;
}

.form-section .form-field:last-child {
  margin-bottom: 0;
}

.form-section .form-field label {
  margin-bottom: 5px;
  color: var(--text-tertiary);
}

.form-section textarea {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background-color: var(--input-bg);
  color: var(--text-primary);
}

.form-section input:focus,
.form-section textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(136, 20, 0, 0.1);
}

.checkbox-field {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
}

.checkbox-field label {
  font-weight: normal !important;
  cursor: pointer;
  margin-bottom: 0px !important;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.form-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  padding: 12px 24px;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: var(--error-color);
  font-weight: bold;
  font-size: 13px;
}

.hint {
  color: var(--text-muted);
  font-size: 12px;
  margin: 5px 0 0 0;
}


/* Switch Toggle */

 /* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--input-border);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--accent-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Yes/No/IDK Buttons */
.yes-no-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.yes-no-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
}

.yes-no-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-hover);
}

.yes-no-btn i {
  font-size: 18px;
}

/* Yes button selected */
.yes-no-btn.btn-yes.selected {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.yes-no-btn.btn-yes:hover {
  border-color: #10b981;
}

/* No button selected */
.yes-no-btn.btn-no.selected {
  background-color: #ef4444;
  border-color: #ef4444;
  color: white;
}

.yes-no-btn.btn-no:hover {
  border-color: #ef4444;
}

/* IDK button selected */
.yes-no-btn.btn-idk.selected {
  background-color: #6b7280;
  border-color: #6b7280;
  color: white;
}

.yes-no-btn.btn-idk:hover {
  border-color: #6b7280;
}

/* Scale Buttons */
.scale-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

.scale-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--input-border);
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scale-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-hover);
}

.scale-btn.selected {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Scale answer display */
.scale-response {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.scale-response .scale-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
}

.scale-response .scale-range {
  font-size: 16px;
  color: var(--text-muted);
}

/* Multiple Choice Options */
.multiple-choice-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.choice-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.choice-option-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border-color-light);
  border-radius: 20px;
  background-color: transparent;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.choice-option-btn:hover {
  border-color: var(--accent-color);
  background-color: var(--bg-hover);
}

.choice-option-btn.selected {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/* Multiple choice answer display */
.multiple-choice-response {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-options-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selected-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--border-color-light);
  border-radius: 16px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
}

/* Options container for admin form */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-item .option-input {
  flex: 1;
}

.option-item .btn-remove-option {
  padding: 6px 10px;
  background-color: transparent;
  color: var(--text-muted);
}

.option-item .btn-remove-option:hover {
  color: var(--error-color);
  background-color: transparent;
} 

/* ==========================================
   RESPONSIVE STYLES - MOBILE
   ========================================== */

@media screen and (max-width: 768px) {
  /* Question form */
  .question-form {
    gap: 15px;
  }

  /* Form sections */
  .form-section {
    padding: 15px;
  }

  .form-section h3 {
    font-size: 16px;
    margin: 0 0 15px 0;
  }

  /* Form fields */
  .form-field label {
    font-size: 14px;
  }

  input, 
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Form actions */
  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Checkbox field */
  .checkbox-field {
    flex-wrap: wrap;
  }

  /* Yes/No buttons */
  .yes-no-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .yes-no-btn {
    width: 100%;
    justify-content: center;
  }

  /* Scale input */
  .scale-input {
    flex-direction: column;
    gap: 15px;
  }

  .scale-labels {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  /* Multiple choice */
  .multiple-choice-options {
    gap: 8px;
  }

  .multiple-choice-option {
    padding: 12px;
  }

  /* Options container */
  .options-container {
    gap: 8px;
  }

  .option-item {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  .option-item .btn-remove-option {
    align-self: flex-end;
  }
}

@media screen and (max-width: 480px) {
  input,
  textarea,
  select {
    padding: 10px;
  }

  .form-section {
    padding: 12px;
  }

  .yes-no-btn {
    padding: 10px 15px;
  }
}