/* =========================================================================
   Photo Contest — "Bekijk in je ruimte" winactie
   Campaign until 2026-05-31. Floating badge + AVG-compliant upload modal.
   ========================================================================= */

/* --- Floating badge ----------------------------------------------------- */

.pc-badge {
  position: fixed;
  top: calc(var(--space-20, 5rem) + var(--space-4, 1rem));
  right: var(--space-4, 1rem);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans, 'General Sans', system-ui, sans-serif);
  filter: drop-shadow(0 6px 20px rgba(91, 45, 142, 0.25));
  transition: transform 0.2s ease;
  animation: pc-badge-entrance 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.2s both;
}

.pc-badge:hover,
.pc-badge:focus-visible {
  transform: scale(1.04) rotate(-1deg);
  outline: none;
}

.pc-badge:focus-visible .pc-badge__inner {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--color-primary, #5B2D8E);
}

.pc-badge__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 118px;
  height: 118px;
  padding: 10px 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E87722 0%, #d43f8d 55%, #5B2D8E 100%);
  color: #fff;
  text-align: center;
  line-height: 1.15;
  z-index: 1;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.pc-badge__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.pc-badge__title {
  font-family: var(--font-display, 'Zodiak', serif);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.05;
}

.pc-badge__prize {
  margin-top: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
}

