/**
 * Skilled-Up Distributors Application — Silicon Valley UI
 */

.skillup-page {
  background: #f4f6fb;
  color: #1e293b;
  overflow-x: clip;
}

.skillup-page .site-navbar .navbar-brand img,
.skillup-page .site-navbar__logo {
  height: 48px !important;
  max-height: 48px !important;
  width: auto !important;
}

.skillup-main {
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.skillup-hero {
  position: relative;
  background: linear-gradient(135deg, #0c1524 0%, #162033 45%, #1a2744 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
}

.skillup-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 10% 0%, rgba(219, 113, 31, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 60% at 95% 100%, rgba(211, 174, 66, 0.15), transparent 50%);
  pointer-events: none;
}

.skillup-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.skillup-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.skillup-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.skillup-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.65;
}

.skillup-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skillup-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.skillup-card__head {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
}

.skillup-card__head h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.skillup-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.skillup-progress {
  display: flex;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.skillup-progress__step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.3s ease;
}

.skillup-progress__step.is-active,
.skillup-progress__step.is-done {
  background: linear-gradient(90deg, #db711f, #d3ae42);
}

.skillup-steps-label {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skillup-body {
  padding: 1.75rem;
}

.skillup-step {
  display: none;
  animation: skillupFade 0.35s ease;
}

.skillup-step.is-active {
  display: block;
}

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

.skillup-section-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #db711f;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skillup-section-title i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(219, 113, 31, 0.1);
  font-size: 0.85rem;
}

.skillup-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.4rem;
}

.skillup-label .req {
  color: #db711f;
}

.skillup-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
  width: 100%;
}

.skillup-control:focus {
  border-color: #db711f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(219, 113, 31, 0.12);
  outline: none;
}

.skillup-positions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .skillup-positions { grid-template-columns: 1fr; }
}

.skillup-position {
  position: relative;
}

.skillup-position input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.skillup-position label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
  height: 100%;
  margin: 0;
}

.skillup-position label:hover {
  border-color: #db711f;
  background: #fffbf7;
}

.skillup-position input:checked + label {
  border-color: #db711f;
  background: linear-gradient(135deg, rgba(219, 113, 31, 0.08), rgba(211, 174, 66, 0.06));
  box-shadow: 0 8px 24px rgba(219, 113, 31, 0.12);
}

.skillup-position__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(219, 113, 31, 0.12);
  color: #db711f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skillup-position__text strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
}

.skillup-position__text span {
  font-size: 0.78rem;
  color: #64748b;
}

.skillup-checkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.55rem;
}

.skillup-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin: 0;
  font-size: 0.88rem;
}

.skillup-check:hover {
  border-color: #db711f;
  background: #fffbf7;
}

.skillup-check input {
  accent-color: #db711f;
  width: 16px;
  height: 16px;
}

.skillup-check:has(input:checked) {
  border-color: #db711f;
  background: rgba(219, 113, 31, 0.06);
}

.skillup-yesno-grid {
  display: grid;
  gap: 0.85rem;
}

.skillup-yesno {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fafbfd;
}

.skillup-yesno__q {
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
  flex: 1;
  min-width: 200px;
}

.skillup-yesno__opts {
  display: flex;
  gap: 0.5rem;
}

.skillup-yesno__opts label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  transition: all 0.2s;
}

.skillup-yesno__opts input {
  accent-color: #db711f;
}

.skillup-yesno__opts label:has(input:checked) {
  border-color: #db711f;
  background: rgba(219, 113, 31, 0.1);
  color: #9a4a12;
}

.skillup-declaration {
  padding: 1.25rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 1rem;
}

.skillup-declaration-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  margin: 0;
}

.skillup-declaration-check input {
  margin-top: 0.2rem;
  accent-color: #db711f;
}

.skillup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #eef2f7;
  background: #fafbfd;
}

.skillup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.skillup-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

.skillup-btn--primary {
  background: linear-gradient(135deg, #db711f, #b85a0f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(219, 113, 31, 0.28);
}

.skillup-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(219, 113, 31, 0.35);
}

.skillup-btn--ghost {
  background: #fff;
  color: #475569;
  border: 1.5px solid #e2e8f0;
}

.skillup-btn--ghost:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.skillup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.skillup-overlay.is-visible {
  display: flex;
}

.skillup-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #db711f;
  border-radius: 50%;
  animation: skillupSpin 0.8s linear infinite;
}

@keyframes skillupSpin {
  to { transform: rotate(360deg); }
}

.skillup-overlay p {
  color: #fff;
  font-weight: 600;
  margin: 0;
}

.skillup-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.mb-field { margin-bottom: 1.1rem; }

.skillup-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .skillup-upload-grid { grid-template-columns: 1fr; }
}

.skillup-upload__label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.25rem;
}

.skillup-upload__hint {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.skillup-upload__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 150px;
  padding: 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  margin: 0;
}

.skillup-upload__box:hover,
.skillup-upload__box:has(input:focus) {
  border-color: #db711f;
  background: #fffbf7;
}

.skillup-upload__box i {
  font-size: 1.6rem;
  color: #db711f;
}

.skillup-upload__text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.skillup-upload__name {
  font-size: 0.75rem;
  color: #64748b;
  word-break: break-all;
  max-width: 100%;
}

.skillup-upload__box--photo {
  position: relative;
  overflow: hidden;
}

.skillup-upload__preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #db711f;
  margin-bottom: 0.25rem;
}

.skillup-upload__box.has-file {
  border-color: #db711f;
  background: rgba(219, 113, 31, 0.04);
}
