/* Foto-instuurformulier + lege-foto CTA op kermispagina */

.page-header--kf-upload.page-header--compact {
  padding: 14px 0 0;
  border-bottom: none;
}

.page-header--kf-upload .wrapper:has(.page-title) {
  padding-bottom: 0.35rem;
}

.page-intro--kf-form {
  background: transparent;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
}

.page-intro--kf-form .wrapper {
  padding-top: 0;
  padding-bottom: 1rem;
}

.page-intro--kf-form .kf-page-intro-text {
  margin: 0 auto;
  max-width: 640px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.content-wrapper--kf-upload {
  padding-top: 1.35rem;
}

.kf-upload-page {
  padding-bottom: 2.5rem;
  --kf-heading: var(--accent, #ff7a1a);
  --kf-heading-soft: #ffb870;
}

.page-header--kf-upload .page-title,
.page-header--kf-upload h2 {
  color: var(--kf-heading);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
}

.kf-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.35rem 1.45rem;
  margin-bottom: 1.85rem;
  color: #eee;
  line-height: 1.55;
}

.wrapper.narrow.kf-upload-page .kf-card__title,
.wrapper.narrow.kf-upload-page .kf-card > h2 {
  margin: 0 0 0.9rem;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--kf-heading);
}

.kf-card--success > h2 {
  color: #b8f0c8;
}

.kf-card--success {
  border-color: rgba(80, 180, 110, 0.45);
  background: rgba(30, 80, 45, 0.25);
}

.kf-intro p {
  margin: 0 0 0.85rem;
}

.kf-alert {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.35rem;
}

.kf-alert--error {
  background: rgba(120, 20, 20, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.45);
}

.kf-alert ul {
  margin: 0.4rem 0 0 1.1rem;
}

.kf-form {
  display: grid;
  gap: 1.65rem;
  margin-top: 0.35rem;
}

.kf-fieldset {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.25rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.18);
}

.kf-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  color: var(--kf-heading, var(--accent, #ff7a1a));
  font-size: 1.22rem;
}

.kf-field {
  margin-top: 0.85rem;
}

.kf-field:first-of-type {
  margin-top: 0.35rem;
}

.kf-field label,
.kf-field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--kf-heading-soft, #ffb870);
}

.kf-field-label {
  display: block;
}

.kf-req {
  color: #ff9b6a;
}

.kf-photo-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kf-photo-picker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.kf-photo-picker__count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.kf-photo-picker__msg {
  margin-top: 0.55rem;
  margin-bottom: 0;
}

.kf-btn--sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
}

.kf-btn:disabled,
.kf-btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.kf-photo-slot__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.kf-photo-slot__title {
  min-width: 0;
  flex: 1 1 12rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}

.kf-photo-slot__remove {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 120, 120, 0.45);
  background: rgba(120, 20, 20, 0.28);
  color: #ffc9c9;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.kf-photo-slot__remove:hover {
  background: rgba(140, 30, 30, 0.42);
  color: #ffe0e0;
}

.kf-field input[type="text"],
.kf-field input[type="email"],
.kf-field input[type="url"],
.kf-field input[type="date"],
.kf-field input[type="file"],
.kf-field textarea,
.kf-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 18, 0.75);
  color: #fff;
  font: inherit;
}

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

.kf-field input[type="file"] {
  padding: 0.55rem 0.75rem;
}

.kf-readonly {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ddd;
}

.kf-readonly--emph {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  border-color: rgba(255, 184, 112, 0.35);
  background: rgba(249, 123, 10, 0.1);
}

.kf-kermis-detail {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

.kf-kermis-check {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 112, 0.28);
  background: rgba(249, 123, 10, 0.08);
  color: rgba(255, 240, 220, 0.95);
  line-height: 1.5;
}

.kf-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

.kf-hint--block {
  margin-bottom: 0.65rem;
}

.kf-privacy-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.kf-privacy-note a {
  color: rgba(255, 184, 112, 0.95);
}

