/* ═══════════════════════════════════════════════════════════
   GSV ONBOARDING WIZARD — onboarding.css
   Self-contained styles for the 5-step new client wizard.
   Matches Grand Strand Visuals design system exactly.
═══════════════════════════════════════════════════════════ */

/* ── Reset / Isolation ────────────────────────────────── */
.gsv-onboarding-wrap *,
.gsv-onboarding-wrap *::before,
.gsv-onboarding-wrap *::after {
  box-sizing: border-box;
}

/* ── Full-Screen Overlay ──────────────────────────────── */
.gsv-onboarding-wrap {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: #F7F8FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-y: auto;
}

.gsv-onboarding-wrap.hidden {
  display: none;
}

/* ── Wizard Card ──────────────────────────────────────── */
.gsv-wizard-card {
  background: #0F1B2D;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 2px;
  max-width: 540px;
  width: 100%;
  padding: 36px;
  position: relative;
}

/* ── Logo ─────────────────────────────────────────────── */
.gsv-wizard-logo {
  text-align: center;
  margin-bottom: 28px;
}

.gsv-wizard-logo-mark {
  display: inline-flex;
  margin-bottom: 10px;
}

.gsv-wizard-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}

.gsv-wizard-brand {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0F1B2D;
  line-height: 1;
  margin-bottom: 4px;
}

.gsv-wizard-brand-sub {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6888A8;
  line-height: 1;
}

/* ── Progress Bar ─────────────────────────────────────── */
.gsv-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 32px;
  position: relative;
}

.gsv-progress-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.gsv-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

/* Connector lines between dots */
.gsv-progress-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 1px;
  background: rgba(15, 27, 45, 0.12);
  transition: background 0.3s ease;
  z-index: 0;
}

.gsv-progress-step.completed:not(:last-child)::after,
.gsv-progress-step.active:not(:last-child)::after {
  background: rgba(104, 136, 168, 0.35);
}

/* Dot */
.gsv-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 27, 45, 0.18);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #3F4A5C;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.gsv-progress-step.active .gsv-progress-dot {
  border-color: #6888A8;
  background: #6888A8;
  color: #0F1B2D;
  box-shadow: 0 0 0 3px rgba(104, 136, 168, 0.18);
}

.gsv-progress-step.completed .gsv-progress-dot {
  border-color: #6888A8;
  background: rgba(104, 136, 168, 0.15);
  color: #6888A8;
}

/* Checkmark for completed */
.gsv-progress-step.completed .gsv-progress-dot::after {
  content: '';
  display: block;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid #6888A8;
  border-bottom: 1.5px solid #6888A8;
  transform: rotate(-45deg) translateY(-1px);
}

.gsv-progress-step.completed .gsv-progress-dot span {
  display: none;
}

/* Step label */
.gsv-progress-label {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #3F4A5C;
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
  transition: color 0.2s ease;
  min-height: 12px;
}

.gsv-progress-step.active .gsv-progress-label {
  color: #6888A8;
}

/* ── Step Panels ──────────────────────────────────────── */
.gsv-step {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.gsv-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.gsv-step.entering {
  animation: gsv-step-in 0.18s ease forwards;
}

@keyframes gsv-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Step Header ──────────────────────────────────────── */
.gsv-step-head {
  margin-bottom: 22px;
}

.gsv-step-title {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0F1B2D;
  margin: 0 0 6px 0;
}

.gsv-step-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #6B7684;
  margin: 0;
  line-height: 1.5;
}

/* ── Form Groups ──────────────────────────────────────── */
.gsv-form-group {
  margin-bottom: 16px;
}

.gsv-form-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6B7684;
  margin-bottom: 6px;
}

.gsv-form-label .gsv-req {
  color: #6888A8;
  margin-left: 2px;
}

.gsv-form-label .gsv-opt {
  color: #3F4A5C;
  font-size: 9px;
  letter-spacing: 0.06em;
  margin-left: 4px;
}

.gsv-input,
.gsv-select {
  width: 100%;
  background: #EEF1F5;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 2px;
  color: #0F1B2D;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.gsv-input::placeholder {
  color: #3F4A5C;
}

.gsv-input:hover,
.gsv-select:hover {
  border-color: rgba(15, 27, 45, 0.14);
}

.gsv-input:focus,
.gsv-select:focus {
  border-color: rgba(104, 136, 168, 0.5);
}

.gsv-input.error,
.gsv-select.error {
  border-color: rgba(220, 80, 80, 0.6);
}

.gsv-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.gsv-select option {
  background: #EEF1F5;
  color: #0F1B2D;
}

/* Two-column row */
.gsv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gsv-form-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #3F4A5C;
  margin-top: 5px;
  line-height: 1.4;
}

.gsv-field-error {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(220, 80, 80, 0.9);
  margin-top: 5px;
  line-height: 1.4;
  display: none;
}

.gsv-field-error.visible {
  display: block;
}

/* ── Sign In Link (Step 1) ─────────────────────────────── */
.gsv-signin-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #3F4A5C;
  margin-top: 8px;
  text-align: center;
}

.gsv-signin-link a {
  color: #6888A8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gsv-signin-link a:hover {
  color: #4A6A8F;
}

/* ── Project Type Cards (Step 3) ─────────────────────── */
.gsv-project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.gsv-project-card {
  background: #EEF1F5;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 2px;
  padding: 14px 14px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  -webkit-user-select: none;
}

.gsv-project-card:hover {
  border-color: rgba(104, 136, 168, 0.4);
}

.gsv-project-card.selected {
  border-color: #6888A8;
  background: rgba(104, 136, 168, 0.08);
}

.gsv-project-card-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: #3F4A5C;
  transition: color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsv-project-card.selected .gsv-project-card-icon {
  color: #6888A8;
}

