
/* CONTACT PAGE ONLY */
* {
  box-sizing: border-box;
}

header nav {
  width: 100%;
}

#navbar-placeholder {
  width: 100%;
}

/* PAGE LAYOUT */
.contact-layout {
  max-width: 1250px;
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
}

#toestemming {
  text-align: center;
}

.contact-section {
  padding: 0;
}

/* FORM CARD */
.contact-card {
  width: 100%;
  padding: 2.8rem;
  border-radius: 30px;
  position: relative;
  color: #ffffff;

  background:
    radial-gradient(circle at top left, rgba(255, 59, 59, 0.35), transparent 35%),
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.45), transparent 35%),
    linear-gradient(145deg, #07152e, #102f5f 45%, #06101f);

  border: 3px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 0 0 4px rgba(31, 111, 235, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 35px rgba(255, 255, 255, 0.06);

  animation:
    contactEnter 0.75s ease-out both,
    emergencyGlow 3s ease-in-out infinite;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.035) 0,
      rgba(255, 255, 255, 0.035) 2px,
      transparent 2px,
      transparent 12px
    );
  pointer-events: none;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-badge {
  width: fit-content;
  margin: -4.4rem auto 1.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 2.2rem;

  background: linear-gradient(135deg, #ff3b3b, #ffffff, #1f6feb);
  border: 4px solid #ffffff;
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.6),
    0 10px 0 rgba(0, 0, 0, 0.35);

  animation: badgeSirenPulse 2.2s ease-in-out infinite;
}

.contact-strip {
  width: fit-content;
  margin: 0 auto 1.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;

  background:
    repeating-linear-gradient(
      45deg,
      rgba(253, 252, 252, 0.35) 0,
      rgba(190, 190, 190, 0.35) 20px,
      rgba(31, 111, 235, 0.35) 40px,
      rgba(31, 111, 235, 0.35) 60px
    );

  background-size: 80px 80px;
  animation: stripMove 6s linear infinite;

  border: 2px solid rgba(255, 255, 255, 0.22);
  color: #f0ec07;
  box-shadow: 0 10px 12px rgba(255, 147, 47, 0.75);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.contact-card h2 {
  text-align: center;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin-bottom: 1rem;
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(31, 111, 235, 0.9),
    0 0 22px rgba(255, 59, 59, 0.65);
}

.contact-card > p {
  max-width: 620px;
  margin: 0 auto 2rem;
  text-align: center;
  line-height: 1.7;
  color: #dceaff;
}

/* INTRO + NOTE */
.contact-intro,
.contact-note {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  border: 2px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.06);
}

.contact-intro span {
  display: block;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 59, 59, 0.8);
}

.contact-intro p,
.contact-note {
  text-align: center;
  color: #dceaff;
  line-height: 1.6;
}

/* FORM */
.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.3rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.form-group:focus-within {
  transform: translateY(-4px) scale(1.01);
  filter: brightness(1.1);
}

.form-group label {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 2px solid rgba(183, 212, 255, 0.5);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font: inherit;
  box-shadow:
    inset 0 0 14px rgba(255, 255, 255, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.form-group textarea {
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.form-group select option {
  color: #111111;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow:
    0 0 0 4px rgba(31, 111, 235, 0.35),
    0 0 25px rgba(255, 59, 59, 0.35),
    inset 0 0 18px rgba(255, 255, 255, 0.12);
}

/* CHECKBOX */
.checkbox-group label {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.checkbox-group input {
  width: 22px;
  height: 22px;
  accent-color: #ff3b3b;
  flex-shrink: 0;
}

/* BUTTON */
.contact-button {
  position: relative;
  overflow: hidden;
  padding: 1.15rem 1.5rem;
  border: none;
  border-radius: 20px;

  background:
    linear-gradient(90deg, #ff3b3b, #ffffff 50%, #1f6feb);
  color: #06101f;

  font-size: 1.2rem;
  font-weight: 1000;
  cursor: pointer;

  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.45),
    0 0 30px rgba(31, 111, 235, 0.55);

  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.contact-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 13px 0 rgba(0, 0, 0, 0.45),
    0 0 45px rgba(255, 59, 59, 0.55);
}

.contact-button:active {
  transform: translateY(5px);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.45),
    0 0 25px rgba(31, 111, 235, 0.45);
}

.contact-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.75),
      transparent
    );
  transform: skewX(-20deg);
}

