/* ============================================================
   PIXELGATE — PROJECT INTAKE
   Matches pixelgate.nl: white background, blue accent #2563eb,
   rounded cards, clean professional tech feel
   ============================================================ */

:root {
  --blue:       #2563eb;
  --blue-2:     #1d4ed8;
  --blue-3:     #1e40af;
  --blue-light: #3b82f6;
  --blue-bg:    #eff6ff;
  --blue-border:#bfdbfe;
  --dark:       #0f172a;
  --dark-2:     #1e293b;
  --ink:        #111827;
  --ink-2:      #374151;
  --ink-3:      #6b7280;
  --ink-4:      #9ca3af;
  --white:      #ffffff;
  --gray-1:     #f9fafb;
  --gray-2:     #f3f4f6;
  --gray-3:     #e5e7eb;
  --success:    #059669;
  --danger:     #dc2626;
  --font:       'Plus Jakarta Sans', sans-serif;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
  --shadow-blue:0 4px 20px rgba(37,99,235,0.25);
  --trans:      0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* -- NAV --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: #dbeafe;
  border-bottom: 1px solid #bfdbfe;
  
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-link { text-decoration: none; }

.nav-logo {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav-logo .accent { color: var(--blue); }

.nav-back {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-3);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--trans);
}

.nav-back:hover { color: var(--blue); }

/* -- HERO -------------------------------------------------- */
.hero {
  padding: 130px 2rem 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Subtle blue dot grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #bfdbfe 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-bg);
  border: 1px solid var(--blue-border);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-title span { color: var(--blue); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--blue-3);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

/* -- FORM SECTION (white, not dark) ------------------------ */
.dark-section {
  background: var(--gray-1);
  border-top: 1px solid var(--gray-3);
  min-height: 60vh;
  padding: 4rem 0 6rem;
}

.form-shell {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* -- PROGRESS ---------------------------------------------- */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.progress-bar-track {
  flex: 1;
  height: 4px;
  background: var(--gray-3);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue-3);
  white-space: nowrap;
}

/* -- STEPS ------------------------------------------------- */
.step { display: none; animation: fadeUp 0.3s ease both; }
.step.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.step-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.step-sub-dark {
  font-size: 0.95rem;
  color: var(--blue-3);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* -- TYPE GRID --------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 2.5rem;
}

.type-card {
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans), transform var(--trans);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.type-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
  transform: translateY(-2px);
}

.type-card.selected {
  border-color: var(--blue);
  background: var(--blue-bg);
  box-shadow: 0 4px 20px rgba(37,99,235,0.18);
}

.type-icon { font-size: 1.6rem; line-height: 1; }

.type-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.type-card.selected .type-label { color: var(--blue-3); }

/* -- SECTION DIVIDER --------------------------------------- */
.section-divider {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0.4rem 0;
  border-bottom: 2px solid var(--blue-border);
  margin: 2.5rem 0 1.25rem;
}

/* -- FORM FIELDS ------------------------------------------- */
.field-group { margin-bottom: 1.5rem; }

.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 0.45rem;
}

.field-label .req { color: var(--blue); margin-inline-start: 2px; }

.field-hint {
  font-size: 0.78rem;
  color: var(--ink-4);
  margin-bottom: 0.45rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  appearance: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.field-input::placeholder,
.field-textarea::placeholder { color: var(--ink-4); }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.field-input.invalid,
.field-select.invalid,
.field-textarea.invalid { border-color: var(--danger); }

.field-textarea { min-height: 110px; resize: vertical; }

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

/* -- RADIO / CHECKBOX -------------------------------------- */
.options-group { display: flex; flex-direction: column; gap: 6px; }

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.option-item:hover {
  border-color: var(--blue);
  background: var(--blue-bg);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.option-item label {
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 500;
  flex: 1;
  line-height: 1.5;
}

.option-hint {
  font-size: 0.74rem;
  color: var(--ink-4);
  margin-top: 2px;
  display: block;
  font-weight: 400;
}

/* -- REFERENCE SITES --------------------------------------- */
.ref-sites-list { display: flex; flex-direction: column; gap: 6px; }

.ref-site-row { display: flex; gap: 6px; align-items: stretch; }
.ref-site-row .field-input { flex: 1; }

.btn-remove-ref {
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius);
  width: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-4);
  font-size: 1.1rem;
  transition: all var(--trans);
  flex-shrink: 0;
}

