/* Student Form Specific Styles */
/* Import common components */
@import url('common-components.css');

/* Body and base styles */
* { 
  box-sizing: border-box; 
}

body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: #f8fafc;
  color: #0f172a;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Professional card design */
.professional-card {
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.professional-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #e67e22;
}

.professional-card.shadow-lg {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.professional-card.shadow-lg:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Professional Radio Buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* General spacing improvements */
.row.g-4 {
  margin-bottom: 0rem !important;
}

.row:last-child {
  margin-bottom: 0;
}

.question-group {
  margin-bottom: 1.5rem;
}

/* Removed - no longer using col-md-6 layout */

/* Input group spacing consistency */
.input-group-enhanced {
  margin-bottom: 1.5rem;
}

.input-group-enhanced:last-child {
  margin-bottom: 0;
}

/* Force vertical layout for all radio groups except yes/no types */
.radio-group:not(.yes-no-compact):not(.yes-no-inline) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

/* Compact Yes/No Toggle Style - keep horizontal for yes/no */
.radio-group.yes-no-compact,
.radio-group.yes-no-inline {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  width: fit-content;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  border: none;
}

.radio-group.yes-no-compact {
  gap: 0;
  background: #f1f5f9;
  padding: 4px;
  border: 1px solid #e2e8f0;
}

.radio-group.yes-no-compact .radio-option {
  margin: 0;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  background: transparent;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.radio-group.yes-no-compact .radio-option:hover {
  background: rgba(251, 166, 70, 0.1);
  color: #e67e22;
  box-shadow: none;
}

.radio-group.yes-no-compact .radio-option.selected {
  background: #3b82f6;
  color: white;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  font-weight: 600;
}

.radio-option {
  position: relative;
  cursor: pointer;
  background: #f8f9fa;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.15s ease;
  text-align: left;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  font-weight: 500;
  font-size: 15px;
  color: #344054;
  width: 100% !important;
  flex-direction: row !important;
  margin-bottom: 0 !important;
}

.radio-option:hover {
  border-color: #e67e22;
  background-color: #ffffff;
  color: #e67e22;
  box-shadow: 0 1px 2px rgba(251, 166, 70, 0.1);
}

/* Ensure selected radio options only show outline, no fill */
.radio-option.selected {
  background: #ffffff !important;
  border-color: #e67e22 !important;
  color: #e67e22 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px #e67e22 !important;
}

/* Override for yes-no-compact to maintain original toggle style */
.radio-group.yes-no-compact .radio-option.selected {
  background: #77a3ec !important;
  color: white !important;
  box-shadow: 0 2px 4px rgba(119, 163, 236, 0.3) !important;
}

/* Ensure all other radio options show outline only */
.radio-group:not(.yes-no-compact) .radio-option.selected {
  background: #ffffff !important;
  border-color: #e67e22 !important;
  color: #e67e22 !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 2px #e67e22 !important;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Professional Range Slider */
.range-container {
  padding: 12px 0;
}

.modern-range {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #eaecf0;
  outline: none;
}

.modern-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e67e22;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(251, 166, 70, 0.2);
  transition: all 0.15s ease;
}

.modern-range::-webkit-slider-thumb:hover {
  background: #d35400;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.15), 0 0 0 2px rgba(251, 166, 70, 0.2);
  transform: scale(1.1);
}

.modern-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e67e22;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.1);
}

/* Range value indicator */
.range-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  color: #344054;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 12px;
}

/* Unified Range Style for consistency */
.range-container.unified {
  padding: 8px 0;
}

.range-container.unified .d-flex {
  align-items: center;
  gap: 12px;
}

.range-container.unified .form-range {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #eaecf0;
  outline: none;
  -webkit-appearance: none;
}

.range-container.unified .form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e67e22;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.1), 0 0 0 1px rgba(251, 166, 70, 0.2);
  transition: all 0.15s ease;
}

.range-container.unified .range-value {
  min-width: 32px;
  height: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-left: 0;
}

/* Inline question style for compact layout */
.question-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.question-inline .question-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 200px;
}

.question-inline .radio-group.yes-no-compact,
.question-inline .range-container {
  flex-shrink: 0;
}

/* Professional form inputs */
.modern-input {
  background: #fafbfc;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  transition: all 0.15s ease;
  font-weight: 400;
  color: #101828;
}

.modern-input:focus {
  background: #ffffff;
  outline: none;
  border-color: #e67e22;
  box-shadow: 0 0 0 4px rgba(251, 166, 70, 0.12);
}

.modern-input::placeholder {
  color: #667085;
}

