*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --brand: #5b3fe4;
  --brand-dark: #4730b8;
  --brand-light: #ede9ff;
  --text: #1a1a2e;
  --muted: #6b7280;
  --border: #d1d5db;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(91, 63, 228, 0.10);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #f0ecff 0%, #e8f0ff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

.logo {
  height: 40px;
  object-fit: contain;
  align-self: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.role-badge {
  align-self: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-badge.mentor {
  background: #d1fae5;
  color: #065f46;
}

.role-badge.mentorado {
  background: #dbeafe;
  color: #1e40af;
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.skills-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.field input[type="email"],
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  min-height: 14px;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 400;
  transition: border-color 0.2s, background 0.2s;
}

.radio-option:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-light);
}

.radio-option input[type="radio"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
}

/* Select2 overrides */
.select2-container--default .select2-selection--multiple {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 4px 6px !important;
  min-height: 44px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--brand) !important;
  outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--brand) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 0.82rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: rgba(255,255,255,0.7) !important;
  margin-right: 4px;
}

.select2-dropdown {
  border: 1.5px solid var(--brand) !important;
  border-radius: 8px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--brand) !important;
}

/* Skill level sliders */
.skill-level-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
}

.skill-level-item + .skill-level-item {
  margin-top: 12px;
}

.skill-level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-level-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.skill-level-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
  min-width: 24px;
  text-align: right;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(91,63,228,0.3);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Button */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
  margin-top: 4px;
}

.btn-primary:hover  { background: var(--brand-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 4px;
  background: #fff;
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  z-index: 100;
}

.lang-switcher a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.lang-switcher a:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.lang-switcher a.active {
  background: var(--brand);
  color: #fff;
}

/* Done */
.done-icon {
  align-self: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
