/* Create-project page presentation. Last stylesheet on this page.
   Consolidates chrome for this route; does not change form logic. */
.project-create-page {
  --wizard-primary: #1e293b;
  --wizard-secondary: #334155;
  --cp-ink: #0f172a;
  --cp-muted: #475569;
  --cp-line: #e2e8f0;
  --cp-surface: #ffffff;
  --cp-page: #f8fafc;
  font-size: 16px;
}

.project-create-page .header-cta-btn { display: none; }

.project-create-page .create-project-shell {
  max-width: 1600px;
  width: 100%;
  margin: 36px auto 2.5rem;
  padding: 0 20px;
  box-sizing: border-box;
}

.project-create-page .wizard-page-intro {
  max-width: none;
  margin: 0 0 20px;
  padding: 0;
}

.project-create-page .wizard-intro-eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-create-page .wizard-intro-header { margin: 0 0 12px; }
.project-create-page .wizard-intro-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cp-ink);
}

.project-create-page #create-mode-banner,
.project-create-page .wizard-trust-copy {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 12px;
  display: block;
}
.project-create-page .wizard-trust-lead {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--cp-ink);
  line-height: 1.4;
}
.project-create-page .wizard-trust-detail {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cp-muted);
}

.project-create-page .wizard-account-strip { margin: 0; }
.project-create-page .wizard-account-strip:empty { display: none; }
.project-create-page .wizard-account-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cp-muted);
  overflow-wrap: anywhere;
}
.project-create-page .wizard-account-sep,
.project-create-page .wizard-account-ort-sep { font: inherit; color: inherit; }
.project-create-page .wizard-account-ort-sep { display: none; }
.project-create-page .wizard-account-identity,
.project-create-page .wizard-account-match { overflow-wrap: break-word; }
.project-create-page .wizard-account-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}
.project-create-page .wizard-account-icon { display: none; }
.project-create-page .wizard-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-create-page .wizard-account-btn {
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.project-create-page .wizard-account-btn--primary {
  background: #1e293b;
  color: #fff;
  border: 1px solid #1e293b;
}
.project-create-page .wizard-account-btn--secondary {
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.project-create-page .wizard-account-link {
  display: inline;
  margin-left: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.project-create-page .wizard-account-link:focus-visible,
.project-create-page .wizard-account-btn:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 3px;
  border-radius: 2px;
}

.project-create-page .wizard-guide-surface {
  background: var(--cp-surface);
  border: 1px solid var(--cp-line);
  border-radius: 16px;
  padding: 28px 32px 24px;
  box-sizing: border-box;
}

.project-create-page .draft-restore-banner {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  animation: none;
  z-index: auto;
  max-width: none;
  width: auto;
  margin: 0 0 16px;
  padding: 0;
}
.project-create-page .draft-restore-banner-inner {
  background: #f8fafc;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  box-shadow: none;
  padding: 10px 12px;
  gap: 8px 12px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: 0;
}
.project-create-page .draft-restore-icon { display: none; }
.project-create-page .draft-restore-text {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--cp-ink);
}
.project-create-page .draft-restore-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.project-create-page .draft-restore-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.project-create-page .draft-restore-btn-primary:focus-visible,
.project-create-page .draft-restore-link:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.project-create-page .wizard-progress-modern {
  position: static;
  top: auto;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--cp-line);
  box-shadow: none;
  padding: 0 0 16px;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  z-index: auto;
}
.project-create-page .step-label {
  margin: 0;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--cp-ink);
  overflow-wrap: anywhere;
  flex: 0 1 auto;
}
.project-create-page .step-dots {
  margin: 0;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
}
.project-create-page .step-dots .dot {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
  transform: none;
  box-shadow: none;
  background: #e2e8f0;
  color: #64748b;
}
.project-create-page .step-dots .dot.completed {
  background: #334155;
  color: #fff;
}
.project-create-page .step-dots .dot.active {
  transform: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1e293b;
  background: #1e293b;
  color: #fff;
}
.project-create-page .step-dots .dot::after {
  width: 0.4rem;
  right: -0.55rem;
}

.project-create-page .wizard-container {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.project-create-page .category-search-block { margin: 0 0 16px; }
.project-create-page .category-search-label {
  display: block;
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cp-ink);
}
.project-create-page .category-search-wrapper {
  margin: 0;
  padding: 0;
  max-width: none;
}
.project-create-page .category-search-field { position: relative; }
.project-create-page .category-search-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
  padding: 0.75rem 2.75rem 0.75rem 2.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.project-create-page .category-search-input:focus {
  box-shadow: none;
}
.project-create-page .category-search-input:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}
.project-create-page .category-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
.project-create-page .category-search-clear {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  background: #64748b;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.project-create-page .category-search-clear:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}
.project-create-page .category-step-instruction {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  max-width: none;
  text-align: left;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cp-muted);
}
.project-create-page .category-suggestion-panel {
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
}