.gsv-project-card-label {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7684;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.gsv-project-card.selected .gsv-project-card-label {
  color: #0F1B2D;
}

.gsv-select-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #3F4A5C;
  text-align: center;
  padding-top: 2px;
}

/* ── Upload Zone (Step 4) ────────────────────────────── */
.gsv-upload-zone {
  border: 1.5px dashed rgba(15, 27, 45, 0.12);
  border-radius: 2px;
  background: transparent;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}

.gsv-upload-zone:hover,
.gsv-upload-zone.drag-over {
  border-color: #6888A8;
  background: rgba(104, 136, 168, 0.05);
}

.gsv-upload-icon {
  color: #3F4A5C;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsv-upload-text {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #6B7684;
  margin-bottom: 4px;
}

.gsv-upload-subtext {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #3F4A5C;
}

.gsv-upload-subtext strong {
  color: #6888A8;
  font-weight: 500;
}

.gsv-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.gsv-upload-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #3F4A5C;
  margin-top: 10px;
  line-height: 1.5;
}

/* File Preview Grid */
.gsv-file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gsv-file-preview {
  position: relative;
  width: 64px;
  height: 64px;
  background: #EEF1F5;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gsv-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gsv-file-preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.gsv-file-preview-ext {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6888A8;
}

.gsv-file-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7684;
  transition: color 0.15s ease;
  padding: 0;
}

.gsv-file-remove:hover {
  color: #0F1B2D;
}

.gsv-skip-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #3F4A5C;
  text-align: center;
  display: block;
  margin-top: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.gsv-skip-link:hover {
  color: #6B7684;
}

/* ── Terms (Step 5) ──────────────────────────────────── */
.gsv-terms-scrollbox {
  background: #EEF1F5;
  border: 1px solid rgba(15, 27, 45, 0.08);
  border-radius: 2px;
  padding: 16px;
  height: 240px;
  overflow-y: auto;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #6B7684;
  margin-bottom: 16px;
  white-space: pre-wrap;
}

.gsv-terms-scrollbox::-webkit-scrollbar {
  width: 4px;
}

.gsv-terms-scrollbox::-webkit-scrollbar-track {
  background: transparent;
}

.gsv-terms-scrollbox::-webkit-scrollbar-thumb {
  background: rgba(15, 27, 45, 0.12);
  border-radius: 2px;
}

.gsv-terms-scrollbox::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 27, 45, 0.18);
}

.gsv-terms-scrollbox h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #0F1B2D;
  margin: 0 0 12px 0;
}

.gsv-terms-scrollbox .terms-section {
  margin-bottom: 12px;
}

.gsv-terms-scrollbox .terms-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}

.gsv-terms-scrollbox .terms-section-body {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #777;
}

.gsv-terms-scrollbox .terms-footer {
  font-style: italic;
  color: #666;
  margin-top: 8px;
}

/* Checkbox */
.gsv-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}

.gsv-checkbox-input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: #EEF1F5;
  border: 1px solid rgba(15, 27, 45, 0.14);
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-top: 1px;
}

.gsv-checkbox-input:checked {
  background: #6888A8;
  border-color: #6888A8;
}

.gsv-checkbox-input:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border-right: 1.5px solid #0F1B2D;
  border-bottom: 1.5px solid #0F1B2D;
  transform: rotate(45deg);
}

.gsv-checkbox-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #6B7684;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}

/* ── Error Alert ──────────────────────────────────────── */
.gsv-error-alert {
  background: rgba(220, 60, 60, 0.08);
  border: 1px solid rgba(220, 60, 60, 0.25);
  border-radius: 2px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 120, 120, 0.9);
  margin-bottom: 14px;
  line-height: 1.5;
  display: none;
}

.gsv-error-alert.visible {
  display: block;
}

/* ── Wizard Actions ───────────────────────────────────── */
.gsv-wizard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.gsv-wizard-actions.single {
  justify-content: flex-end;
}

.gsv-wizard-actions.split {
  justify-content: space-between;
}

/* Primary Button */
.gsv-btn-primary {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: #6888A8;
  color: #0F1B2D;
  border: none;
  border-radius: 2px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gsv-btn-primary:hover:not(:disabled) {
  background: #4A6A8F;
}

.gsv-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.gsv-btn-primary.full-width {
  width: 100%;
  justify-content: center;
}

/* Secondary Button */
.gsv-btn-secondary {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  background: none;
  color: #6B7684;
  border: 1px solid rgba(15, 27, 45, 0.12);
  border-radius: 2px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.gsv-btn-secondary:hover {
  color: #0F1B2D;
  border-color: rgba(15, 27, 45, 0.264);
}

/* Spinner */
.gsv-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(15, 27, 45, 0.36);
  border-top-color: #0F1B2D;
  border-radius: 50%;
  animation: gsv-spin 0.6s linear infinite;
  display: none;
}

.gsv-spinner.visible {
  display: block;
}

@keyframes gsv-spin {
  to { transform: rotate(360deg); }
}

/* ── Validation Inline ────────────────────────────────── */
.gsv-step-error-count {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(220, 80, 80, 0.85);
  margin-top: 4px;
  text-align: right;
  display: none;
}

.gsv-step-error-count.visible {
  display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 480px) {
  .gsv-wizard-card {
    padding: 24px 20px;
  }

  .gsv-form-row,
  .gsv-form-row-3 {
    grid-template-columns: 1fr;
  }

  .gsv-project-grid {
    grid-template-columns: 1fr;
  }

  .gsv-progress-label {
    display: none;
  }

  .gsv-wizard-actions.split {
    flex-direction: row;
  }

  .gsv-btn-primary,
  .gsv-btn-secondary {
    padding: 10px 16px;
  }
}
