/* ─── Vendor Application — form page styles ─────────────────────
   Loads after styles.css; reuses its custom properties and .btn.   */

.app-body {
  background: var(--cream);
  min-height: 100vh;
}

/* ─── Nav (slim variant) ────────────────────────────────────────── */
.app-nav .nav-list { justify-content: flex-start; }
.app-nav .nav-list li:last-child { margin-left: 0; }
.app-nav .nav-link { color: rgba(244, 237, 218, .75); }

/* ─── Header ────────────────────────────────────────────────────── */
.app-header {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(58px + clamp(36px, 8vw, 72px)) 20px 8px;
  text-align: center;
}

.app-eyebrow {
  font-family: var(--f-script);
  font-size: clamp(26px, 5vw, 34px);
  color: var(--brass);
  display: block;
  margin-bottom: 6px;
}

.app-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 4.6vw, 34px);
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 18px;
}

.app-intro {
  font-size: clamp(17px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--ink);
  text-align: left;
  white-space: pre-line;
}

/* ─── Shell ─────────────────────────────────────────────────────── */
.app-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px clamp(60px, 10vw, 110px);
}

/* ─── Progress rail (brass gallery-rail marker) ─────────────────── */
.progress {
  margin: clamp(24px, 5vw, 40px) 0 clamp(20px, 4vw, 32px);
}

.progress-label {
  display: block;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 10px;
}

.progress-rail {
  height: 2px;
  background: rgba(106, 69, 39, .25);
  position: relative;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 9%;
  background: var(--brass);
  transition: width .4s ease;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--brass);
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}

/* ─── Resume banner ─────────────────────────────────────────────── */
.resume-banner {
  margin-top: clamp(20px, 4vw, 32px);
  border: 1px solid var(--brass-soft);
  background: var(--cream-2);
  padding: 16px 18px;
  font-size: 17px;
  line-height: 1.5;
}

.resume-actions { margin-top: 10px; display: flex; gap: 22px; }

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 0;
  border-bottom: 1px solid var(--brass);
}

.link-btn--muted { color: var(--walnut); border-bottom-color: rgba(106, 69, 39, .4); }

/* ─── Section heading ───────────────────────────────────────────── */
.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 3.4vw, 24px);
  letter-spacing: .05em;
  color: var(--teal);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
}

/* ─── Fields ────────────────────────────────────────────────────── */
.field { margin-bottom: 22px; }

.field-label {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 7px;
}

.req { color: var(--brass); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field textarea,
.field select {
  width: 100%;
  font-family: var(--f-body);
  font-size: 17px; /* ≥16px prevents iOS zoom-on-focus */
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid rgba(106, 69, 39, .5);
  border-radius: 2px;
  padding: 12px 14px;
  min-height: 48px;
}

.field textarea { resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236A4527' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.link-btn:focus-visible,
.photo-add:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

/* Long notice blocks (merchandise standards, expectations) */
.field-html {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--brass-soft);
  padding: 4px 0 4px 16px;
  margin-bottom: 24px;
}

.field-html p { margin-bottom: 12px; }
.field-html ul { margin: 0 0 12px 22px; }
.field-html li { margin-bottom: 4px; }

/* Checkbox groups */
.field--group { border: none; }

.field--group legend { padding: 0; }

/* `.field label.check-row` outranks styles.css's contact-form rule
   `.field label` (which sets display:block + uppercase 11px). */
.field label.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 2px;
  margin-bottom: 0;
  min-height: 44px; /* tap target */
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  cursor: pointer;
}

.field label.check-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px; /* level with the first line of text */
  accent-color: var(--teal);
}

/* Validation */
.field-error {
  font-size: 15px;
  font-weight: 500;
  color: #9c2b19;
  margin-top: 6px;
}

.invalid input, .invalid textarea, .invalid select { border-color: #9c2b19; }

/* ─── Photos ────────────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.photo-cell {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  background: var(--cream-2);
}

.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: rgba(43, 33, 23, .82);
  color: var(--cream);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.photo-add { font-size: 12px; }

.hint {
  font-size: 15px;
  color: var(--walnut);
  margin-top: 8px;
}

/* ─── Footer buttons ────────────────────────────────────────────── */
.app-footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 5vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

#app-next, #app-submit { margin-left: auto; }

/* ─── Spinner ───────────────────────────────────────────────────── */
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(27, 77, 82, .25);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: app-spin .8s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* ─── Error / success panels ────────────────────────────────────── */
.app-error {
  margin-top: 26px;
  border: 1px solid #9c2b19;
  background: #fdf3f0;
  padding: 20px;
  font-size: 17px;
  line-height: 1.55;
}

.app-error-title {
  font-family: var(--f-display);
  font-size: 16px;
  letter-spacing: .06em;
  color: #9c2b19;
  margin-bottom: 8px;
}

.app-error .btn { margin-top: 14px; }

.app-success {
  text-align: center;
  padding: clamp(40px, 9vw, 90px) 0;
  font-size: 18px;
  line-height: 1.65;
}

.app-success p { max-width: 560px; margin: 0 auto 14px; }

.app-redirect-note { color: var(--walnut); font-size: 16px; }

.app-success .btn { margin-top: 22px; }
