/* ============================================
   START PROJECT — Form & Process Timeline
   ============================================ */

/* ── Page Layout ── */
.start-project-page {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 80px;
}

.start-project-header {
  text-align: center;
  margin-bottom: 64px;
}

.start-project-header h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.start-project-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.start-project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.start-project-back:hover {
  color: #fff;
}

.start-project-back i {
  transition: transform 0.3s ease;
}

.start-project-back:hover i {
  transform: translateX(-4px);
}

/* ── Main Content Grid ── */
.start-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Form Card ── */
.sp-form-card {
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sp-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #ec4899, #4f46e5);
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}

.sp-form-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.04), transparent 60%);
  pointer-events: none;
}

.sp-form-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.sp-form-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── Form Fields ── */
.sp-form-group {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.sp-form-label {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.sp-form-label .required {
  color: #ec4899;
  margin-left: 2px;
}

.sp-input,
.sp-select,
.sp-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  padding: 14px 16px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.sp-input::placeholder,
.sp-textarea::placeholder {
  color: rgba(161, 161, 170, 0.5);
}

.sp-input:focus,
.sp-select:focus,
.sp-textarea:focus {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.03);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.sp-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.sp-select option {
  background: #0a0a0f;
  color: var(--text-main);
}

.sp-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Row with two fields side by side */
.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* File Upload */
.sp-file-upload {
  position: relative;
  z-index: 1;
}

.sp-file-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.sp-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 20px;
  border: 1px dashed var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp-file-label:hover {
  border-color: #4f46e5;
  background: rgba(79, 70, 229, 0.03);
  color: var(--text-main);
}

.sp-file-label i {
  font-size: 1.2rem;
}

.sp-file-help {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 6px;
  opacity: 0.6;
}

.sp-file-name {
  display: none;
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: #22c55e;
  margin-top: 8px;
  align-items: center;
  gap: 6px;
}

.sp-file-name.visible {
  display: flex;
}

.sp-file-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  margin-left: 4px;
  transition: opacity 0.2s;
}

.sp-file-remove:hover {
  opacity: 0.7;
}

/* Submit Button */
.sp-submit-btn {
  width: 100%;
  background: var(--text-main);
  color: var(--bg-color);
  border: 1px solid var(--text-main);
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
  border-radius: 0;
}

.sp-submit-btn:hover {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.sp-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sp-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: none;
}

.sp-submit-btn:hover::before {
  animation: shimmer 0.8s ease;
}

/* Form Status Messages */
.sp-form-status {
  display: none;
  margin-top: 20px;
  padding: 20px;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.sp-form-status.success {
  display: block;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.sp-form-status.error {
  display: block;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.sp-success-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.sp-form-status h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Validation error */
.sp-field-error {
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  color: #ef4444;
  margin-top: 4px;
  display: none;
}

.sp-form-group.has-error .sp-input,
.sp-form-group.has-error .sp-select,
.sp-form-group.has-error .sp-textarea {
  border-color: #ef4444;
}

.sp-form-group.has-error .sp-field-error {
  display: block;
}

/* ============================================
   PROCESS TIMELINE — Vertical
   ============================================ */
.sp-timeline-section {
  position: relative;
}

.sp-timeline-header {
  margin-bottom: 40px;
}

.sp-timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sp-timeline-badge::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, #4f46e5, transparent);
}

.sp-timeline-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.sp-timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline Container */
.sp-timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical Line */
.sp-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--border-color) 0%,
    rgba(79, 70, 229, 0.4) 20%,
    rgba(79, 70, 229, 0.4) 80%,
    var(--border-color) 100%
  );
}

/* Timeline Step */
.sp-timeline-step {
  position: relative;
  padding: 16px 0 16px 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-timeline-step:last-child {
  padding-bottom: 0;
}

/* Step Dot */
.sp-timeline-dot {
  position: absolute;
  left: -32px;
  top: 20px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.4s ease;
  z-index: 2;
}

.sp-timeline-step:hover .sp-timeline-dot {
  border-color: #4f46e5;
  color: #818cf8;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.2);
  background: rgba(79, 70, 229, 0.08);
}

/* Step Number */
.sp-step-number {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: rgba(129, 140, 248, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

/* Step Content */
.sp-step-content {
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sp-timeline-step:hover .sp-step-content {
  border-color: var(--border-color);
  background: rgba(79, 70, 229, 0.02);
}

.sp-step-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.sp-timeline-step:hover .sp-step-title {
  color: #818cf8;
}

.sp-step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-timeline-step:hover .sp-step-desc,
.sp-timeline-step.active .sp-step-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 4px;
}

/* ── Step connector pulse animation ── */
.sp-timeline-step::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 20px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.15);
  transform: scale(0);
  transition: transform 0.4s ease;
  z-index: 1;
}

.sp-timeline-step:hover::before {
  transform: scale(1.8);
}

/* ── Guarantee Banner ── */
.sp-guarantee {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid var(--border-color);
  background: rgba(10, 10, 12, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-guarantee-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #22c55e;
  flex-shrink: 0;
}

.sp-guarantee-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sp-guarantee-text strong {
  color: var(--text-main);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .start-project-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sp-form-row {
    grid-template-columns: 1fr;
  }

  .sp-timeline-section {
    order: 2;
  }
}

@media (max-width: 768px) {
  .start-project-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .start-project-header {
    margin-bottom: 40px;
  }

  .start-project-header h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .sp-form-card {
    padding: 24px 20px;
  }

  .sp-form-row {
    grid-template-columns: 1fr;
  }

  .sp-timeline {
    padding-left: 32px;
  }

  .sp-timeline::before {
    left: 11px;
  }

  .sp-timeline-dot {
    left: -28px;
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .sp-timeline-step::before {
    left: -22px;
  }

  .sp-timeline-title {
    font-size: 1.4rem;
  }

  .sp-step-desc {
    max-height: none;
    opacity: 1;
    margin-top: 4px;
  }

  .sp-guarantee {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sp-form-card {
    padding: 20px 16px;
  }

  .sp-form-title {
    font-size: 1.2rem;
  }

  .sp-input,
  .sp-select,
  .sp-textarea {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .sp-submit-btn {
    padding: 14px 24px;
    font-size: 0.78rem;
  }
}
