/* ═══════════════════════════════════════════════
   FileLift — Service Builder
═══════════════════════════════════════════════ */

.builder-page {
  min-height: 100vh;
  background: var(--bg-dark);
}

.builder-main {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 100px 20px 60px;
}

.builder-container {
  width: 100%;
  max-width: 680px;
}

/* ── Progress ── */
.builder-progress {
  margin-bottom: 40px;
}

.progress-track {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Step ── */
.builder-step { animation: fadeIn 0.25s ease; }

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

.step-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #F1F5F9;
  margin-bottom: 8px;
  line-height: 1.2;
}

.step-sub {
  font-size: 1rem;
  color: #94A3B8;
  margin-bottom: 32px;
}

/* ── Service Grid ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.service-option {
  background: #1E2D45;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}

.service-option:hover {
  border-color: rgba(249,115,22,0.4);
  background: #243550;
  transform: translateY(-2px);
}

.service-option.selected {
  border-color: var(--accent);
  background: rgba(249,115,22,0.1);
}

.sopt-icon {
  font-size: 1.8rem;
}

.sopt-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #CBD5E1;
  line-height: 1.3;
}

.service-option.selected .sopt-label {
  color: var(--accent);
}

/* ── Pill Grid ── */
.section-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.pill-option {
  padding: 10px 20px;
  background: #1E2D45;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  color: #CBD5E1;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.pill-option:hover {
  border-color: rgba(249,115,22,0.4);
  color: #F1F5F9;
}

.pill-option.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Textarea ── */
.builder-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  background: #1E2D45;
  border: 2px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #F1F5F9;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.2s;
  margin-bottom: 6px;
}

.builder-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.builder-textarea::placeholder {
  color: #475569;
}

.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ── Nav ── */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

/* ── Error ── */
.step-error {
  display: none;
  color: #FCA5A5;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 16px;
}

/* ── Already account ── */
.already-account {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.already-account a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.already-account a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 540px) {
  .step-title { font-size: 1.5rem; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .builder-main { padding: 90px 16px 40px; }
}
