/* =================================================================
   1. BUTTONS
   ================================================================= */

/* Primair knopstijl */
.btn,
.wp-block-jetpack-contact-form button[type="submit"],
.wp-block-jetpack-contact-form .pushbutton-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(200, 16, 46, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.wp-block-jetpack-contact-form button[type="submit"]:hover,
.wp-block-jetpack-contact-form .pushbutton-wide:hover {
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.45);
  transform: translateY(-2px);
}

.btn:active,
.wp-block-jetpack-contact-form button[type="submit"]:active {
  transform: translateY(1px);
}

/* Transparante knop (Light variant) */
.btn--light,
.btn--light:hover {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
}

.btn--light {
  color: var(--red-dark);
}

.btn--light:hover {
  transform: translateY(-2px);
}


/* =================================================================
   2. CONTACT FORM (JETPACK)
   ================================================================= */

/* Container rondom het formulier */
.form, 
.wp-block-jetpack-contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

/* Formulier labels */
.field label,
.wp-block-jetpack-contact-form .jetpack-field label,
.wp-block-jetpack-contact-form .grunion-field-label,
.wp-block-jetpack-contact-form .wp-block-jetpack-label label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

/* Standaard invoervelden, datum, tijd & textarea */
.field input, 
.field select, 
.field textarea,
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form input[type="number"],
.wp-block-jetpack-contact-form input[type="date"],
.wp-block-jetpack-contact-form input[type="time"],
.wp-block-jetpack-contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* Textarea specifieke hoogte */
.field textarea,
.wp-block-jetpack-contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* Custom Dropdown (Select-veld) met pijl-icoon */
.field select,
.wp-block-jetpack-contact-form select,
.wp-block-jetpack-contact-form .grunion-field-select select,
.wp-block-jetpack-contact-form .wp-block-jetpack-field-select select,
.wp-block-jetpack-contact-form .keuze select {
  width: 100% !important;
  padding: 13px 40px 13px 15px !important;
  font: inherit !important;
  font-size: 0.98rem !important;
  color: var(--ink) !important;
  background-color: var(--bg-soft) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-s) !important;
  box-sizing: border-box !important;
  min-height: 48px !important;
  cursor: pointer !important;
  
  /* Browser pijl overschrijven met eigen SVG */
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  background-size: 16px !important;
}

/* Actieve focus status voor alle velden */
.field input:focus, 
.field select:focus, 
.field textarea:focus,
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus,
.wp-block-jetpack-contact-form select:focus {
  outline: none !important;
  border-color: var(--red) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.10) !important;
}


/* =================================================================
   3. HERO & VIDEO (DESKTOP)
   ================================================================= */

/* Hero container (Full Width) */
.hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
}

.hero__inner {
  position: relative;
  z-index: 2;
  min-height: min(calc(86vh - var(--header-h, 84px)), 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  max-width: 720px;
}

/* Background hero video */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 720px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

/* Vrijstaande video-blokken (Gutenberg) */
.video-frame,
.wp-block-video {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 720px !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000000;
  border: 1px solid var(--line);
}

.video-frame video,
.wp-block-video video {
  width: 100% !important;
  height: 100% !important;
  max-height: 720px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}


/* =================================================================
   4. RESPONSIVE / MEDIA QUERIES
   ================================================================= */

/* Tablets en Mobiel (tot 768px) */
@media (max-width: 768px) {
  /* Formulier: Dwing alle kolommen en flex-groepen onder elkaar */
  .wp-block-jetpack-contact-form,
  .wp-block-jetpack-contact-form .grunion-field-group,
  .wp-block-jetpack-contact-form .wp-block-columns,
  .wp-block-jetpack-contact-form div[class*="wrap"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Formulier: Elk invoerveld op 100% breedte */
  .wp-block-jetpack-contact-form .grunion-field-wrap,
  .wp-block-jetpack-contact-form .jetpack-field,
  .wp-block-jetpack-contact-form .wp-block-column,
  .wp-block-jetpack-contact-form .wp-block-jetpack-field {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Mobiel (tot 760px) */
@media (max-width: 760px) {
  .hero { 
    width: 100%;
    left: 0;
    margin-left: 0;
    margin-right: 0;
    background: #000000; 
  }
  
  .hero__inner { 
    display: none; 
    min-height: 0 !important; 
    padding: 0 !important; 
  }
  
  .hero__media { 
    position: relative; 
  }
  
  .hero__video { 
    position: relative; 
    width: 100% !important;
    height: auto !important; 
    max-height: none !important;
    aspect-ratio: 16 / 9 !important; 
    object-fit: contain !important; 
    object-position: center center !important;
  }

  .video-frame,
  .wp-block-video,
  .video-frame video,
  .wp-block-video video {
    max-height: none !important;
  }
}

/* Kleine mobiele schermen (tot 600px) */
@media (max-width: 600px) {
  .video-frame,
  .wp-block-video { 
    aspect-ratio: 4 / 3 !important; 
  }
}

/* Rijen met 2 velden naast elkaar, zoals het oude formulier */
.field-row {
  display: flex;
  gap: 24px;
}

.field-row .field {
  flex: 1;
  min-width: 0; /* voorkomt dat lange placeholders het veld laten uitrekken */
}

@media (max-width: 768px) {
  .field-row {
    flex-direction: column;
    gap: 0; /* elk .field-veld heeft z'n eigen margin-bottom al */
  }
}