/* ==========================================================================
   Aspect "Snap Your Setup" — single stylesheet
   Brand: raspberry pink #EE2656, near-black ink, Oswald headings, Inter body
   ========================================================================== */

:root {
  --pink: #EE2656;
  --pink-dark: #C91C46;
  --ink: #111315;
  --ink-soft: #3a3d40;
  --grey: #6b7075;
  --line: #e3e5e7;
  --paper: #ffffff;
  --wash: #f6f6f7;
  --ok: #1d7a3e;
  --radius: 10px;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* keep the hidden attribute winning over display:flex rules below */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wash);
  line-height: 1.55;
  font-size: 16px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { display: block; height: 44px; width: auto; }

.header-tag {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9ccce;
}

@media (max-width: 560px) {
  .header-tag { display: none; }
}

/* ---------- layout ---------- */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ---------- intro ---------- */

.intro { margin-bottom: 28px; }

.intro h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.intro h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 5px;
  background: var(--pink);
  margin-top: 12px;
}

.intro-copy {
  margin-top: 16px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- cards ---------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 18px;
}

.card h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}

/* ---------- dropzone with viewfinder corners ---------- */

.dropzone {
  position: relative;
  border-radius: 6px;
  background:
    linear-gradient(var(--ink), var(--ink)) top    left  / 26px 3px,
    linear-gradient(var(--ink), var(--ink)) top    left  / 3px 26px,
    linear-gradient(var(--ink), var(--ink)) top    right / 26px 3px,
    linear-gradient(var(--ink), var(--ink)) top    right / 3px 26px,
    linear-gradient(var(--ink), var(--ink)) bottom left  / 26px 3px,
    linear-gradient(var(--ink), var(--ink)) bottom left  / 3px 26px,
    linear-gradient(var(--ink), var(--ink)) bottom right / 26px 3px,
    linear-gradient(var(--ink), var(--ink)) bottom right / 3px 26px;
  background-repeat: no-repeat;
  background-color: var(--wash);
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropzone:hover, .dropzone:focus-visible, .dropzone.drag-over {
  background-color: #fdeef2;
  outline: none;
}

.dropzone.drag-over { background-color: #fbdce5; }

.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  padding: 16px;
  gap: 8px;
}

.dz-icon { width: 44px; height: 44px; color: var(--pink); }

.dz-hint { font-size: 13px; color: var(--grey); }

#preview-img {
  max-width: 100%;
  max-height: 320px;
  border-radius: 6px;
  display: block;
}

.btn-text {
  background: none;
  border: none;
  color: var(--pink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* ---------- review mode (after submitting) ---------- */

/* The photo card pins to the top of the screen so the visitor can compare
   the kit list with their photo while scrolling. */
#photo-card.locked {
  position: sticky;
  top: 10px;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(17, 19, 21, 0.16);
  padding: 10px 12px;
}

#photo-card.locked h2 { display: none; }

#photo-card.locked .dropzone {
  pointer-events: none;
  padding: 8px;
}

#photo-card.locked .dropzone-inner {
  min-height: 0;
  padding: 2px;
  gap: 0;
}

#photo-card.locked #preview-img { max-height: 24vh; }

#photo-card.locked .btn-text { display: none; }

/* Contact details collapsed to one line */
#details-summary {
  font-size: 14px;
  color: var(--grey);
}

#details-summary::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}

/* Leave room for the pinned photo when jumping to the results */
.results { scroll-margin-top: calc(24vh + 72px); }

/* ---------- form fields ---------- */

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
}

.field-wide { grid-column: 1 / -1; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.req { color: var(--pink); }
.opt { color: var(--grey); font-weight: 400; font-size: 12px; }

.field input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--paper);
  color: var(--ink);
}

.field input:focus, textarea:focus {
  outline: 2px solid var(--pink);
  outline-offset: 0;
  border-color: var(--pink);
}

.turnstile-wrap { margin-top: 18px; }

/* ---------- errors ---------- */

.field-error, .form-error {
  color: #b3123d;
  font-size: 14px;
  margin-top: 8px;
}

.form-error {
  background: #fdeef2;
  border: 1px solid #f5c2d0;
  border-radius: 6px;
  padding: 12px 14px;
  margin-top: 4px;
}

/* ---------- buttons ---------- */

.submit-row { text-align: center; margin-top: 4px; }

.btn-primary {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 15px 44px;
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  transition: background 0.15s ease;
}

.btn-primary:hover:not(:disabled) { background: var(--pink-dark); }

.btn-primary:disabled {
  background: #cfd2d4;
  cursor: not-allowed;
}

.submit-hint { font-size: 13px; color: var(--grey); margin-top: 8px; }

.btn-secondary {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-secondary:hover:not(:disabled) { background: var(--ink-soft); }
.btn-secondary:disabled { background: #cfd2d4; cursor: not-allowed; }

/* ---------- loading ---------- */

.loading { text-align: center; padding: 48px 0; }

.loading-sub { color: var(--grey); font-size: 14px; margin-top: 4px; }

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 4px solid var(--line);
  border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}

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

/* ---------- results ---------- */

.results-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.results-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--pink);
  margin-top: 8px;
}

.category-group {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.category-group h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.item-list { list-style: none; }

.item-list li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.item-list li:first-child { border-top: none; }

.item-qty {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ink);
  background: var(--wash);
  border-radius: 5px;
  padding: 1px 8px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc strong { font-weight: 600; }

.item-evidence {
  display: block;
  font-size: 12.5px;
  color: var(--grey);
}

.quality-note, .set-dressing {
  font-size: 14px;
  color: var(--grey);
  margin: 12px 4px;
}

.set-dressing::before { content: "Not equipment: "; font-weight: 600; }

/* ---------- notes card ---------- */

.notes-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-attach {
  margin-top: 0;
  background: var(--wash);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-attach:hover:not(:disabled) { background: #ececee; }

.notes-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  word-break: break-all;
}

#notes-card .dz-hint { margin-top: 8px; }

/* ---------- technical summary ---------- */

.tech-summary {
  border-left: 4px solid var(--pink);
  margin-top: 18px;
}

.tech-summary h3 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.tech-summary p { font-size: 15px; color: var(--ink-soft); }

.tech-summary h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 14px 0 6px;
}

.tech-summary ul {
  list-style: none;
  font-size: 15px;
}

.tech-summary li {
  padding: 5px 0 5px 22px;
  position: relative;
  border-top: 1px solid var(--line);
}

.tech-summary li:first-child { border-top: none; }

.tech-summary li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

/* ---------- correction + sent note ---------- */

.correction-card { margin-top: 22px; }

.correction-card h3 { font-size: 16px; margin-bottom: 10px; }

.correction-thanks { color: var(--ok); font-weight: 600; margin-top: 10px; }

.sent-note {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 18px;
}

.sent-note h3 {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 8px;
}

.sent-note p { color: #d6d8da; font-size: 15px; }

.sent-note a { color: #fff; font-weight: 600; }

.contact-details { margin-top: 10px; }

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--grey);
  font-size: 13px;
}
