/* Form Submission - Advanced Premium Design */
/* Reusing the same design system as CreateAudit */

/* CSS Custom Properties for Design System */
:root {
  --primary-50: #fef2f2;
  --primary-100: #fee2e2;
  --primary-200: #fecaca;
  --primary-400: #f21b23;
  --primary-500: #f21b23;
  --primary-600: #d91820;
  --primary-700: #c2151d;
  
  --neutral-50: #fafafa;
  --neutral-100: #e5e5e5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-400: #a3a3a3;
  --neutral-500: #737373;
  --neutral-600: #4d4d4f;
  --neutral-700: #4d4d4f;
  --neutral-800: #4d4d4f;
  --neutral-900: #4d4d4f;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 40px rgba(242, 27, 35, 0.15);
}

/* Main Container */
.form-submission-container {
  padding: 2.5rem 3rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  box-shadow: 
    var(--shadow-xl),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* Page indicator */
.form-submission-page-indicator {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--neutral-100);
  border-radius: 0.5rem;
  border: 1px solid var(--neutral-200);
}

.form-submission-page-indicator-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-submission-page-indicator-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-800);
}

.form-submission-page-indicator-desc {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--neutral-600);
}

.form-submission-page-dots {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.form-submission-page-dot {
  padding: 0.5rem 1rem;
  background: var(--neutral-200);
  color: var(--neutral-600);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-submission-page-dot.active {
  background: var(--primary-500);
  color: white;
}

/* Header Section */
.form-submission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  position: relative;
}

.form-submission-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(242, 27, 35, 0.5) 20%,
    rgba(242, 27, 35, 0.5) 80%,
    transparent 100%
  );
}

.form-submission-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.03em;
}

.form-submission-description {
  font-size: 1rem;
  color: var(--neutral-600);
  margin: 0;
  line-height: 1.6;
}

/* Questions Section */
.questions-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.question-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 250, 0.9) 100%);
  border: 2px solid var(--neutral-200);
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.question-item:hover {
  border-color: var(--primary-400);
  box-shadow: var(--shadow-md);
}

/* Child questions under a combined main question */
.question-item-child {
  margin-left: 1.5rem;
  border-left: 3px solid var(--primary-400);
  background: linear-gradient(135deg, rgba(250, 250, 250, 0.95) 0%, rgba(245, 245, 245, 0.95) 100%);
}

.question-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.question-input-wrapper {
  margin-bottom: 1rem;
}

/* RPN value colour coding: 1 < x <= 8 green, 8 < x <= 32 yellow, x > 32 red */
.rpn-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rpn-value-input.rpn-green {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  font-weight: 600;
}

.rpn-value-input.rpn-yellow {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.12);
  color: #a16207;
  font-weight: 600;
}

.rpn-value-input.rpn-red {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font-weight: 600;
}

.rpn-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.rpn-badge.rpn-green {
  background: #22c55e;
  color: #fff;
}

.rpn-badge.rpn-yellow {
  background: #eab308;
  color: #422006;
}

.rpn-badge.rpn-red {
  background: #ef4444;
  color: #fff;
}

/* Form Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--neutral-200);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  color: var(--neutral-800);
  box-shadow: var(--shadow-sm);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: 
    0 0 0 4px rgba(242, 27, 35, 0.12),
    var(--shadow-lg);
  transform: translateY(-1px);
}

/* Native select (single) - styled dropdown */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23737373' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-input option {
  padding: 0.5rem;
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.7;
}

/* Yes/No Options */
.yes-no-options {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--neutral-200);
  border-radius: 0.625rem;
  transition: all 0.2s ease;
  background: white;
}

.radio-option:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.radio-option input[type="radio"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary-500);
}

.radio-option input[type="radio"]:checked + span {
  font-weight: 700;
  color: var(--primary-600);
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

/* MMCQ (multiple choice multiple) */
.mmcq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 2px solid var(--neutral-200);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-option:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.checkbox-option input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
  accent-color: var(--primary-500);
}

.checkbox-option:has(input[type="checkbox"]:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

/* Custom Multi-Select Dropdown */
.multi-select-dropdown {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.multi-select-trigger {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--neutral-200);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--neutral-800);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.multi-select-trigger:hover {
  border-color: var(--primary-400);
  background: #ffffff;
}

.multi-select-trigger.open {
  border-color: var(--primary-500);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(242, 27, 35, 0.12);
}

.multi-select-value {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.multi-select-value.placeholder {
  color: var(--neutral-400);
}

.multi-select-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-700);
}

.multi-select-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  color: var(--primary-600);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.multi-select-chip-remove:hover {
  background: rgba(242, 27, 35, 0.15);
  color: var(--primary-700);
}

.multi-select-arrow {
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--neutral-500);
  transition: transform 0.2s ease;
}

.multi-select-trigger.open .multi-select-arrow {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.multi-select-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: white;
  border: 2px solid var(--primary-200);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  padding: 0.35rem;
  animation: dropdown-appear 0.2s ease;
}

@keyframes dropdown-appear {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--neutral-800);
}

.multi-select-option:hover {
  background: var(--primary-50);
}

.multi-select-option.selected {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.multi-select-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  background: var(--neutral-200);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.multi-select-option.selected .multi-select-checkbox {
  background: var(--primary-500);
}

.form-select-multiple {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.image-type-hint {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--neutral-50);
  border: 1px dashed var(--neutral-300);
  border-radius: 0.5rem;
  color: var(--neutral-600);
  font-size: 0.9375rem;
}

/* Media Upload Section */
.media-upload-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neutral-200);
}

.media-upload-label {
  display: inline-block;
  cursor: pointer;
}

