/* ============ FORMULARZ ============ */

.form-page {
  min-height: 100vh;
  background: var(--off-white);
  padding-top: 80px;
}

/* ── Hero ── */
.form-hero {
  background: var(--black);
  text-align: center;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}

.form-hero::before,
.form-hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-color: rgba(207,2,52,0.35);
  border-style: solid;
  pointer-events: none;
}

.form-hero::before { top: 32px; left: 32px; border-width: 2px 0 0 2px; }
.form-hero::after  { bottom: 32px; right: 32px; border-width: 0 2px 2px 0; }

.form-hero .section-label {
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}

.form-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Wrapper ── */
.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.form-card {
  background: var(--white);
  border: 1.5px solid rgba(207,2,52,0.2);
  border-radius: 2px;
  padding: 52px 56px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

/* ── Sekcja ── */
.form-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(207,2,52,0.6);
  margin-bottom: 6px;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--black);
  margin-bottom: 6px;
}

.form-section-deco {
  width: 36px;
  height: 2px;
  background: var(--red);
  margin-bottom: 28px;
}

.form-section-note {
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

/* ── Siatka ── */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group:last-child { margin-bottom: 0; }

/* ── Etykiety ── */
.form-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.form-question-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.3px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.form-question-num {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--red);
  min-width: 30px;
  line-height: 1;
}

/* ── Input / Textarea ── */
.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #d0d0d0;
  border-radius: 2px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #b8b8b8; }

.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(207,2,52,0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

/* ── Blok pytania ── */
.form-question-block {
  margin-bottom: 32px;
}

.form-question-block:last-child { margin-bottom: 0; }

/* ── Skala (1-5, 1-10) ── */
.scale-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scale-track {
  display: flex;
  gap: 6px;
  align-items: center;
}

.scale-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.scale-opt input[type="radio"] { display: none; }

.scale-opt span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #d8d8d8;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  transition: all 0.18s ease;
  cursor: pointer;
}

.scale-opt input[type="radio"]:checked + span {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.scale-opt:hover span {
  border-color: var(--red);
  color: var(--red);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--black);
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0 2px;
}

/* ── A/B wybór ── */
.ab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ab-option input[type="radio"] { display: none; }

.ab-option label {
  display: flex;
  flex-direction: column;
  padding: 20px 18px;
  border: 1.5px solid #d8d8d8;
  cursor: pointer;
  transition: all 0.18s ease;
  gap: 8px;
}

.ab-letter {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--black);
  line-height: 1;
  transition: color 0.18s ease;
}

.ab-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  transition: color 0.18s ease;
}

.ab-option input:checked + label {
  border-color: var(--red);
  background: rgba(207,2,52,0.04);
}

.ab-option input:checked + label .ab-letter { color: var(--red); }
.ab-option input:checked + label .ab-text   { color: var(--black); }
.ab-option label:hover { border-color: rgba(207,2,52,0.4); }

/* ── Radio opcje (pionowe) ── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.radio-item:hover { border-color: rgba(207,2,52,0.35); }

.radio-item input[type="radio"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.radio-item input:checked ~ .radio-text { color: var(--red); font-weight: 700; }

.radio-item.selected { border-color: var(--red); background: rgba(207,2,52,0.04); }

.radio-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  transition: color 0.18s;
}

/* ── Checkboxy grupy ── */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.checkbox-item:hover { border-color: rgba(207,2,52,0.35); }

.checkbox-item input[type="checkbox"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-item input:checked ~ .checkbox-text { color: var(--red); font-weight: 700; }

.checkbox-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
  transition: color 0.18s;
}

/* ── Multi-input (must have / no go / cechy) ── */
.multi-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.multi-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.multi-input-num {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--red);
  min-width: 22px;
  line-height: 1;
}

/* ── Ranking drag & drop ── */
.ranking-hint {
  font-size: 12px;
  color: var(--black);
  font-style: italic;
  margin-bottom: 12px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid #e0e0e0;
  cursor: grab;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
  user-select: none;
}

.ranking-item:active { cursor: grabbing; }

.ranking-item.dragging {
  opacity: 0.45;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ranking-item.drag-over {
  border-color: var(--red);
  background: rgba(207,2,52,0.04);
}

.ranking-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--red);
  min-width: 22px;
  text-align: center;
}

.ranking-handle {
  color: var(--black);
  font-size: 18px;
  line-height: 1;
  cursor: grab;
  flex-shrink: 0;
}

.ranking-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.3px;
}

/* ── Pytania sceniczne (max 5) ── */
.scene-counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 16px;
}

.scene-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.scene-item:hover { border-color: rgba(207,2,52,0.35); }

.scene-item input[type="checkbox"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.scene-item input:checked ~ .checkbox-text { color: var(--red); }

.scene-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Regulamin ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.form-check:last-child { margin-bottom: 0; }

.form-checkbox {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--red);
  margin-top: 2px;
  cursor: pointer;
}

.form-check-label {
  font-size: 14px;
  color: var(--black);
  line-height: 1.6;
  cursor: pointer;
}

.form-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-link:hover { color: #a5021e; }

/* ── Submit ── */
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid #ebebeb;
  margin-top: 8px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--black);
  letter-spacing: 0.5px;
}

.form-btn {
  padding: 16px 52px;
  font-size: 13px;
  letter-spacing: 2.5px;
}

/* ── Footer ── */
.footer {
  background: var(--black);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--white);
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-2);
  letter-spacing: 0.5px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .form-card { padding: 36px 24px; }
  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }
  .ab-grid { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .form-submit { flex-direction: column; align-items: flex-start; }
  .form-btn { width: 100%; text-align: center; }
  .scale-opt span { width: 34px; height: 34px; font-size: 13px; }
}