.kf-decl-intro {
  margin: 0.35rem 0 1rem;
  padding: 0.85rem 1rem;
  line-height: 1.55;
  border-radius: 10px;
  border: 1px solid rgba(100, 200, 130, 0.42);
  background: rgba(40, 110, 65, 0.22);
  color: rgba(220, 245, 228, 0.95);
}

.kf-fieldset--checks .kf-check {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.55rem 0.7rem;
  align-items: start;
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 0.88rem;
}

.kf-check input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.12rem;
}

.kf-check span {
  line-height: 1.42;
}

.kf-check span a {
  color: #ffb870;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kf-check span a:hover {
  color: #ffd4a8;
}

.kf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
}

.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.kf-btn--lg {
  min-height: 52px;
  padding: 0.9rem 1.6rem;
}

.kf-btn--primary {
  background: linear-gradient(135deg, #ff8a2a 0%, #f97b0a 55%, #e86a00 100%);
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(249, 123, 10, 0.35);
}

.kf-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249, 123, 10, 0.42);
  color: #fff !important;
}

.kf-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f2f2f8 !important;
  border-color: rgba(255, 255, 255, 0.22);
}

.kf-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(160, 110, 255, 0.55);
  color: #fff !important;
}

.kf-guidelines ul {
  margin: 0.5rem 0 0.75rem 1.15rem;
}

.kf-guidelines li {
  margin-bottom: 0.35rem;
}

.kf-photo-slots {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.kf-photo-slot {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}

.kf-photo-slot__layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.kf-photo-slot__thumb {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.kf-photo-slot__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kf-photo-slot__thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.4rem;
  font-weight: 700;
}

.kf-photo-slot__body {
  min-width: 0;
}

.kf-opt {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92em;
}

.kf-photo-slot__head strong {
  color: var(--kf-heading-soft, #ffb870);
  font-weight: 700;
}

.kf-photo-slot__name {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  word-break: break-all;
}

.btn--lg {
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  font-size: 1rem;
}

/* Lege-foto CTA op kermispagina */
.kv2-foto-cta {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(100, 200, 130, 0.42);
  background: rgba(40, 110, 65, 0.22);
  color: rgba(220, 245, 228, 0.95);
}

.kv2-foto-cta--compact {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.kv2-foto-cta--in-gallery {
  margin-top: 0.85rem;
}

.kv2-gallery__actions + .kv2-foto-cta--in-gallery {
  margin-top: 0.65rem;
}

.kv2-foto-cta__empty p,
.kv2-foto-cta__lead {
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

.kv2-foto-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.kv2-foto-cta .kv2-foto-cta__btn,
.kv2-foto-cta a.kv2-foto-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kv2-foto-cta a.kv2-foto-cta__btn:not(.btn--ghost) {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.95), rgba(255, 122, 26, 0.78));
  color: #fff !important;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 122, 26, 0.25);
}

.kv2-foto-cta a.kv2-foto-cta__btn:not(.btn--ghost):hover {
  background: linear-gradient(90deg, #e65f00, rgba(230, 95, 0, 0.88));
  color: #fff !important;
  transform: translateY(-1px);
}

.kv2-foto-cta a.kv2-foto-cta__btn.btn--ghost {
  background: rgba(0, 0, 0, 0.25);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.kv2-foto-cta a.kv2-foto-cta__btn.btn--ghost:hover {
  border-color: #a06eff;
  color: #fff !important;
}

.kv2-foto-empty-block {
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.kv2-foto-empty-block__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
}

.kv2-foto-empty-block__icon svg {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

@media (max-width: 600px) {
  .kf-card {
    padding: 1rem;
  }

  .kf-fieldset {
    padding: 0.85rem;
  }

  .kf-photo-slot__layout {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.7rem;
  }

  .kf-photo-slot__thumb {
    width: 72px;
  }

  .kf-actions .kf-btn {
    width: 100%;
  }
}
