/* ══════════════════════════════════════════════════════════════
   SOURCE DESK — shared widget styles
   Used on index.html (#find) and contact.html.
   Depends on host page defining: --ink --deep --steel --blue --blue-glow
   --amber --amber-hot --paper --paper-soft --muted --display --body --ease
   ══════════════════════════════════════════════════════════════ */

.find { position: relative; }
.find-inner { max-width: 920px; margin: 0 auto; position: relative; z-index: 1; }
.find-head {
  text-align: left;
  max-width: 520px;
  margin-bottom: clamp(40px, 7vh, 64px);
}
.find-head .eyebrow {
  color: rgba(158,223,255,0.5); margin-bottom: 14px;
  justify-content: flex-start;
}
.find-head h2, .find-title {
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: -0.05em; line-height: 0.94;
  margin: 0 0 18px;
  color: #fff;
}
.find-head-note {
  max-width: 42ch; margin: 0;
  font-size: 16px; line-height: 1.65;
  color: rgba(238,243,246,0.52);
}

/* Shell — command palette feel */
.find-shell {
  border-radius: 4px;
  border: 1px solid rgba(158,223,255,0.12);
  background: rgba(8, 14, 22, 0.72);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 40px 100px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(158,223,255,0.06);
  overflow: hidden;
}

