/* BPJ interactive form — self-contained styles, namespaced under .bpj-form
   so they don't collide with Squarespace's own CSS.

   Brand palette (PALETA_DE_COLORES_BPJ):
     Primary        #AC3C72   Primary Light  #E3B8CE   Primary Pale  #8A4E6D
     Dark Primary   #6C2248   BPJ Black      #1E1E1D   Ground        #726762
     Lima           #E4E4E4   Pale           #D9C7B9   Page bg       #E5E3DC
   Per-category accent (Arverja / Honeymoon Blue) is injected per-form by the
   engine via the --bpj-accent* variables, so these are just the defaults. */

.bpj-form * { box-sizing: border-box; }

.bpj-form {
  /* accent — overridden per form/category by engine.js */
  --bpj-accent: #AC3C72;
  --bpj-accent-dark: #6C2248;
  --bpj-accent-soft: #E3B8CE;

  /* neutrals — shared across all categories */
  --bpj-bg: #E5E3DC;
  --bpj-card: #ffffff;
  --bpj-ink: #1E1E1D;
  --bpj-muted: #726762;
  --bpj-line: #d8d3c8;
  --bpj-icon-bg: #f1efe9;
  --bpj-radius: 16px;
  --bpj-shadow: 0 10px 30px rgba(40, 35, 30, 0.10);

  --bpj-font: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bpj-font-head: "Anton", "Arial Narrow", var(--bpj-font);

  font-family: var(--bpj-font);
  line-height: 1.5;
  color: var(--bpj-ink);
  background: var(--bpj-bg);
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 24px 56px;
  border-radius: 20px;
}
/* Neutralise styles Squarespace may inject onto buttons/inputs/headings */
.bpj-form button,
.bpj-form input,
.bpj-form textarea {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Progress bar */
.bpj-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.bpj-progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfc9bc;
  transition: all .3s ease;
}
.bpj-progress-dot.is-done { background: var(--bpj-accent-soft); }
.bpj-progress-dot.is-current {
  background: var(--bpj-accent);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bpj-accent) 22%, transparent);
}

/* Header */
.bpj-step-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--bpj-accent);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
.bpj-question {
  text-align: center;
  font-family: var(--bpj-font-head);
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 400; /* Anton ships a single (bold-looking) weight */
}
.bpj-hint {
  text-align: center;
  color: var(--bpj-muted);
  font-size: 16px;
  margin: 0 auto 38px;
  max-width: 560px;
}

/* Card grid */
.bpj-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers incomplete last rows (odd card counts) */
  gap: 18px;
  margin-bottom: 8px;
}
@media (max-width: 880px) { .bpj-card { flex-basis: calc(50% - 9px) !important; } }
@media (max-width: 480px) { .bpj-card { flex-basis: 100% !important; } }

