/**
 * SYLWORK — Professional Profile wizard polish
 * Complements inline styles in apply.html
 */

/* Brand logo in header */
.page-header .logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.page-header .logo-text .syl { color: #22c55e; }
.page-header .logo-text .work { color: #ffffff; }

.page-header h1 {
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-header .badge {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(99, 102, 241, 0.2));
  border-color: rgba(34, 197, 94, 0.25);
}

/* Progress */
.progress-wrap {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.progress-fill {
  background: linear-gradient(90deg, #22c55e, #6366f1, #0ea5e9) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.45);
}

.step-dot {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  transition: background 0.15s, color 0.15s, transform 0.12s;
}

.step-dot:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.step-dot.active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(99, 102, 241, 0.3)) !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.step-dot.done {
  color: #86efac !important;
}

/* Wizard card */
.wizard-card {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  overflow: hidden;
}

.step-header .icon-wrap {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(99, 102, 241, 0.25)) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.step-header h2 {
  letter-spacing: -0.03em;
}

/* Form controls */
.wizard-card label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wizard-card input[type="text"],
.wizard-card input[type="email"],
.wizard-card input[type="tel"],
.wizard-card input[type="number"],
.wizard-card input[type="date"],
.wizard-card input[type="url"],
.wizard-card input[type="password"],
.wizard-card select,
.wizard-card textarea {
  border-radius: 12px !important;
  border: 1.5px solid var(--gray-200, #e2e8f0) !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wizard-card input:focus,
.wizard-card select:focus,
.wizard-card textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18) !important;
  outline: none;
}

.wizard-card input.invalid,
.wizard-card select.invalid,
.wizard-card textarea.invalid {
  border-color: #e11d48 !important;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12) !important;
}

/* Buttons */
.wizard-footer .btn,
.wizard-card .btn {
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.wizard-footer .btn.primary,
.wizard-card .btn.primary,
#nextBtn,
#confirmAppBtn {
  background: linear-gradient(135deg, #22c55e, #16a34a 40%, #4f46e5) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.wizard-footer .btn.primary:hover,
#nextBtn:hover,
#confirmAppBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.35);
}

.wizard-footer .btn.ghost,
#prevBtn {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

/* Upload zones */
.upload-zone,
.file-drop,
.drop-zone,
[class*="upload"] {
  border-radius: 14px !important;
  transition: border-color 0.15s, background 0.15s;
}

/* Review cards */
.review-section {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 12px;
}

.review-section-head {
  background: linear-gradient(90deg, #f8fafc, #eef2ff) !important;
}

/* Success */
.success-screen .big-icon {
  background: linear-gradient(135deg, #22c55e, #6366f1) !important;
  box-shadow: 0 12px 32px rgba(34, 197, 94, 0.3);
}

/* Top nav strip for logged-in users */
.pp-topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 18px 0;
  position: relative;
  z-index: 2;
}

.pp-topnav a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.pp-topnav a:hover {
  color: #fff;
}

.pp-topnav .pp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Mesh subtle green accent */
.bg-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 15% 8%, rgba(34, 197, 94, 0.22), transparent),
    radial-gradient(ellipse 70% 50% at 85% 15%, rgba(99, 102, 241, 0.28), transparent),
    radial-gradient(ellipse 60% 40% at 50% 95%, rgba(14, 165, 233, 0.18), transparent),
    #0f172a !important;
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 1.45rem !important;
  }
  .step-dots {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
}

/* Logged-in: form inside member shell */
body.pp-in-app {
  background: #f1f5f9 !important;
  overflow-x: hidden;
}
body.pp-in-app .bg-mesh {
  display: none !important;
}
body.pp-in-app .pp-main {
  max-width: none;
  width: 100%;
}
body.pp-in-app .container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 0 48px !important;
}
body.pp-in-app .page-header {
  text-align: left !important;
  margin-bottom: 18px !important;
  color: #0f172a !important;
}
body.pp-in-app .page-header .badge {
  background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(99,102,241,.14)) !important;
  border-color: rgba(99,102,241,.15) !important;
  color: #3730a3 !important;
}
body.pp-in-app .page-header .logo-text .syl { color: #22c55e !important; }
body.pp-in-app .page-header .logo-text .work { color: #0f172a !important; }
body.pp-in-app .page-header h1 {
  background: none !important;
  -webkit-text-fill-color: #0f172a !important;
  color: #0f172a !important;
  font-size: 1.5rem !important;
}
body.pp-in-app .page-header p {
  color: #64748b !important;
}
body.pp-in-app .page-header p strong {
  color: #0f172a !important;
}
body.pp-in-app .progress-wrap {
  background: #fff !important;
  border: 1px solid var(--line, #e2e8f0) !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.04);
}
body.pp-in-app .progress-top .step-label {
  color: #0f172a !important;
}
body.pp-in-app .progress-top .step-count {
  color: #64748b !important;
}
body.pp-in-app .step-dot {
  color: #64748b !important;
}
body.pp-in-app .step-dot.active {
  color: #312e81 !important;
}
body.pp-in-app .step-dot.done {
  color: #16a34a !important;
}
body.pp-in-app .wizard-card {
  box-shadow: 0 10px 30px rgba(15,23,42,.06) !important;
}