/* Pulse ring */
.pc-badge__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 119, 34, 0.55) 0%, rgba(232, 119, 34, 0) 70%);
  animation: pc-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pc-pulse {
  0%   { transform: scale(0.85); opacity: 0.85; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes pc-badge-entrance {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  70%  { transform: scale(1.1) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-badge,
  .pc-badge__pulse { animation: none; }
}

@media (max-width: 768px) {
  .pc-badge {
    top: auto;
    bottom: calc(var(--space-4, 1rem) + env(safe-area-inset-bottom, 0px));
    right: var(--space-4, 1rem);
  }
  .pc-badge__inner {
    width: 96px;
    height: 96px;
  }
  .pc-badge__title { font-size: 0.78rem; }
  .pc-badge__label { font-size: 0.55rem; }
  .pc-badge__prize { font-size: 0.55rem; }
}

/* --- Modal overlay ------------------------------------------------------ */

.pc-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-6, 1.5rem) var(--space-4, 1rem);
  background: rgba(26, 20, 18, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
}

.pc-overlay.is-open {
  display: flex;
  animation: pc-fade-in 0.25s ease-out both;
}

@keyframes pc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pc-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  background: var(--color-surface-2, #ffffff);
  border-radius: var(--radius-xl, 1rem);
  padding: var(--space-8, 2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: pc-modal-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

@keyframes pc-modal-in {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.pc-modal__close {
  position: absolute;
  top: var(--space-3, 0.75rem);
  right: var(--space-3, 0.75rem);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--color-surface-offset, #f3ede5);
  color: var(--color-text, #1a1412);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pc-modal__close:hover { background: var(--color-surface-offset-2, #ece4da); }

.pc-modal__hero {
  text-align: center;
  margin-bottom: var(--space-6, 1.5rem);
}

.pc-modal__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: var(--space-3, 0.75rem);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 119, 34, 0.15), rgba(91, 45, 142, 0.15));
  color: var(--color-primary, #5B2D8E);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pc-modal__title {
  font-family: var(--font-display, 'Zodiak', serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text, #1a1412);
  margin: 0 0 var(--space-3, 0.75rem);
}

.pc-modal__subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text-muted, #6b5d52);
  margin: 0;
}

/* --- Steps -------------------------------------------------------------- */

.pc-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6, 1.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2, 0.5rem);
}

.pc-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
  background: var(--color-surface-offset, #f3ede5);
  border-radius: var(--radius-md, 0.5rem);
  font-size: 0.88rem;
  color: var(--color-text, #1a1412);
}

.pc-steps li > span:first-child {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary, #5B2D8E);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
}

/* --- Direct Room Visualizer CTA ----------------------------------------- */

.pc-direct-cta {
  margin-bottom: var(--space-6, 1.5rem);
}

.pc-direct-cta__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  margin-bottom: var(--space-4, 1rem);
  color: var(--color-text-faint, #a89888);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pc-direct-cta__divider::before,
.pc-direct-cta__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-surface-offset-2, #ece4da);
}

.pc-direct-cta__link {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
  padding: var(--space-4, 1rem);
  border-radius: var(--radius-lg, 0.75rem);
  background: linear-gradient(135deg, rgba(91, 45, 142, 0.06), rgba(232, 119, 34, 0.06));
  border: 1px solid var(--color-surface-offset-2, #ece4da);
  text-decoration: none;
  color: var(--color-text, #1a1412);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pc-direct-cta__link:hover {
  background: linear-gradient(135deg, rgba(91, 45, 142, 0.12), rgba(232, 119, 34, 0.12));
  border-color: var(--color-primary, #5B2D8E);
  transform: translateX(2px);
}

.pc-direct-cta__link > svg:first-child {
  flex: 0 0 22px;
  color: var(--color-primary, #5B2D8E);
}

.pc-direct-cta__link > svg:last-child {
  flex: 0 0 18px;
  color: var(--color-text-faint, #a89888);
  margin-left: auto;
}

.pc-direct-cta__link strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary, #5B2D8E);
}

.pc-direct-cta__link small {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted, #6b5d52);
  line-height: 1.4;
  margin-top: 2px;
}

/* --- Form --------------------------------------------------------------- */

.pc-form { display: flex; flex-direction: column; gap: var(--space-4, 1rem); }

.pc-form__row { display: flex; flex-direction: column; gap: var(--space-2, 0.5rem); }

.pc-form__row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text, #1a1412);
}

.pc-form__row input[type="text"],
.pc-form__row input[type="email"],
.pc-form__row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-surface-offset-2, #ece4da);
  border-radius: var(--radius-md, 0.5rem);
  background: var(--color-surface, #fff9f3);
  color: var(--color-text, #1a1412);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-form__row input:focus,
.pc-form__row textarea:focus {
  outline: none;
  border-color: var(--color-primary, #5B2D8E);
  box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.15);
}

.pc-form__row textarea { resize: vertical; min-height: 70px; }

/* Dropzone */
.pc-dropzone {
  position: relative;
  border: 2px dashed var(--color-surface-offset-2, #ece4da);
  border-radius: var(--radius-lg, 0.75rem);
  padding: var(--space-6, 1.5rem);
  background: var(--color-surface, #fff9f3);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-dropzone:hover,
.pc-dropzone.is-dragover,
.pc-dropzone:focus-within {
  border-color: var(--color-primary, #5B2D8E);
  background: #faf5ff;
  outline: none;
}

.pc-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.pc-dropzone__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2, 0.5rem);
  color: var(--color-text-muted, #6b5d52);
  font-size: 0.88rem;
  pointer-events: none;
}

.pc-dropzone__hint svg { color: var(--color-primary, #5B2D8E); }

.pc-dropzone__preview {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.pc-dropzone__preview img {
  max-width: 100%;
  max-height: 240px;
  border-radius: var(--radius-md, 0.5rem);
  object-fit: contain;
  background: #000;
}

.pc-dropzone__remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--color-text, #1a1412);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

/* Consent checkbox */
.pc-form__consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3, 0.75rem);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted, #6b5d52);
}

.pc-form__consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--color-primary, #5B2D8E);
}

.pc-form__consent a {
  color: var(--color-primary, #5B2D8E);
  text-decoration: underline;
}

/* Submit */
.pc-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2, 0.5rem);
}

.pc-form__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.pc-form__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.88rem;
  text-align: center;
}
.pc-form__status.is-error   { color: #b42318; }
.pc-form__status.is-success { color: var(--color-accent-hover, #7d8c00); }

.pc-form__fineprint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--color-text-faint, #a89888);
  text-align: center;
}

/* --- Body scroll lock --------------------------------------------------- */
body.pc-modal-open { overflow: hidden; }

/* --- Small-screen modal padding ---------------------------------------- */
@media (max-width: 640px) {
  .pc-overlay { padding: var(--space-3, 0.75rem); }
  .pc-modal  { padding: var(--space-6, 1.5rem) var(--space-5, 1.25rem); }
  .pc-modal__title { font-size: 1.4rem; }
}
