/* Fluxo Dev Web — formulário Web/Dev, prévia Mac e finalização escura */

/* —— Passo 1 (Info) no fluxo Web/Dev —— */
.modal--webdev-flow .project-form--webdev-info .form-group label[for="project-name"]::before,
.modal--webdev-flow .project-form--webdev-info .form-group label[for="project-desc"]::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.35rem;
  color: #6c3bff;
}

.modal--webdev-flow .project-form--webdev-info .form-group label[for="project-name"]::before {
  content: '\f1ad';
}

.modal--webdev-flow .project-form--webdev-info .form-group label[for="project-desc"]::before {
  content: '\f15c';
}

.modal--webdev-flow .project-form--webdev-info .form-group label[for="project-color"]::before {
  content: '\f53f';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 0.35rem;
  color: #6c3bff;
}

.modal--webdev-flow .project-form--webdev-info .upload-zone--single .upload-placeholder i {
  color: #6c3bff;
}

/* —— Formulário Web/Dev —— */
#step-2-webdev .step-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.webdev-config-form .config-block-title .section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.4rem;
  border-radius: 6px;
  background: rgba(108, 59, 255, 0.12);
  color: #6c3bff;
  font-size: 0.75rem;
  font-weight: 800;
}

.resource-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.resource-chip {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.resource-chip.active {
  background: rgba(108, 59, 255, 0.12);
  border-color: #6c3bff;
  color: #6c3bff;
}

.resource-chip.active::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.65rem;
  margin-right: 0.35rem;
}

#webdev-config-form .category-add {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

#webdev-config-form .category-add .btn-chip-add {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #6c3bff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

#webdev-config-form .category-add .btn-chip-add:hover {
  text-decoration: underline;
}

.secondary-colors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.secondary-color-slot {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  cursor: pointer;
  position: relative;
}

.secondary-color-slot::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #9ca3af;
  font-weight: 300;
}

.secondary-color-slot.has-color::after {
  display: none;
}

.webdev-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 520px) {
  .webdev-feature-grid {
    grid-template-columns: 1fr;
  }
}

.webdev-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.webdev-feature-card.is-checked {
  border-color: #6c3bff;
  background: rgba(108, 59, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(108, 59, 255, 0.2);
}

.webdev-feature-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(108, 59, 255, 0.1);
  color: #6c3bff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.webdev-feature-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.webdev-feature-card__body strong {
  font-size: 0.82rem;
  color: var(--text-primary);
}

.webdev-feature-card__body span {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  line-height: 1.35;
}

.webdev-feature-card__check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: transparent;
  font-size: 0.65rem;
  transition: all 0.2s;
}

.webdev-feature-card.is-checked .webdev-feature-card__check {
  background: #6c3bff;
  border-color: #6c3bff;
  color: #fff;
}

/* —— Prévia Mac —— */
.preview-visual-layout--webdev {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.preview-webdev-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(108, 59, 255, 0.08);
  border: 1px solid rgba(108, 59, 255, 0.18);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary, #555);
}

.preview-webdev-banner i {
  color: #6c3bff;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.preview-webdev-banner strong {
  color: var(--text-primary, #111);
}

.preview-side-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.preview-side-card__title-row .preview-side-card__title {
  margin: 0;
}

.btn-preview-detalhes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: none;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c3bff;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}

.btn-preview-detalhes:hover {
  background: rgba(108, 59, 255, 0.08);
}

.btn-preview-detalhes i {
  font-size: 0.65rem;
}

.mac-mockup {
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #2d2d2d 0%, #1a1a1a 100%);
  padding: 10px 10px 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.mac-mockup__bezel {
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mac-mockup__camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f3f46;
  box-shadow: inset 0 0 0 1px #52525b;
}

.mac-mockup__screen {
  background: #fff;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  min-height: 280px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 10px;
  line-height: 1.4;
}

.mac-site-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.mac-site-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 0 1 auto;
}

.mac-site-logo__img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

.mac-site-logo__icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--preview-brand, #6c3bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.mac-site-logo__text {
  font-weight: 800;
  font-size: 9px;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-site-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mac-site-nav::-webkit-scrollbar {
  display: none;
}

.mac-nav-link {
  border: none;
  background: transparent;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}

.mac-nav-link--active {
  color: var(--preview-brand, #6c3bff);
  background: var(--preview-brand-muted, rgba(108, 59, 255, 0.1));
}

.mac-site-cta {
  flex-shrink: 0;
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 700;
  background: var(--preview-brand, #6c3bff);
  color: #fff;
  cursor: pointer;
}

.mac-site-panels-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #fff;
}

.mac-site-panels {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding: 10px;
  outline: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mac-site-panels::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.mac-site-panels:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(108, 59, 255, 0.35);
}

.mac-mockup__screen .mac-scroll-hint {
  margin: 0;
  padding: 0.35rem 0.5rem 0.5rem;
  text-align: center;
  font-size: 7px;
  color: rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.95));
  pointer-events: none;
  flex-shrink: 0;
  transition: opacity 0.25s;
}

