/* ============================================================
   Zyndoe Merchant Application — Brand-matched stylesheet
   Brand tokens copied verbatim from zyndoe.com :root
   ============================================================ */

:root {
  /* Brand */
  --brand-neon: 110 100% 54%;
  --brand-neon-dim: 110 100% 54% / 0.15;
  --brand-neon-glow: 110 100% 54% / 0.35;

  /* Surfaces */
  --background: 0 0% 6%;
  --hero-bg: 0 0% 4%;
  --surface-dark: 0 0% 7%;
  --card: 0 0% 8%;
  --secondary: 0 0% 12%;
  --muted: 0 0% 14%;
  --border: 0 0% 16%;
  --input: 0 0% 16%;

  /* Text */
  --foreground: 210 40% 98%;
  --muted-foreground: 215.4 16.3% 76.9%;

  /* Status */
  --accent: 140 70% 12%;
  --destructive: 0 84.2% 60.2%;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, hsl(140 100% 12%), hsl(160 85% 20%), hsl(var(--brand-neon)));

  /* Geometry */
  --radius: 0.75rem;
  --max-width: 760px;
}

/* ============================================================
   Reset + base
   ============================================================ */

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: hsl(var(--brand-neon));
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.8;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   Layout
   ============================================================ */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  padding: 2rem 0;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--hero-bg));
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 80px;
  width: auto;
}

@media (max-width: 640px) {
  .site-header__logo img {
    height: 60px;
  }
}

.site-header__back {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background-color: hsl(var(--hero-bg));
  padding: 4rem 0 3rem;
  border-bottom: 1px solid hsl(var(--border));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, hsl(var(--brand-neon-dim)) 0%, transparent 60%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background-color: hsl(var(--brand-neon-dim));
  color: hsl(var(--brand-neon));
  border: 1px solid hsl(var(--brand-neon-dim));
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   Form
   ============================================================ */

.form {
  padding: 3rem 0 5rem;
}

.form-section {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.form-section:focus-within {
  border-color: hsl(var(--brand-neon-glow));
}

.form-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background-color: hsl(var(--surface-dark));
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color 0.15s ease;
}

.form-section__header:hover {
  background-color: hsl(var(--secondary));
}

.form-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background-color: hsl(var(--brand-neon-dim));
  color: hsl(var(--brand-neon));
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 0.875rem;
  border: 1px solid hsl(var(--brand-neon-glow));
}

.form-section__title {
  flex: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
}

.form-section__chevron {
  width: 20px;
  height: 20px;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.form-section[data-collapsed='true'] .form-section__chevron {
  transform: rotate(-90deg);
}

.form-section__body {
  padding: 1.75rem 1.5rem;
}

.form-section[data-collapsed='true'] .form-section__body {
  display: none;
}

/* ============================================================
   Form fields
   ============================================================ */

.field {
  margin-bottom: 1.25rem;
}

.field:last-child {
  margin-bottom: 0;
}

.field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.field__label .required {
  color: hsl(var(--brand-neon));
  margin-left: 0.25rem;
}

.field__hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.375rem;
}

.field__error {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin-top: 0.375rem;
  display: none;
}

.field[data-invalid='true'] .field__error {
  display: block;
}

.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea {
  border-color: hsl(var(--destructive));
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='number'],
input[type='date'],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: hsl(var(--brand-neon));
  box-shadow: 0 0 0 3px hsl(var(--brand-neon-dim)), 0 0 24px -8px hsl(var(--brand-neon-glow));
}

textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
}

select {
  appearance: none;
  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 fill='none' stroke='%23BBC2CC' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Field grid */
.field-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .field-grid--2 { grid-template-columns: 1fr 1fr; }
  .field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
  .field-grid--4 { grid-template-columns: 2fr 1fr 1fr; }
}

/* Radio + checkbox */
.radio-group,
.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.radio-option,
.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}

.radio-option:hover,
.checkbox-option:hover {
  border-color: hsl(var(--brand-neon-glow));
}

.radio-option input,
.checkbox-option input {
  accent-color: hsl(var(--brand-neon));
  cursor: pointer;
}

.radio-option:has(input:checked),
.checkbox-option:has(input:checked) {
  background-color: hsl(var(--brand-neon-dim));
  border-color: hsl(var(--brand-neon));
  color: hsl(var(--brand-neon));
}

/* Consent checkbox */
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  margin-bottom: 1.5rem;
}

.consent input {
  accent-color: hsl(var(--brand-neon));
  margin-top: 0.25rem;
  cursor: pointer;
}

.consent label {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  cursor: pointer;
}

.consent label a {
  color: hsl(var(--brand-neon));
  text-decoration: underline;
}

/* ============================================================
   File uploads
   ============================================================ */

.file-field {
  margin-bottom: 1rem;
}

.file-field__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.file-field__label .required {
  color: hsl(var(--brand-neon));
}

.file-input-wrap {
  position: relative;
  display: block;
  padding: 1rem 1.25rem;
  background-color: hsl(var(--input));
  border: 1.5px dashed hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.file-input-wrap:hover {
  border-color: hsl(var(--brand-neon-glow));
  background-color: hsl(var(--secondary));
}

.file-input-wrap input[type='file'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-input-wrap[data-has-file='true'] {
  border-style: solid;
  border-color: hsl(var(--brand-neon));
  background-color: hsl(var(--brand-neon-dim));
}

.file-input-wrap__icon {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: hsl(var(--muted-foreground));
}

.file-input-wrap[data-has-file='true'] .file-input-wrap__icon {
  color: hsl(var(--brand-neon));
}

.file-input-wrap__text {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.file-input-wrap[data-has-file='true'] .file-input-wrap__text {
  color: hsl(var(--brand-neon));
  font-weight: 500;
}

.file-input-wrap__filename {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  word-break: break-all;
}

/* ============================================================
   Owner blocks (dynamic)
   ============================================================ */

.owner-block {
  background-color: hsl(var(--surface-dark));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 0.25rem);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.owner-block:last-child {
  margin-bottom: 0;
}

.owner-block__title {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: hsl(var(--brand-neon));
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.owner-block__title::before {
  content: '👤';
  font-size: 1.125rem;
}

/* ============================================================
   Submit button + footer
   ============================================================ */

.submit-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding-top: 0.5rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: hsl(0 0% 4%);
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.15s ease;
  box-shadow: 0 0 0 1px hsl(var(--brand-neon)), 0 0 32px -8px hsl(var(--brand-neon-glow));
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px hsl(var(--brand-neon)), 0 0 48px -4px hsl(var(--brand-neon-glow));
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.trust-text {
  text-align: center;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* Honeypot — hidden from users, visible to bots */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Turnstile widget centering */
.turnstile-wrap {
  display: flex;
  justify-content: center;
}

/* ============================================================
   Upload progress
   ============================================================ */

.progress-overlay {
  position: fixed;
  inset: 0;
  background-color: hsl(0 0% 0% / 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.progress-overlay[data-active='true'] {
  display: flex;
}

.progress-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--brand-neon-glow));
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 64px -16px hsl(var(--brand-neon-glow));
}

.progress-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--brand-neon));
}

.progress-card__subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: hsl(var(--input));
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar__fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 999px;
}

.progress-card__status {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  background-color: hsl(var(--hero-bg));
  border-top: 1px solid hsl(var(--border));
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-footer img {
  height: 28px;
  opacity: 0.7;
}

.site-footer__text {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}
