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

/* IT Live logo met hart – standaard op alle headers */
.header .logo,
.logo.logo-itlive,
a.logo.logo-itlive {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: inherit;
}
.header .logo:hover,
.logo.logo-itlive:hover { color: #fbbf24; }
/* Hart in cirkel via ::before – werkt op alle headers zonder HTML aanpassing */
.header .logo:not(:has(.logo-icon))::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f172a'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E"), linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  background-size: 16px 16px, 100% 100%;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
}
.logo.logo-itlive .logo-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  flex-shrink: 0;
}
.logo.logo-itlive .logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #0f172a;
}

:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #FCCC00;
  --text-light: #fff;
  --text-dark: #1E1D24;
  --bg-light: #f8f9fa;
  --bg-dark: #1E1D24;
  --bg-page: #0f172a;
  --form-card-bg: rgba(255, 255, 255, 0.05);
  --form-card-border: rgba(148, 163, 184, 0.2);
  --form-input-bg: rgba(255, 255, 255, 0.1);
  --form-input-border: rgba(255, 255, 255, 0.2);
  --form-input-focus: var(--primary);
  --badge-bg: rgba(255, 255, 255, 0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 30px);
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Shared form pages (gratis-scan, kennismaking) */
.page-hero {
  padding: clamp(6rem, 15vw, 120px) 0 clamp(3rem, 8vw, 60px);
  text-align: center;
}

.page-hero .hero-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.page-hero .intro {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.badge {
  background: var(--badge-bg);
  color: var(--text-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.form-page .container {
  max-width: 700px;
}

.form-card {
  background: var(--form-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--form-card-border);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.form-card h2 {
  font-size: 1.5rem;
  color: #f5e6d3;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--form-input-border);
  border-radius: 8px;
  background: var(--form-input-bg);
  color: var(--text-light);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

/* 16px voorkomt iOS zoom bij focus op mobiel */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .form-group select,
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="url"],
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
  .form-group textarea {
    min-height: 6rem;
  }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--form-input-focus);
}

.form-group select option {
  color: var(--text-dark);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.submit-btn:hover {
  opacity: 0.95;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.back-link {
  text-align: center;
}

.back-link a {
  color: #94a3b8;
  text-decoration: none;
}

.back-link a:hover {
  color: var(--text-light);
}

/* Focus visible voor accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-status-success {
  color: #10b981;
  font-weight: 600;
}

.form-status-error {
  color: #ef4444;
}

/* Footer quick nav (Home · Diensten · Contact · Klantportaal) */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-quick, .footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.footer-quick a, .footer-legal a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}
.footer-quick a:hover, .footer-legal a:hover {
  color: #fff;
}
.footer-sep {
  opacity: 0.5;
  pointer-events: none;
}

/* Header zoekbalk met AI-suggesties – mooi, glass, gouden accent */
/* Header + zoek-dropdown altijd op voorgrond: header z-index hoog, hero/main laag */
.header {
  position: relative;
  z-index: 1000 !important;
  overflow: visible !important;
}
/* Hero en alle content onder header – lage z-index zodat header + zoek-dropdown erboven */
.page-home .content-wrapper > *:not(.header) {
  position: relative;
  z-index: 0 !important;
}
.page-home section.hero,
.page-home main {
  z-index: 0 !important;
}
.header-search-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 340px;
  margin: 0 0.75rem;
}
.header-search-form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.header-search-form:focus-within {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(251, 191, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.header-search-input {
  width: 100%;
  padding: 0.65rem 3rem 0.65rem 1rem;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-family: inherit;
  transition: color 0.2s ease;
}
.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.header-search-input:focus {
  outline: none;
}
.header-search-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.12) 100%);
  color: rgba(251, 191, 36, 0.95);
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}
.header-search-btn:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(245, 158, 11, 0.25) 100%);
  color: #fcd34d;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.25);
}
.header-search-btn:active {
  transform: translateY(-50%) scale(0.98);
}
/* Dropdown suggesties – fixed zodat altijd bovenop alles (boven hero e.d.) */
.header-search-suggest {
  position: fixed;
  top: 0;
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2147483647;
  display: none;
  list-style: none;
  padding: 0.5rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.4) transparent;
}
.header-search-suggest::-webkit-scrollbar {
  width: 6px;
}
.header-search-suggest::-webkit-scrollbar-track {
  background: transparent;
}
.header-search-suggest::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.35);
  border-radius: 3px;
}
.header-search-suggest.is-open {
  display: block;
  animation: header-search-drop 0.2s ease;
}
@keyframes header-search-drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.header-search-suggest a,
.header-search-suggest [role="option"] {
  display: block;
  padding: 0.7rem 1.1rem;
  margin: 0 0.4rem;
  border-radius: 10px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: none;
  width: calc(100% - 0.8rem);
  margin-left: 0.4rem;
  margin-right: 0.4rem;
  text-align: left;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
}
.header-search-suggest a:hover,
.header-search-suggest [role="option"]:hover,
.header-search-suggest [role="option"].highlight {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(251, 191, 36, 0.06) 100%);
  color: #fcd34d;
  transform: translateX(2px);
}
.header-search-suggest a:first-child,
.header-search-suggest [role="option"]:first-child {
  margin-top: 0;
}
@media (max-width: 768px) {
  .header-search-wrap {
    order: 1;
    max-width: 100%;
    width: 100%;
    margin: 0.5rem 0 0;
    padding: 0 0.5rem;
  }
  .header .container[data-astro-cid-3ef6ksr2],
  .header .container {
    flex-wrap: wrap;
  }
  .header-search-form {
    border-radius: 12px;
  }
  .header-search-input {
    border-radius: 12px;
  }
  .header-search-suggest {
    max-height: 240px;
    border-radius: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