.mac-scroll-hint.is-hidden {
  opacity: 0;
}

.mac-scroll-hint i {
  display: block;
  animation: mac-scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes mac-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(4px); opacity: 1; }
}

.mac-panel {
  display: none;
}

.mac-panel--active {
  display: block;
}

.mac-panel__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.mac-panel__text {
  margin: 0 0 8px;
  font-size: 9px;
  color: #475569;
  line-height: 1.45;
}

.mac-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8px;
  align-items: start;
}

@media (max-width: 400px) {
  .mac-hero {
    grid-template-columns: 1fr;
  }
}

.mac-hero__copy h2 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.mac-hero__copy p {
  margin: 0 0 8px;
  font-size: 8px;
  color: #64748b;
  line-height: 1.4;
}

.mac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mac-btn {
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.mac-btn--primary {
  background: var(--preview-brand, #6c3bff);
  color: #fff;
}

.mac-btn--ghost {
  background: transparent;
  color: var(--preview-brand, #6c3bff);
  border: 1px solid var(--preview-brand-soft, rgba(108, 59, 255, 0.35));
}

.mac-hero__cards {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mac-float-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
}

.mac-float-card__label {
  display: block;
  font-size: 6px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mac-float-card strong {
  font-size: 12px;
  color: #0f172a;
}

.mac-float-card--gauge strong {
  color: var(--preview-brand, #6c3bff);
}

.mac-gauge {
  height: 4px;
  margin-top: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--preview-brand, #6c3bff) 98%, #e2e8f0 98%);
}

.mac-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.mac-tech-pill {
  font-size: 6px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.mac-tech-pill i {
  font-size: 4px;
  color: var(--preview-brand, #6c3bff);
}

.mac-service-grid,
.mac-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.mac-service-card,
.mac-project-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.mac-service-card:hover,
.mac-project-card:hover {
  border-color: var(--preview-brand-soft, rgba(108, 59, 255, 0.4));
}

.mac-service-card i {
  font-size: 10px;
  color: var(--preview-brand, #6c3bff);
  margin-bottom: 4px;
}

.mac-service-card h4 {
  margin: 0 0 2px;
  font-size: 8px;
  font-weight: 700;
}

.mac-service-card p {
  margin: 0;
  font-size: 6px;
  color: #64748b;
}

.mac-project-card span {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: #0f172a;
}

.mac-project-card small {
  font-size: 6px;
  color: #94a3b8;
}

.mac-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mac-check-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #334155;
  margin-bottom: 4px;
}

.mac-check-list i {
  color: var(--preview-brand, #6c3bff);
  font-size: 7px;
}

.mac-blog-list article {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.mac-blog-list article strong {
  display: block;
  font-size: 8px;
}

.mac-blog-list article span {
  font-size: 6px;
  color: #94a3b8;
}

.mac-toast {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 5;
  max-width: 90%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mac-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.preview-about__type--badge {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  background: var(--preview-brand-muted, rgba(108, 59, 255, 0.12));
  color: var(--preview-brand, #6c3bff) !important;
}

.preview-side-card--highlight {
  box-shadow: 0 0 0 2px rgba(108, 59, 255, 0.45);
  transition: box-shadow 0.3s ease;
}

.preview-includes--grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  flex-direction: unset;
}

.preview-includes--grid li {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  padding: 0.35rem 0.2rem;
}

.preview-includes--grid .preview-include-icon {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .preview-includes--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cor da marca — Mac + painéis laterais da prévia web */
.preview-brand-scope {
  --preview-brand-muted: rgba(108, 59, 255, 0.12);
  --preview-brand-soft: rgba(108, 59, 255, 0.32);
}

#preview-container .preview-about__type--badge,
.preview-brand-scope .preview-about__type--badge {
  color: var(--preview-brand);
}

/* —— Finalização escura (Dev Web) —— */
.modal-content--demo.modal--finish-dark {
  background: #0c0c10;
  color: #e4e4e7;
  border-color: #27272a;
}

.modal--finish-dark .modal-header--compact h2,
.modal--finish-dark .modal-header--compact p {
  color: #fafafa;
}

.modal--finish-dark .modal-stepper {
  border-bottom-color: #27272a;
}

.modal--finish-dark .stepper-item {
  color: #71717a;
}

.modal--finish-dark .stepper-item.active {
  color: #c4b5fd;
  border-bottom-color: #7c3aed;
}

.modal--finish-dark .modal-close {
  color: #a1a1aa;
}

#step-5.finish-step--dark .finish-hero__icon {
  background: rgba(108, 59, 255, 0.2);
  color: #a78bfa;
}

#step-5.finish-step--dark .finish-hero__title {
  color: #fafafa;
}

#step-5.finish-step--dark .finish-hero__desc {
  color: #a1a1aa;
}

#step-5.finish-step--dark .finish-section__label {
  color: #a78bfa;
}

#step-5.finish-step--dark .finish-summary-card {
  background: #141418;
  border-color: #27272a;
}

#step-5.finish-step--dark .finish-summary-card__top,
#step-5.finish-step--dark .finish-summary-card__meta {
  border-color: #27272a;
}

#step-5.finish-step--dark .finish-summary-card__icon {
  background: rgba(108, 59, 255, 0.2);
  color: #c4b5fd;
}

#step-5.finish-step--dark #finish-service-badge,
#step-5.finish-step--dark .finish-meta-row__value,
#step-5.finish-step--dark .finish-includes h5 {
  color: #f4f4f5;
}

#step-5.finish-step--dark .finish-meta-row__label {
  color: #71717a;
}

#step-5.finish-step--dark .finish-price-block__label {
  color: #a1a1aa;
}

#step-5.finish-step--dark .finish-price-block__value {
  color: #c4b5fd;
}