.contact-button:hover::before {
  animation: buttonFlash 0.75s ease;
}

/* SIDEBAR CARDS */
.contact-info-grid {
  width: 100%;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-card {
  width: 100%;
  min-height: 100px; 
  padding: 0.7rem 1rem; 

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-radius: 18px; /* slightly tighter */
  text-align: center;
  color: white;

  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(145deg, #07152e, #102f5f);

  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(31, 111, 235, 0.35);
}

.contact-info-card span {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.contact-info-card h2 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.contact-info-card p {
  line-height: 1.5;
  color: #dceaff;
}

.form-group input[type="file"] {
  padding: 0.9rem;
  border: 2px dashed rgba(183, 212, 255, 0.7);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
  margin-right: 1rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 12px;
  background: #1f6feb;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.form-group small {
  color: #bcd7ff;
  font-size: 0.9rem;
  line-height: 1.4;
}

.file-preview {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #dceaff;
}

.file-preview img {
  max-width: 120px;
  border-radius: 12px;
  margin-top: 0.5rem;
  display: block;
}

.file-preview-card {
  margin-top: 0.8rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.file-preview-card p {
  margin-bottom: 0.7rem;
  text-align: left;
}

.file-preview-card img {
  max-width: 140px;
  border-radius: 12px;
  margin-top: 0.7rem;
  display: block;
}

#remove-file-btn {
  padding: 0.6rem 0.9rem;
  border: none;
  border-radius: 12px;
  background: #ff3b3b;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.file-error {
  color: #ffd1d1;
  font-weight: 800;
}

.file-placeholder {
  opacity: 0.7;
  font-style: italic;
}

/* ANIMATIONS */
@keyframes contactEnter {
  from {
    opacity: 0;
    transform: translateY(35px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes badgeSirenPulse {
  0%, 100% {
    transform: scale(1) rotate(-1deg);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.08) rotate(1deg);
    filter: brightness(1.25);
  }
}

@keyframes emergencyGlow {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(255, 59, 59, 0.45),
      0 0 30px rgba(31, 111, 235, 0.35);
  }

  50% {
    box-shadow:
      0 0 34px rgba(31, 111, 235, 0.75),
      0 0 50px rgba(255, 59, 59, 0.55);
  }
}

@keyframes stripMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 80px 0;
  }
}

@keyframes buttonFlash {
  from {
    left: -120%;
  }

  to {
    left: 140%;
  }
}

/* RESPONSIVE */
@media (max-width: 950px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    margin-top: 1rem;
  }
}

.contact-feedback {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    text-align: center;
}

.contact-feedback p {
    margin: 0.35rem 0 0;
}

.contact-feedback.success {
    border: 2px solid rgba(75, 210, 125, 0.65);
    background: rgba(30, 120, 70, 0.28);
    color: #dffff0;
}

.contact-feedback.error {
    border: 2px solid rgba(255, 90, 100, 0.65);
    background: rgba(145, 25, 40, 0.3);
    color: #ffe2e5;
}

@media (max-width: 600px) {
  .contact-layout {
    margin: 2rem auto;
    padding: 0 0.8rem;
  }

  .contact-card {
    padding: 2rem 1.2rem;
    border-radius: 24px;
  }

  .contact-badge {
    margin-top: -3.4rem;
    font-size: 1.6rem;
    padding: 0.7rem 1rem;
  }

  .contact-strip {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  .contact-card h2 {
    font-size: 2rem;
  }

  .contact-info-card {
    min-height: auto;
  }

  .checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-badge,
  .contact-strip,
  .contact-button:hover::before {
    animation: none;
  }

  .form-group,
  .contact-button,
  .contact-info-card {
    transition: none;
  }
}