/* Segmented steps */
.find-steps {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px; padding: 10px;
  background: rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.find-step {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; border-radius: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(238,243,246,0.38);
  transition: background 0.2s, color 0.2s;
}
.find-step i {
  width: 20px; height: 20px; border-radius: 999px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; font-style: normal;
  background: rgba(255,255,255,0.06); color: rgba(238,243,246,0.45);
}
.find-step.is-on { color: #fff; background: rgba(255,255,255,0.08); }
.find-step.is-on i { background: var(--blue); color: var(--ink); }
.find-step.is-done { color: rgba(238,243,246,0.7); }
.find-step.is-done i { background: rgba(42,143,196,0.22); color: var(--blue-glow); }

.find-stages { position: relative; }
.find-stage { display: none; }
.find-stage.is-active { display: block; animation: findIn 0.35s var(--ease); }
@keyframes findIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.find-panel, .find-form-card {
  padding: 28px 28px 24px;
  border: 0; background: transparent;
}
.find-panel-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 4px; color: #fff; text-transform: none;
}
.find-panel-note {
  font-size: 14px; color: rgba(238,243,246,0.45); margin-bottom: 14px;
}

.find-scope {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.find-scope-card {
  display: grid; gap: 8px; align-content: start; text-align: left;
  padding: 18px 16px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(238,243,246,0.78);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  cursor: pointer; width: 100%;
}
.find-scope-card:hover { border-color: rgba(126,200,240,0.35); background: rgba(255,255,255,0.05); color: #fff; }
.find-scope-card.is-on {
  border-color: rgba(42,143,196,0.55);
  background: rgba(42,143,196,0.14);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(42,143,196,0.12);
}
.find-scope-ico {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  color: rgba(158,223,255,0.7);
  flex-shrink: 0;
}
.find-scope-card.is-on .find-scope-ico { background: rgba(42,143,196,0.25); color: var(--blue-glow); }
.find-scope-ico svg, .find-scope-card svg { width: 18px !important; height: 18px !important; display: block; flex-shrink: 0; }
.find-scope-card strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.find-scope-card > span:last-child { font-size: 13px; line-height: 1.45; color: rgba(238,243,246,0.48); }
.find-scope-card.is-on > span:last-child { color: rgba(238,243,246,0.62); }

.find-selected {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 11px 12px; margin: 8px 0 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 14px; color: rgba(238,243,246,0.55);
}
.find-selected strong { color: #fff; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: rgba(42,143,196,0.18); }

.find-need-fields { display: grid; gap: 14px; margin-bottom: 8px; }
.find-need-group { display: none; gap: 14px; }
.find-need-group.is-on { display: grid; }
.find-need-hint {
  font-size: 13px; line-height: 1.5; color: rgba(238,243,246,0.42);
  padding: 10px 12px; border-radius: 8px;
  background: rgba(42,143,196,0.08); border: 1px solid rgba(42,143,196,0.14);
}

.find-field { display: grid; gap: 6px; }
.find-field label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(238,243,246,0.4);
}
.find-field .req { color: #7ec8f0; }
.find-field .opt { color: rgba(238,243,246,0.35); text-transform: none; letter-spacing: 0; font-size: 11px; }
.find-field input, .find-field textarea, .find-field select {
  width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: #fff;
  font: 400 15px/1.4 var(--body); padding: 12px 14px; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.find-field textarea { min-height: 110px; resize: vertical; }
.find-field input:focus, .find-field textarea:focus, .find-field select:focus {
  border-color: rgba(126,200,240,0.45);
  background: rgba(255,255,255,0.055);
  box-shadow: 0 0 0 3px rgba(42,143,196,0.12);
}
.find-field input::placeholder, .find-field textarea::placeholder { color: rgba(238,243,246,0.28); }
.find-error { display: none; font-size: 12px; color: #f0a0a0; }
.find-field.is-invalid .find-error { display: block; }
.find-field.is-invalid input, .find-field.is-invalid textarea {
  border-color: rgba(220,100,100,0.55);
}

.find-photo-field {
  display: grid; gap: 6px;
  margin-top: 4px;
}
.find-photo-field > label:first-child {
  font-size: 12px; letter-spacing: 0.04em; text-transform: none;
  color: rgba(238,243,246,0.55); font-weight: 500;
}
.find-photo-drop {
  display: flex; align-items: center; gap: 10px;
  text-align: left;
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1px dashed rgba(158,223,255,0.28);
  background: rgba(255,255,255,0.03);
  color: rgba(238,243,246,0.55); font-size: 13px; line-height: 1.35;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.find-photo-drop svg {
  width: 18px; height: 18px; flex-shrink: 0;
  opacity: 0.7;
}
.find-photo-drop:hover { border-color: rgba(126,200,240,0.5); color: #fff; background: rgba(42,143,196,0.08); }
.find-photo-drop input { display: none; }
.find-photo-list { display: flex; flex-wrap: wrap; gap: 6px; }
.find-photo-list:empty { display: none; }
.find-photo-list span,
.find-photo-chip {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  background: rgba(255,255,255,0.06); color: rgba(238,243,246,0.7);
}
.find-photo-note { font-size: 11px; color: rgba(238,243,246,0.35); line-height: 1.4; margin: 0; }

.find-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.find-nav-right { display: flex; gap: 8px; margin-left: auto; }
.find-btn {
  min-height: 42px; padding: 0 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}
.find-btn-primary {
  background: var(--blue); color: var(--ink);
}
.find-btn-primary:hover { background: var(--blue-glow); }
.find-btn-primary:disabled {
  opacity: 0.28; cursor: not-allowed;
}
.find-btn-ghost {
  background: transparent; color: rgba(238,243,246,0.65);
  border: 1px solid rgba(255,255,255,0.1);
}
.find-btn-ghost:hover { color: #fff; border-color: rgba(158,223,255,0.35); }

.find-summary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 16px;
}
.find-summary-3 { grid-template-columns: 1fr; }
.find-summary div {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.find-summary span {
  display: block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(238,243,246,0.38); margin-bottom: 4px;
}
.find-summary strong { font-size: 14px; font-weight: 600; color: #fff; }

.find-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px;
}
.find-grid .full { grid-column: 1 / -1; }

.find-actions {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.find-actions-left { display: grid; gap: 10px; }
.find-submit {
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  background: var(--blue); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.find-submit:hover { background: var(--blue-glow); }
.find-submit:disabled { opacity: 0.5; cursor: wait; }
.find-foot {
  font-size: 12px; line-height: 1.5; color: rgba(238,243,246,0.4);
  max-width: 28ch;
}
.find-foot a { color: var(--blue-glow); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .find-panel, .find-form-card { padding: 20px 16px 18px; }
  .find-scope { grid-template-columns: 1fr; }
  .find-grid { grid-template-columns: 1fr; }
  .find-summary { grid-template-columns: 1fr; }
  .find-head h2, .find-title { font-size: clamp(2.2rem, 9vw, 3.1rem); }
  .find-steps {
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }
  .find-step span { font-size: 11px; }
  .find-nav {
    flex-wrap: wrap;
    gap: 10px;
  }
  .find-nav-right { width: 100%; }
  .find-btn { width: 100%; justify-content: center; }
}