#step-5.finish-step--dark .finish-includes__list li {
  color: #d4d4d8;
}

#step-5.finish-step--dark .finish-includes__icon {
  background: rgba(108, 59, 255, 0.25);
  color: #c4b5fd;
}

#step-5.finish-step--dark .finish-callout {
  background: rgba(108, 59, 255, 0.12);
  border-color: rgba(108, 59, 255, 0.25);
  color: #d4d4d8;
}

#step-5.finish-step--dark .finish-callout i {
  color: #a78bfa;
}

#step-5.finish-step--dark label,
#step-5.finish-step--dark .finish-textarea,
#step-5.finish-step--dark input,
#step-5.finish-step--dark select {
  color: #e4e4e7;
}

#step-5.finish-step--dark input,
#step-5.finish-step--dark .finish-textarea,
#step-5.finish-step--dark select {
  background: #18181b;
  border-color: #3f3f46;
}

#step-5.finish-step--dark .finish-info-box {
  background: rgba(108, 59, 255, 0.1);
  border-color: rgba(108, 59, 255, 0.2);
  color: #a1a1aa;
}

#step-5.finish-step--dark .finish-info-box i {
  color: #a78bfa;
}

#step-5.finish-step--dark .finish-contact-card,
#step-5.finish-step--dark .finish-schedule-card {
  background: #18181b;
  border-color: #3f3f46;
}

#step-5.finish-step--dark .finish-contact-card.is-selected,
#step-5.finish-step--dark .finish-schedule-card.is-selected {
  border-color: #7c3aed;
  background: rgba(108, 59, 255, 0.12);
}

#step-5.finish-step--dark .finish-contact-card__body strong,
#step-5.finish-step--dark .finish-schedule-card strong {
  color: #f4f4f5;
}

#step-5.finish-step--dark .finish-timeline li {
  color: #d4d4d8;
}

#step-5.finish-step--dark .finish-timeline__icon {
  background: rgba(108, 59, 255, 0.2);
  color: #c4b5fd;
}

#step-5.finish-step--dark .finish-security-inline {
  color: #71717a;
}

.finish-agendar-card.hidden {
  display: none !important;
}

.finish-agendar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #141418;
  border: 1px solid #27272a;
}

.finish-agendar__illus {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(108, 59, 255, 0.25), rgba(59, 130, 246, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #a78bfa;
  flex-shrink: 0;
}

.finish-agendar p {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.btn-finish-schedule {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 10px;
  background: #6c3bff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-finish-schedule:hover {
  filter: brightness(1.08);
}

.modal--finish-dark .modal-footer.modal-footer--finish-step {
  border-top-color: #27272a;
}

.modal--finish-dark .modal-footer.modal-footer--finish-step .btn-modal-back {
  background: transparent;
  border-color: #3f3f46;
  color: #e4e4e7;
}

.modal--finish-dark .modal-footer.modal-footer--finish-step .btn-modal-next {
  background: #6c3bff !important;
  color: #fff !important;
  border: none;
}

.modal--finish-dark .modal-footer.modal-footer--finish-step .btn-modal-next:hover {
  background: #5b2ee6 !important;
  color: #fff !important;
}

.modal--finish-dark .modal-security {
  color: #71717a;
}

#step-5.finish-step--dark {
  display: flex;
  flex-direction: column;
}

#step-5.finish-step--dark .finish-hero {
  order: 1;
}

#step-5.finish-step--dark .finish-order-summary {
  order: 2;
}

#step-5.finish-step--dark .finish-order-idea {
  order: 3;
}

#step-5.finish-step--dark .finish-order-contact {
  order: 4;
}

#step-5.finish-step--dark .finish-order-pref {
  order: 5;
}

#step-5.finish-step--dark .finish-order-schedule {
  order: 6;
}

#step-5.finish-step--dark .finish-order-next {
  order: 7;
}

#step-5.finish-step--dark .finish-order-agendar {
  order: 8;
}

#step-5.finish-step--dark .finish-security-inline {
  order: 9;
}