.project-create-page .category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 4px 0 0;
}
.project-create-page .category-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid var(--cp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  transform: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.project-create-page .category-card .category-icon {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-create-page .category-card .category-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.project-create-page .category-card h3 {
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 4px;
  overflow-wrap: break-word;
  white-space: normal;
}
.project-create-page .category-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
  white-space: normal;
}
.project-create-page .category-card .popular-projects { display: none; }
.project-create-page .category-card:hover,
.project-create-page .category-card:active {
  transform: none;
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
}
.project-create-page .category-card.selected {
  border-color: #1e293b;
  border-width: 2px;
  padding: 15px 17px;
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #1e293b;
  transform: none;
}
.project-create-page .category-card.selected::after {
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: #1e293b;
  font-size: 0.7rem;
}
.project-create-page .category-card:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.project-create-page .templates-section {
  margin-top: 24px;
  padding-top: 8px;
}
.project-create-page .templates-section-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  color: var(--cp-ink);
}
.project-create-page .templates-section-hint {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cp-muted);
  text-align: left;
}
.project-create-page .templates-grid {
  display: grid;
  gap: 10px;
  max-width: none;
  margin: 0;
}
.project-create-page .template-option {
  padding: 14px 16px;
  border: 1px solid var(--cp-line);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transform: none;
}
.project-create-page .template-option.selected {
  border-color: #1e293b;
  border-width: 2px;
  background: #f8fafc;
  box-shadow: inset 3px 0 0 #1e293b;
}
.project-create-page .template-option:hover:not(.selected) {
  border-color: #94a3b8;
  background: #f8fafc;
}
.project-create-page .template-option:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}
.project-create-page .template-option-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-create-page .template-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.project-create-page .template-option-copy { flex: 1; min-width: 0; }
.project-create-page .template-option-name {
  font-weight: 600;
  color: var(--cp-ink);
  overflow-wrap: anywhere;
}
.project-create-page .template-option-meta {
  font-size: 14px;
  color: var(--cp-muted);
}
.project-create-page .template-option-check {
  color: #1e293b;
  font-size: 1rem;
}

