@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2C57A7;
  --primary-rgb: 44, 87, 167;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --red-500: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--slate-50);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

/* Animations */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in-zoom {
  animation: zoomIn 0.2s ease-out forwards;
}

/* Component Styles */

.section-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid var(--slate-100);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  transition: all 0.2s;
}
@media (min-width: 768px) {
  .section-card { padding: 2rem; }
}
.section-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  padding-bottom: 1rem;
}
.section-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.section-header p {
  color: var(--slate-500);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.icon-box {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.1);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.question-label {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.75rem;
}

.required {
  color: var(--red-500);
  margin-top: 2px;
}

.text-input, .text-area {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  outline: none;
  transition: all 0.2s;
  font-size: 1rem;
  color: var(--slate-800);
  background-color: white;
  box-sizing: border-box;
}
.text-input:focus, .text-area:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}
.text-input.has-error, .text-area.has-error {
  border-color: #fca5a5;
  background-color: #fef2f2;
}
.text-area {
  min-height: 100px;
  resize: vertical;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background-color: white;
  color: #334155;
  transition: all 0.2s;
  min-height: 56px;
  box-sizing: border-box;
}
.radio-option:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-300);
}
.radio-option.selected {
  background-color: rgba(var(--primary-rgb), 0.05);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.radio-circle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}
.radio-option.selected .radio-circle {
  border-color: var(--primary);
}
.radio-circle div {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background-color: var(--primary);
  display: none;
}
.radio-option.selected .radio-circle div {
  display: block;
}

.numeric-rating {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.375rem;
  border-radius: 0.75rem;
  background-color: rgba(241, 245, 249, 0.5);
  border: 1px solid var(--slate-200);
  box-sizing: border-box;
}
.numeric-rating.has-error {
  background-color: #fef2f2;
  border-color: #fecaca;
}

.rating-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--slate-500);
  border: 1px solid rgba(226, 232, 240, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}
@media (min-width: 640px) {
  .rating-btn { height: 3.5rem; font-size: 1.25rem; }
}
.rating-btn:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}
.rating-btn.selected {
  background-color: var(--primary);
  color: white;
  transform: scale(1.02);
  border-color: transparent;
  box-shadow: 0 10px 15px -3px rgba(var(--primary-rgb), 0.25);
}

.skill-card {
  border-radius: 0.75rem;
  border: 2px solid var(--slate-100);
  padding: 1.25rem;
  background-color: white;
  transition: all 0.3s;
}
.skill-card.active {
  border-color: rgba(var(--primary-rgb), 0.6);
  background-color: rgba(var(--primary-rgb), 0.05);
}
.skill-card h3 {
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 1rem;
  margin-top: 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.skill-option {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: var(--slate-500);
  transition: all 0.2s;
}
.skill-option:hover {
  background-color: rgba(241, 245, 249, 0.8);
}
.skill-option.selected {
  background-color: white;
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.1);
}

.custom-radio {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--slate-300);
  background-color: white;
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.skill-option.selected .custom-radio {
  border-color: var(--primary);
  background-color: var(--primary);
}
.custom-radio-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: white;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.2s;
}
.skill-option.selected .custom-radio-dot {
  transform: scale(1);
}

.recommend-option {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--slate-200);
  background-color: white;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s;
}
.recommend-option:hover {
  background-color: var(--slate-50);
}
.recommend-option.selected {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.error-msg {
  color: var(--red-500);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* Stars */
.star-icon {
  width: 48px; 
  height: 48px;
  transition: all 0.2s;
  fill: #e2e8f0;
  color: #cbd5e1;
}

.star-btn:hover .star-icon,
.star-btn.hover .star-icon,
.star-btn.active .star-icon {
  fill: #facc15;
  color: #facc15;
}