/* Enhanced section headers */
.section-header {
  background: #e67e22;
  border-bottom: none;
  color: white;
  padding: 28px 32px;
  border-radius: 16px 16px 0 0;
  position: relative;
  overflow: hidden;
}

.gradient-header {
  background: #e67e22;
  position: relative;
}

.gradient-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='20' cy='20' r='1'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.section-content {
  background: white;
  padding: 36px 32px;
  border-radius: 0 0 16px 16px;
  position: relative;
}

/* Time estimate display */
.time-estimate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.time-icon {
  width: 16px;
  height: 16px;
}

/* Professional Header Styles */
.professional-header {
  background: #e67e22;
  color: white;
  position: relative;
  overflow: hidden;
}

.professional-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23475569' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3e2;
  color: #e67e22;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(251, 166, 70, 0.2);
}

.header-title {
  font-family: 'Nunito', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 16px !important;
  position: relative;
  z-index: 1;
}

.progress-overview {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #e67e22;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.score-guide {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.score-guide-title {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.score-items {
  display: flex;
  gap: 16px;
}

.score-item {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding-left: 16px;
}

.score-item::before {
  content: '';
  position: absolute;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.score-weak::before { background: #ef4444; }
.score-basic::before { background: #d35400; }
.score-good::before { background: #3b82f6; }
.score-excellent::before { background: #10b981; }

.score-weak { color: #dc2626; }
.score-basic { color: #d97706; }
.score-good { color: #2563eb; }
.score-excellent { color: #059669; }

/* Enhanced Question Cards */
.question-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.question-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.question-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.question-number {
  background: #77a3ec;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(119, 163, 236, 0.3);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.answer-option {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.answer-option:hover {
  border-color: #e67e22;
  background: #fef3e2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(251, 166, 70, 0.15);
}

.answer-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option.selected {
  border-color: #e67e22;
  background: #fef3e2;
  box-shadow: 0 4px 12px rgba(251, 166, 70, 0.2);
}

.answer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.answer-text {
  font-weight: 500;
  color: #1f2937;
  font-size: 15px;
}

.answer-score {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.answer-option.selected .answer-text {
  color: #e67e22;
  font-weight: 600;
}

.answer-option.selected .answer-score {
  color: #e67e22;
  font-weight: 600;
}

.section-weight-badge {
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* Clean question groups */
.question-group {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  width: 100%;
}

/* Full width question layout */
.question-full-width {
  width: 100% !important;
  margin-bottom: 24px;
}

/* Yes/No inline radio group for development potential section */
.radio-group.yes-no-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 200px;
}

.radio-group.yes-no-inline .radio-option {
  background: transparent;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 44px;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}

.radio-group.yes-no-inline .radio-option:hover {
  border-color: #e67e22;
  background-color: transparent;
  color: #e67e22;
}

.radio-group.yes-no-inline .radio-option.selected {
  border-color: #e67e22;
  background-color: transparent;
  color: #e67e22;
  box-shadow: 0 0 0 1px #e67e22;
  font-weight: 600;
}

.radio-group.yes-no-inline .radio-option:focus-within {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

.question-group:hover {
  background: #ffffff;
  border-color: rgba(251, 166, 70, 0.3);
  box-shadow: 0 4px 12px rgba(251, 166, 70, 0.1);
  transform: translateY(-1px);
}

/* Enhanced typography for modern look */
.section-title, h2.text-xl {
  font-family: 'Nunito', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0;
}

h1 {
  font-family: 'Nunito', sans-serif !important;
  font-size: 40px !important;
  font-weight: 800 !important;
  color: #1a202c !important;
  letter-spacing: -0.025em !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 400 !important;
  opacity: 0.95;
  margin: 0;
}

.question-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  line-height: 1.5 !important;
  margin-bottom: 8px;
  display: block;
}

label, .font-medium {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  line-height: 1.5 !important;
}

/* Header typography improvements */
.header-title {
  font-family: 'Nunito', sans-serif !important;
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  line-height: 1.2 !important;
  margin-bottom: 1.5rem !important;
  position: relative;
  z-index: 1;
}

.header-subtitle {
  font-size: 1.25rem !important;
  color: #ffffff !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-bottom: 2rem !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Professional button styles */
.btn-primary {
  background: #e67e22;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(251, 166, 70, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #d35400;
  box-shadow: 0 12px 35px rgba(251, 166, 70, 0.4);
  color: white;
}

.btn-secondary {
  background: white;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.btn-secondary:hover {
  border-color: #e67e22;
  background-color: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 166, 70, 0.1);
}

/* Professional typography */
.question-title {
  font-size: 15px;
  font-weight: 600;
  color: #101828;
  margin-bottom: 12px;
  line-height: 1.4;
}

.section-weight {
  font-size: 13px;
  color: #667085;
  font-weight: 500;
  background: #f2f4f7;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Loading and error states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.error {
  border-color: #ef4444 !important;
}

/* Accessibility improvements */
.radio-option:focus-within {
  outline: 2px solid #e67e22;
  outline-offset: 2px;
}

.modern-input:focus {
  outline: 2px solid #e67e22;
  outline-offset: -2px;
}

/* Smart UI enhancements */
.progress-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #e67e22;
  transition: width 0.3s ease;
  z-index: 50;
}

.auto-save-indicator {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #12b76a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 40;
}

.auto-save-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced Input Styles */
.input-group-enhanced {
  margin-bottom: 1.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #9ca3af;
  z-index: 2;
  transition: all 0.2s ease;
  pointer-events: none;
}

.enhanced-input {
  padding-left: 46px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 500;
}

.enhanced-input:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(251, 166, 70, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.enhanced-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #e67e22;
  transform: scale(1.1);
}

.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.enhanced-select {
  appearance: none;
  padding-right: 46px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 500;
  cursor: pointer;
}

.enhanced-select:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(251, 166, 70, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

.select-arrow {
  position: absolute;
  right: 14px;
  color: #9ca3af;
  pointer-events: none;
  transition: all 0.2s ease;
}

.select-wrapper:focus-within .select-arrow {
  color: #e67e22;
  transform: rotate(180deg);
}

.textarea-wrapper {
  position: relative;
}

.enhanced-textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  font-weight: 500;
  resize: vertical;
  min-height: 100px;
}

.enhanced-textarea:focus {
  border-color: #e67e22;
  box-shadow: 0 0 0 3px rgba(251, 166, 70, 0.1);
  background: #ffffff;
  transform: translateY(-1px);
}

/* Advanced animations */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-up {
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 1s;
}

/* Custom Alert System */
.custom-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.custom-alert-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.custom-alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-alert-error .custom-alert-icon {
  color: #ef4444;
}

.custom-alert-success .custom-alert-icon {
  color: #10b981;
}

.custom-alert-info .custom-alert-icon {
  color: #3b82f6;
}

.custom-alert-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

/* Error states */
.error-state {
  position: relative;
}

.error-state::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid #ef4444;
  border-radius: 12px;
  pointer-events: none;
  animation: errorPulse 0.5s ease-out;
}

@keyframes errorPulse {
  0% {
    opacity: 0;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Override footer margin for student form */
.footer {
  margin-top: 60px;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  
  .answer-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 1024px) {
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .answer-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  
  .section-content {
    padding: 28px 24px;
  }
  
  .section-header {
    padding: 20px 24px;
  }
  
  .question-card {
    padding: 20px;
    margin-bottom: 18px;
  }
}

/* Yes/No inline responsive */
@media (max-width: 768px) {
  .radio-group.yes-no-inline {
    max-width: 180px;
    gap: 10px;
  }
  
  .radio-group.yes-no-inline .radio-option {
    padding: 10px 12px;
    font-size: 14px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .radio-group.yes-no-inline {
    max-width: 160px;
    gap: 8px;
  }
  
  .radio-group.yes-no-inline .radio-option {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 36px;
  }
  
  .radio-group.yes-no-inline .radio-option.selected {
    box-shadow: 0 0 0 2px #e67e22;
  }
}

@media (max-width: 768px) {
  
  /* Enhanced header responsive */
  .header-title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
  }
  
  .header-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .answer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .question-header {
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .question-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .section-weight-badge {
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .answer-option {
    padding: 14px;
  }
  
  .answer-text {
    font-size: 14px;
  }
  
  .answer-score {
    font-size: 11px;
  }
  
  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .stat-value {
    font-size: 22px;
  }
  
  .score-guide {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 16px 20px;
  }
  
  .score-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  /* Enhanced button responsive */
  .btn-secondary {
    font-size: 14px !important;
    padding: 10px 14px !important;
    gap: 6px;
  }
  
  /* Enhanced input responsive */
  .input-group-enhanced {
    margin-bottom: 1rem;
  }
  
  .enhanced-input, .enhanced-select, .enhanced-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px 14px;
  }
  
  /* Form input spacing */
  .modern-input {
    margin-bottom: 0;
  }
  
  /* Consistent radio group layout */
  .radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Personal info section specific */
  .input-group-enhanced {
    margin-bottom: 1rem;
  }
  
  .enhanced-input {
    padding-left: 44px !important;
  }
  
  .enhanced-select {
    padding-right: 44px !important;
  }
  
  .input-icon {
    left: 12px;
    width: 16px;
    height: 16px;
  }
  
  .select-arrow {
    right: 12px;
    width: 16px;
    height: 16px;
  }
  
  /* Auto-save indicator responsive */
  .auto-save-indicator {
    top: 70px;
    right: 16px;
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* Compact yes/no responsive */
  .radio-group.yes-no-compact {
    width: 120px;
    padding: 3px;
    flex-shrink: 0;
  }
  
  .radio-group.yes-no-compact .radio-option {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 45px;
  }
  
  /* Mobile layout improvements - Fix stacking columns */
  .row.g-4 {
    --bs-gutter-y: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  /* Removed - no longer using col-md-6 layout */
  
  .row:last-child {
    margin-bottom: 0;
  }
  
  /* Removed - no longer using col-md-6 layout */
  
  .question-group {
    padding: 16px;
    margin-bottom: 0.75rem;
  }
  
  /* Ensure consistent spacing for all question-groups */
  .question-group {
    margin-bottom: 1rem;
  }
  
  /* Personal info section mobile */
  .input-group-enhanced {
    margin-bottom: 1.25rem;
  }
  
  .input-group-enhanced:last-child {
    margin-bottom: 0;
  }
  
  .radio-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .radio-option {
    padding: 12px 14px;
    font-size: 15px;
    min-height: 44px;
  }
  
  .section-header {
    padding: 18px 16px;
  }
  
  .section-content {
    padding: 20px 16px;
  }
  
  /* Range sliders mobile */
  .range-container.unified {
    padding: 8px 0;
  }
  
  .range-container.unified .d-flex {
    gap: 8px;
  }
  
  .range-value {
    margin-left: 0;
    min-width: 28px;
    height: 24px;
    font-size: 13px;
  }
  
  .professional-card {
    margin-bottom: 1.5rem !important;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  /* Header mobile responsive */
  .header-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }
  
  .header-title {
    font-size: 22px !important;
  }
  
  .header-subtitle {
    font-size: 15px !important;
    margin-bottom: 24px !important;
  }
  
  .progress-overview {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .progress-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .score-guide {
    padding: 12px 16px;
    margin-bottom: 16px;
  }
  
  .score-guide-title {
    font-size: 15px;
  }
  
  .score-item {
    font-size: 14px;
  }
  
  /* Button mobile */
  .btn-secondary {
    font-size: 15px !important;
    padding: 10px 14px !important;
  }
  
  /* Auto-save indicator mobile */
  .auto-save-indicator {
    top: 65px;
    right: 12px;
    font-size: 11px;
    padding: 5px 8px;
  }
  
  /* Mobile 480px spacing improvements */
  .row.g-4 {
    --bs-gutter-y: 0.5rem;
    --bs-gutter-x: 0rem;
    margin-bottom: 0.5rem;
  }
  
  /* Removed - no longer using col-md-6 layout */
  
  .question-group {
    padding: 12px;
    margin-bottom: 0.5rem;
  }
  
  /* Personal info mobile 480px */
  .input-group-enhanced {
    margin-bottom: 1rem;
  }
  
  .radio-group {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
  
  
  .radio-option {
    padding: 10px 12px;
    min-height: 44px;
    font-size: 15px;
  }
  
  .section-header {
    padding: 14px 12px;
  }
  
  .section-content {
    padding: 14px 12px;
  }
  
  .professional-card {
    margin-bottom: 1rem !important;
  }
  
  /* Range container mobile */
  .range-container.unified {
    padding: 6px 0;
  }
  
  .range-value {
    margin-left: 6px;
    min-width: 28px;
    height: 20px;
    font-size: 12px;
  }
  
  .section-header {
    padding: 12px 16px;
  }
  
  .section-content {
    padding: 16px;
  }
}

/* Print styles */
@media print {
  .modern-nav,
  .btn-secondary,
  #scrollToTop {
    display: none;
  }
  
  .professional-card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .section-header {
    background: #f2f4f7 !important;
    color: #101828 !important;
  }
}

/* Final overrides to ensure correct radio layout */
.radio-group:not(.yes-no-compact):not(.yes-no-inline) {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  width: 100% !important;
}

.radio-group:not(.yes-no-compact):not(.yes-no-inline) .radio-option {
  width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
}

/* Ensure selected state only shows outline, no fill background */
.radio-group:not(.yes-no-compact):not(.yes-no-inline) .radio-option.selected {
  background: #ffffff !important;
  border: 2px solid #e67e22 !important;
  color: #e67e22 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}