.project-create-page .wizard-location-error {
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}
.project-create-page #wizPropertyId,
.project-create-page #wizAreaId {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.project-create-page .wizard-footer {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  background: transparent;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border: none;
  border-top: 1px solid var(--cp-line);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: auto;
}
.project-create-page .wizard-footer-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.project-create-page .wizard-footer button {
  padding: 0.7rem 1.25rem;
  min-height: 44px;
  transform: none;
  box-shadow: none;
}
.project-create-page .wizard-footer .btn-primary,
.project-create-page .wizard-footer .btn-success {
  background: #1e293b;
  color: #fff;
}
.project-create-page .wizard-footer .btn-primary:disabled,
.project-create-page .wizard-footer .btn-success:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.project-create-page .wizard-footer .btn-secondary {
  background: #fff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}
.project-create-page .wizard-footer button:hover:not(:disabled) {
  transform: none;
  box-shadow: none;
}
.project-create-page .wizard-footer button:focus-visible {
  outline: 2px solid #1e293b;
  outline-offset: 2px;
}

.project-create-page .review-section,
.project-create-page .guided-questions-container {
  max-width: none;
}

@media (max-width: 820px) {
  .project-create-page .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .project-create-page .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .project-create-page {
    --cp-mobile-nav-h: calc(72px + env(safe-area-inset-bottom, 0px) + var(--ios-safari-vv-gap, 0px));
    --cp-mobile-footer-h: 60px;
    scroll-padding-bottom: calc(var(--cp-mobile-nav-h) + var(--cp-mobile-footer-h) + 12px);
  }
  body.project-create-page.mobile-nav-active {
    padding-bottom: calc(var(--cp-mobile-nav-h) + var(--cp-mobile-footer-h) + 12px) !important;
  }
  body.project-create-page.mobile-nav-active:has(.wizard-footer[style*="display: none"]) {
    padding-bottom: calc(var(--cp-mobile-nav-h) + 12px) !important;
  }
  body.project-create-page.mobile-nav-active .mobile-bottom-nav {
    box-shadow: none;
    border-top: none;
  }
  .project-create-page .create-project-shell {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0 16px 16px;
  }
  .project-create-page:has(.wizard-footer[style*="display: none"]) {
    scroll-padding-bottom: calc(var(--cp-mobile-nav-h) + 16px);
  }
  .project-create-page .wizard-page-intro {
    margin: 0 0 12px;
    padding: 0;
  }
  .project-create-page .wizard-intro-header { margin: 0 0 12px; }
  .project-create-page .wizard-intro-title {
    font-size: 27px;
    line-height: 1.3;
  }
  .project-create-page #create-mode-banner,
  .project-create-page .wizard-trust-copy {
    padding: 0 !important;
    margin: 0 0 12px !important;
    background: none !important;
    border: none !important;
  }
  .project-create-page .wizard-trust-lead,
  .project-create-page .wizard-trust-detail,
  .project-create-page .wizard-account-line,
  .project-create-page .category-step-instruction {
    font-size: 16px;
    line-height: 1.45;
  }
  .project-create-page .wizard-trust-detail { margin: 6px 0 0; }
  .project-create-page .wizard-account-strip { margin: 0; }
  .project-create-page .wizard-account-line {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    overflow-wrap: break-word;
  }
  .project-create-page .wizard-account-sep { display: none; }
  .project-create-page .wizard-account-ort-sep { display: inline; }
  .project-create-page .wizard-account-match {
    display: block;
    max-width: 100%;
  }
  .project-create-page .wizard-account-link {
    margin-left: 0;
  }

  .project-create-page .wizard-guide-surface {
    padding: 12px 14px 10px;
    border-radius: 16px;
  }
  .project-create-page .wizard-container {
    padding: 0 !important;
    margin-top: 0 !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }

  .project-create-page #wizardDraftSlot,
  .project-create-page .draft-restore-banner,
  .project-create-page .draft-restore-banner-inner {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-grow: 0 !important;
    align-self: stretch;
  }
  .project-create-page .draft-restore-banner {
    margin: 0 0 12px !important;
    padding: 0 !important;
  }
  .project-create-page .draft-restore-banner-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    padding: 14px 16px !important;
    text-align: left !important;
  }
  .project-create-page .draft-restore-text {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 100%;
  }
  .project-create-page .draft-restore-actions {
    width: auto;
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
  }

  .project-create-page .wizard-progress-modern {
    position: static !important;
    box-shadow: none !important;
    padding: 0 0 8px !important;
    margin: 0 0 8px !important;
    gap: 8px !important;
  }
  .project-create-page .wizard-progress-modern .step-label {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
  }
  .project-create-page .step-dots {
    gap: 0.3rem 0.45rem;
  }

  .project-create-page .category-search-block { margin: 0 0 12px; }
  .project-create-page .category-search-label {
    font-size: 20px;
    margin: 0 0 8px;
  }
  .project-create-page .category-search-input { min-height: 48px; }
  .project-create-page .category-step-instruction { margin: 8px 0 0; }
  .project-create-page .category-grid {
    display: grid !important;
    flex-direction: unset !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
    margin-top: 8px;
  }
  .project-create-page .category-card,
  .project-create-page .category-card:hover,
  .project-create-page .category-card:active,
  .project-create-page .category-card.selected {
    display: flex !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .project-create-page .category-card.selected {
    padding: 11px 13px !important;
    border: 2px solid #1e293b !important;
    background: #f8fafc !important;
  }
  .project-create-page .category-card .category-icon {
    font-size: 16px !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
  }

  .project-create-page .wizard-footer {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--cp-mobile-nav-h) !important;
    padding: 8px 16px !important;
    padding-bottom: 8px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
    border-top: 1px solid var(--cp-line) !important;
    border-bottom: none !important;
    background: #fff !important;
    box-shadow: none !important;
    z-index: 999 !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }
  .project-create-page .wizard-footer-right {
    flex: 0 1 auto;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
  }
  .project-create-page .wizard-footer > div:empty {
    display: none !important;
  }
  .project-create-page .wizard-footer > .btn-secondary {
    flex: 0 0 auto;
  }
  .project-create-page .wizard-footer button {
    min-height: 40px !important;
    padding: 0.45rem 0.95rem !important;
  }
  .project-create-page .wizard-footer button span {
    display: inline !important;
  }
  .project-create-page .wizard-footer[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .project-create-page .wizard-footer-hint {
    font-size: 13px !important;
    max-width: 12rem;
    line-height: 1.3;
  }
  .project-create-page .question-navigation {
    margin-top: 12px;
    padding-bottom: 4px;
  }
  .project-create-page .wizard-step {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    animation: none !important;
  }
}