.bpj-card {
  /* 4 per row that fill the width; lone cards stay this size and centre,
     instead of stretching or sticking to the left */
  flex: 0 1 calc(25% - 14px);
  position: relative;
  background: var(--bpj-card);
  border: 2px solid transparent;
  border-radius: var(--bpj-radius);
  padding: 28px 18px 24px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 4px 14px rgba(40, 35, 30, 0.05);
}
.bpj-card:hover { transform: translateY(-3px); box-shadow: var(--bpj-shadow); }
.bpj-card.is-selected {
  border-color: var(--bpj-accent);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--bpj-accent) 18%, transparent);
}
.bpj-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--bpj-icon-bg);
  transition: background .2s ease;
}
.bpj-card.is-selected .bpj-card-icon { background: var(--bpj-accent-soft); }
/* line-art icons inherit colour: ground tone by default, accent when selected */
.bpj-card-icon.is-line { color: var(--bpj-ground, #726762); }
.bpj-card.is-selected .bpj-card-icon.is-line { color: var(--bpj-accent-dark); }
.bpj-card-icon svg { display: block; }

/* Klimt-inspired gold medallions: the SVG is the whole disc, so drop the
   default circle background and let it sit on the card. */
.bpj-card-icon.is-klimt,
.bpj-card.is-selected .bpj-card-icon.is-klimt {
  background: transparent;
  box-shadow: 0 4px 12px rgba(36, 31, 26, .18);
  border-radius: 50%;
}
.bpj-card.is-selected .bpj-card-icon.is-klimt {
  box-shadow: 0 0 0 3px var(--bpj-accent-soft), 0 6px 16px rgba(36, 31, 26, .25);
}

/* Illustrated image icons (true Klimt art, when available) */
.bpj-card-icon.is-image,
.bpj-card.is-selected .bpj-card-icon.is-image { background: transparent; }
.bpj-card-icon.is-image img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block;
}
.bpj-card-title {
  font-family: var(--bpj-font);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}
.bpj-card-subtitle { font-size: 13px; color: var(--bpj-muted); margin: 0; min-height: 16px; }

.bpj-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bpj-accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.bpj-card.is-selected .bpj-check { display: flex; }

/* Inline "please specify" input inside a card */
.bpj-card-input {
  margin-top: 14px;
  width: 100%;
  border: 1px solid var(--bpj-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
  font-family: inherit;
  display: none;
}
.bpj-card.is-selected .bpj-card-input { display: block; }

/* Field steps (text inputs) */
.bpj-fields {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.bpj-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.bpj-field .bpj-req { color: var(--bpj-accent); }
.bpj-field input,
.bpj-field textarea {
  width: 100%;
  border: 1px solid var(--bpj-line);
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 16px; /* >=16px prevents iOS zoom-on-focus */
  font-family: inherit;
  color: var(--bpj-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bpj-field input:focus,
.bpj-field textarea:focus {
  outline: none;
  border-color: var(--bpj-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bpj-accent) 16%, transparent);
}
.bpj-field textarea { min-height: 92px; resize: vertical; }

/* Footer / navigation */
.bpj-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}
.bpj-btn {
  border: none;
  cursor: pointer;
  font-family: var(--bpj-font);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-radius: 999px;
  padding: 16px 46px;
  transition: filter .2s ease, opacity .2s ease;
}
.bpj-btn-primary { background: var(--bpj-accent); color: #fff; }
.bpj-btn-primary:hover { filter: brightness(1.07); }
.bpj-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.bpj-btn-ghost {
  background: transparent;
  color: var(--bpj-muted);
  border: 1px solid var(--bpj-line);
  padding: 16px 32px;
}
.bpj-btn-ghost:hover { color: var(--bpj-ink); border-color: var(--bpj-muted); }

.bpj-error {
  text-align: center;
  color: #b4452f;
  font-size: 14px;
  margin-top: 16px;
  min-height: 18px;
}

/* Success / thank-you screen */
.bpj-done {
  text-align: center;
  padding: 60px 20px;
}
.bpj-done-mark {
  width: 88px; height: 88px;
  border-radius: 50%;
  margin: 0 auto 26px;
  background: var(--bpj-accent-soft);
  color: var(--bpj-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
}
.bpj-done h2 {
  font-family: var(--bpj-font-head);
  font-size: 40px; margin: 0 0 12px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .01em;
}
.bpj-done p { color: var(--bpj-muted); font-size: 17px; max-width: 480px; margin: 0 auto; }

/* ---- Mobile polish (Squarespace embeds render full-width on phones) ---- */
@media (max-width: 600px) {
  .bpj-form { padding: 24px 14px 36px; border-radius: 14px; }
  .bpj-progress { margin-bottom: 26px; gap: 7px; }
  .bpj-progress-dot { width: 9px; height: 9px; }
  .bpj-step-label { font-size: 12px; margin-bottom: 10px; }
  .bpj-question { font-size: clamp(23px, 7vw, 32px); }
  .bpj-hint { font-size: 15px; margin-bottom: 26px; }
  .bpj-card { padding: 22px 16px 18px; }
  .bpj-card-icon { width: 56px; height: 56px; margin-bottom: 12px; }
  .bpj-card-title { font-size: 16px; }
  /* stack nav: primary action on top, Back below — both full width & easy to tap */
  .bpj-nav { flex-direction: column-reverse; gap: 10px; margin-top: 30px; }
  .bpj-btn { width: 100%; padding: 15px 24px; }
  .bpj-done { padding: 44px 12px; }
  .bpj-done h2 { font-size: 32px; }
  .bpj-done p { font-size: 16px; }
}

/* Honeypot — present in the DOM for bots, invisible & unreachable for users */
.bpj-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.bpj-hidden { display: none !important; }