.btn-remove-ref:hover {
  background: #fee2e2;
  color: var(--danger);
  border-color: var(--danger);
}

.btn-add-ref {
  margin-top: 6px;
  background: transparent;
  border: 1.5px dashed var(--blue-border);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  width: 100%;
  font-family: var(--font);
  transition: all var(--trans);
}

.btn-add-ref:hover {
  background: var(--blue-bg);
  border-color: var(--blue);
}

.field-error {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}

.field-error.visible { display: block; }

/* -- PACKAGE CARDS ----------------------------------------- */
.pkg-cards { display: flex; flex-direction: column; gap: 8px; }

.pkg-card {
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--trans), box-shadow var(--trans);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.pkg-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.pkg-card.selected {
  border-color: var(--blue);
  box-shadow: 0 4px 20px rgba(37,99,235,0.18);
  background: var(--blue-bg);
}

.pkg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.pkg-card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.pkg-card-left input[type="radio"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.pkg-name-wrap { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }

.pkg-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.pkg-card.selected .pkg-name { color: var(--blue-3); }

.pkg-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.pkg-toggle {
  background: var(--gray-2);
  border: none;
  border-radius: 6px;
  color: var(--blue-3);
  font-size: 0.65rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
  flex-shrink: 0;
}

.pkg-toggle:hover { background: var(--blue-bg); color: var(--blue); }
.pkg-card.selected .pkg-toggle { background: var(--blue-border); color: var(--blue-3); }

.pkg-tagline {
  font-size: 0.82rem;
  color: var(--blue-3);
  padding: 0 1.25rem 0.75rem;
  font-style: italic;
  line-height: 1.5;
}

.pkg-features {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 1px solid transparent;
}

.pkg-features.open {
  max-height: 900px;
  border-top-color: var(--gray-3);
  padding: 1rem 1.25rem 1.25rem;
}

.pkg-card.selected .pkg-features { border-top-color: var(--blue-border); }

.pkg-features ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.pkg-features ul li {
  font-size: 0.83rem;
  color: var(--ink-2);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.55;
}

.pkg-features ul li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.75rem;
}

/* -- BUTTONS ----------------------------------------------- */
.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  transition: all var(--trans);
  line-height: 1;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.35);
}

.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  background: var(--white);
  color: var(--blue-3);
  border: 1.5px solid var(--gray-3);
  box-shadow: 0 1px 8px rgba(37,99,235,0.08);
}

.btn-ghost:hover {
  border-color: var(--blue-3);
  color: var(--ink);
}

/* -- REVIEW ------------------------------------------------ */
.review-card {
  background: var(--white);
  border: 1.5px solid var(--gray-3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.review-section {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #bfdbfe;
}

.review-section:last-child { border-bottom: none; }

.review-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--gray-2);
}

.review-row:last-child { border-bottom: none; }
.review-row-label { color: var(--ink-3); flex-shrink: 0; min-width: 140px; font-weight: 500; }
.review-row-value { color: var(--ink); font-weight: 600; text-align: end; word-break: break-word; }

/* -- OUTCOME ----------------------------------------------- */
.outcome-wrap { padding: 4rem 0; text-align: center; }

.outcome-box {
  width: 72px;
  height: 72px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-blue);
}

.outcome-box svg rect { fill: transparent; }
.outcome-box svg path { stroke: white; }
.outcome-box.error { background: var(--danger); box-shadow: 0 4px 20px rgba(220,38,38,0.3); }

/* -- FOOTER ------------------------------------------------ */
.footer { background: var(--dark); border-top: 1px solid #1e293b; }

.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-logo span { color: var(--blue-light); }

.footer-desc {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 400px;
}

.footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
}

.footer-whatsapp:hover {
  background: var(--blue-2);
  box-shadow: 0 6px 24px rgba(37,99,235,0.4);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #475569;
}

.footer-bottom a { color: #64748b; text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { color: var(--blue-light); }

/* -- LOADING ----------------------------------------------- */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.loading-overlay.active { display: flex; }

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--blue-border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* -- RESPONSIVE -------------------------------------------- */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 1.25rem 50px; }
  .form-shell { padding: 0 1.25rem; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .step-nav { flex-direction: column-reverse; }
  .btn { width: 100%; justify-content: center; }
  .review-row { flex-direction: column; gap: 0.2rem; }
  .review-row-value { text-align: start; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* -- LOGO IMAGES ------------------------------------------- */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