.media-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  border: 2px solid var(--neutral-200);
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neutral-700);
  transition: all 0.2s ease;
}

.media-upload-button:hover {
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  border-color: var(--primary-400);
  color: var(--primary-700);
}

.media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.media-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--neutral-700);
}

.btn-remove-small {
  background: transparent;
  border: none;
  color: var(--neutral-600);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn-remove-small:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  transform: scale(1.1);
}

/* Media item with thumbnail and Mark on image */
.media-item-with-thumb {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.media-thumb-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.media-thumb {
  max-width: 160px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 0.5rem;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}

.media-file-name {
  font-size: 0.875rem;
  color: var(--neutral-700);
}

.media-mark-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-700);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.media-mark-btn:hover {
  background: var(--primary-100);
  border-color: var(--primary-400);
}

/* Image annotation modal - rendered via portal to body so it centers in viewport */
.image-annotation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.image-annotation-modal {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  max-width: calc(100vw - 2rem);
  max-height: calc(95vh - 2rem);
  width: max-content;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.image-annotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--neutral-200);
}

.image-annotation-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.image-annotation-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--neutral-500);
  padding: 0.25rem;
}

.image-annotation-close:hover {
  color: var(--neutral-800);
}

.image-annotation-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}

.image-annotation-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-700);
}

.image-annotation-tool input[type="color"] {
  width: 2rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--neutral-300);
  border-radius: 0.375rem;
  cursor: pointer;
}

.image-annotation-tool input[type="range"] {
  width: 80px;
}

.image-annotation-size-value {
  min-width: 2.5rem;
  font-size: 0.8rem;
  color: var(--neutral-600);
}

.image-annotation-clear {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.image-annotation-canvas-wrap {
  padding: 1rem;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.image-annotation-canvas {
  cursor: crosshair;
  border: 1px solid var(--neutral-200);
  border-radius: 0.5rem;
  max-width: 100%;
  touch-action: none;
}

.image-annotation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--neutral-200);
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  position: relative;
}

.form-actions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--neutral-200) 20%,
    var(--neutral-200) 80%,
    transparent 100%
  );
}

/* Button System */
.btn {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  letter-spacing: 0.03em;
  position: relative;
  overflow: hidden;
}

.btn-secondary {
  background: linear-gradient(135deg, #ffffff 0%, var(--neutral-50) 100%);
  color: var(--neutral-700);
  border: 2px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
  border-color: var(--neutral-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  box-shadow: 
    0 4px 14px rgba(242, 27, 35, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  box-shadow: 
    0 8px 25px rgba(242, 27, 35, 0.4),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, var(--neutral-300) 0%, var(--neutral-400) 100%);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Error Message */
.error-message {
  padding: 1.125rem 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #b91c1c;
  border-radius: 0.75rem;
  border: 1px solid #fecaca;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.error-message::before {
  content: '⚠';
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-submission-container {
    padding: 1.5rem;
    border-radius: 1rem;
  }

  .form-submission-title {
    font-size: 1.5rem;
  }

  .form-submission-header {
    flex-direction: column;
    gap: 1rem;
  }

  .form-submission-header .btn {
    width: 100%;
  }

  .form-submission-page-indicator-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .yes-no-options {
    flex-direction: column;
    gap: 0.75rem;
  }

  .form-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .form-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 480px) {
  .form-submission-container {
    padding: 1rem;
  }

  .form-submission-title {
    font-size: 1.25rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .question-item {
    padding: 1rem;
  }

  .multi-select-panel {
    max-height: 180px;
  }

  .multi-select-chip {
    font-size: 0.8125rem;
    padding: 0.3rem 0.5rem;
  }
}

/* ================================ DARK THEME (night mode) ================================ */
body.night-mode .form-submission-container {
  background: rgba(58, 56, 56, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.night-mode .form-submission-header::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.2) 80%, transparent 100%);
}
body.night-mode .form-submission-title {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.night-mode .form-submission-title::before {
  background: linear-gradient(180deg, #f87171, #ef4444);
}
body.night-mode .form-submission-header .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}
body.night-mode .form-submission-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.5);
}
body.night-mode .form-submission-page-indicator {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
body.night-mode .form-submission-page-indicator-title {
  color: rgba(255, 255, 255, 0.98);
}
body.night-mode .form-submission-page-indicator-desc {
  color: rgba(255, 255, 255, 0.75);
}
body.night-mode .form-submission-page-dot {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
body.night-mode .form-submission-page-dot.active {
  background: #f87171;
  color: white;
}
body.night-mode .form-label {
  color: rgba(255, 255, 255, 0.9);
}
body.night-mode .form-group:focus-within .form-label {
  color: #f87171;
}
body.night-mode .form-submission-container .form-input,
body.night-mode .form-submission-container .form-textarea,
body.night-mode .form-submission-container select.form-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.95);
  color-scheme: dark;
}
body.night-mode .form-submission-container select.form-input option {
  background: rgba(58, 56, 56, 1);
  color: rgba(255, 255, 255, 0.95);
}
body.night-mode .form-input::placeholder,
body.night-mode .form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
body.night-mode .form-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.25);
}
body.night-mode .form-actions .btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.5);
}
body.night-mode .error-message {
  background: rgba(248, 113, 113, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(248, 113, 113, 0.4);
}
body.night-mode .question-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
body.night-mode .question-label {
  color: rgba(255, 255, 255, 0.95);
}
body.night-mode .questions-section {
  border-color: rgba(255, 255, 255, 0.1);
}
body.night-mode .questions-heading {
  color: rgba(255, 255, 255, 0.98);
}
