/* ========================
   Premium Brief CSS
   Spójny z główną stroną agencji
   Autor: 2024
======================== */

:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #151515;
  --text: #fff;
  --muted: #8a8a8a;
  --accent: #13cee7;
  --border: rgba(255,255,255,0.11);
  --container: 1440px;
  --ease: cubic-bezier(0.22,1,0.36,1);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  min-height: 100%;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #080808;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -15%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 520px at 8% 10%, rgba(19, 206, 231, 0.42) 0%, rgba(19, 206, 231, 0.18) 28%, transparent 70%),
    radial-gradient(circle 600px at 92% 20%, rgba(19, 206, 231, 0.34) 0%, rgba(19, 206, 231, 0.13) 30%, transparent 72%),
    radial-gradient(circle 700px at 78% 58%, rgba(19, 206, 231, 0.24) 0%, rgba(19, 206, 231, 0.08) 30%, transparent 70%),
    radial-gradient(circle 580px at 12% 78%, rgba(19, 206, 231, 0.30) 0%, rgba(19, 206, 231, 0.10) 30%, transparent 72%),
    radial-gradient(circle 650px at 88% 96%, rgba(19, 206, 231, 0.26) 0%, rgba(19, 206, 231, 0.08) 30%, transparent 72%);
  filter: blur(38px) saturate(145%);
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 25% at 50% 0%, rgba(19, 206, 231, 0.14), transparent 72%),
    radial-gradient(ellipse 65% 25% at 50% 100%, rgba(19, 206, 231, 0.11), transparent 72%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.012) 0px, transparent 2px, transparent 24px);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.001s !important;
  }
}

/* ============= Container ============= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 32px;
  background: rgba(16, 16, 16, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.035),
    0 20px 80px rgba(0,0,0,0.58),
    0 0 140px rgba(19,206,231,0.10);
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.container::before {
  content: "";
  position: absolute;
  width: 900px;
  height: 900px;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 206, 231, 0.10) 0%,
    rgba(19, 206, 231, 0.035) 35%,
    transparent 70%
  );
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}

.container::after {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  bottom: 4%;
  right: -260px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 206, 231, 0.15) 0%,
    rgba(19, 206, 231, 0.045) 35%,
    transparent 72%
  );
  filter: blur(42px);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 1100px) {
  .container {
    padding: 32px 18px;
    border-radius: 22px;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 18px 4vw;
    border-radius: 14px;
  }
}

/* ============= Header & Titles ============= */

header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.main-title {
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
  line-height: 1.12;
  color: var(--text);
  text-shadow:
    0 0 20px rgba(19,206,231,0.09),
    0 2px 16px rgba(19,206,231,0.06),
    0 0 55px rgba(19, 206, 231, 0.06);
}

.desc {
  color: var(--muted);
  font-size: 1.18rem;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ============= Progress Bar ============= */

.progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.7rem auto 2.2rem;
  gap: 0.8rem;
  user-select: none;
  position: relative;
  z-index: 20;
  padding: 0.85rem 1rem;
  background: rgba(8, 8, 8, 0.88);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 35px rgba(0,0,0,0.28),
    0 0 28px rgba(19,206,231,0.06);
}

.progress-bar.is-fixed {
  position: fixed;
  top: 0;
  left: var(--progress-left, 0px);
  width: var(--progress-width, 100%);
  margin: 0;
  z-index: 100;
  border-radius: 0 0 16px 16px;
  box-shadow:
    0 12px 35px rgba(0,0,0,0.42),
    0 0 30px rgba(19,206,231,0.09);
}

.progress-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 28px rgba(19,206,231,0.06);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent) 0%, #0e6471 100%);
  box-shadow: 0 0 0 0 var(--accent);
  border: 2px solid var(--surface-2);
  transition:
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  opacity: 0.7;
}

.progress-step.active .progress-dot,
.progress-step.completed .progress-dot {
  background: var(--accent);
  box-shadow:
    0 0 8px 2px var(--accent),
    0 0 1px 0 var(--accent);
  opacity: 1;
  border-color: var(--accent);
}

.progress-step.completed .progress-dot {
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    #0e6471 100%
  );
}

.progress-sep {
  height: 2px;
  width: 42px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    transparent 100%
  );
  opacity: 0.23;
}

/* ============= Form & Sections ============= */

form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2.7rem;
}

.section {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.2rem 2rem 1.7rem 2rem;
  margin-bottom: 0.5rem;
  box-shadow:
    0 2px 16px 0 rgba(19,206,231,0.04),
    0 0 70px rgba(19,206,231,0.025);
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
  gap: 0.8rem;
}

.section-title-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    #0e6471 100%
  );
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  margin-right: 0.6em;
  box-shadow:
    0 0 8px 0 var(--accent),
    0 1px 0 0 var(--border);
}

/* ============= Fields ============= */

.fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-bottom: 0.8rem;
}

@media (max-width: 1100px) {
  .fields-row {
    gap: 1.3rem;
  }
}

@media (max-width: 700px) {
  .fields-row {
    flex-direction: column;
    gap: 0.7rem;
  }
}

.field {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  position: relative;
}

label {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.13em;
  cursor: pointer;
}

.required-star {
  color: var(--accent);
  margin-left: 0.2em;
  font-size: 1em;
  font-weight: 700;
  vertical-align: middle;
}

/* ============= Inputs, Textareas, Selects ============= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="time"],
input[type="number"],
textarea,
select {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: 1.07rem;
  padding: 0.82em 1.1em;
  font-family: inherit;
  outline: none;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease);
  box-shadow: 0 1px 8px 0 rgba(19,206,231,0.03);
  margin: 0;
  width: 100%;
  appearance: none;
  resize: none;
}

textarea {
  min-height: 110px;
  max-height: 340px;
  line-height: 1.5;
  resize: vertical;
}

select {
  cursor: pointer;
  background-image: linear-gradient(
    120deg,
    var(--accent) 0%,
    transparent 100%
  );
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  background-size: 1.3em 1.3em;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent),
    0 1px 8px 0 rgba(19,206,231,0.07);
  background: linear-gradient(
    120deg,
    rgba(19,206,231,0.07) 0%,
    var(--surface) 100%
  );
  outline: none;
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--accent);
  background: linear-gradient(
    120deg,
    rgba(19,206,231,0.04) 0%,
    var(--surface) 100%
  );
}

/* Neon glow for valid/invalid, but only after user interaction */

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: #ff2060;
  box-shadow: 0 0 0 2px #ff2060;
}

input:user-valid,
textarea:user-valid,
select:user-valid {
  border-color: var(--accent);
}

/* ============= Error ============= */

.error-msg {
  color: #ff2060;
  font-size: 0.96em;
  margin-top: 0.3em;
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 1.4em;
  transition: opacity 0.22s var(--ease);
}

/* ============= Checkbox & Radio ============= */

.checkbox-list,
.radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em 2.5em;
  margin: 0.4em 0 0.7em 0;
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  font-size: 1.01em;
  gap: 0.6em;
  cursor: pointer;
  user-select: none;
  color: var(--text);
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
  accent-color: var(--accent);
  width: 1.2em;
  height: 1.2em;
  min-width: 1.2em;
  min-height: 1.2em;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 0 0 1.5px var(--border);
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
  margin-right: 0.4em;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked,
.radio-item input[type="radio"]:checked {
  border-color: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent);
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    #0e6471 100%
  );
}

.checkbox-item input[type="checkbox"]:focus-visible,
.radio-item input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1.5px;
}

/* ============= Buttons ============= */

.add-btn,
.remove-btn,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.74em 1.6em;
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    #0e6471 100%
  );
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 16px 0 rgba(19,206,231,0.09);
  transition:
    background 0.21s var(--ease),
    box-shadow 0.21s var(--ease),
    transform 0.17s var(--ease);
  margin-top: 0.7em;
  min-width: 120px;
  outline: none;
  letter-spacing: -0.01em;
}

.add-btn:hover,
.remove-btn:hover,
.submit-btn:hover {
  background: linear-gradient(
    120deg,
    #27e6ff 0%,
    var(--accent) 100%
  );
  box-shadow:
    0 0 24px 2px var(--accent),
    0 1px 0 0 var(--border);
  transform: translateY(-2px) scale(1.025);
}

.add-btn:focus-visible,
.remove-btn:focus-visible,
.submit-btn:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2.5px;
  box-shadow:
    0 0 0 2px var(--accent),
    0 0 16px 2px var(--accent);
}

.remove-btn {
  background: linear-gradient(
    120deg,
    #ff2060 0%,
    #7e0e2c 100%
  );
  color: #fff;
}

.remove-btn:hover {
  background: linear-gradient(
    120deg,
    #ff4d8a 0%,
    #ff2060 100%
  );
}

.submit-btn {
  font-size: 1.19rem;
  padding: 0.98em 2.1em;
  margin-top: 2.2em;
  border-radius: 16px;
  background: linear-gradient(
    120deg,
    var(--accent) 0%,
    #0e6471 100%
  );
  box-shadow: 0 0 32px 0 rgba(19,206,231,0.13);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.submit-btn:active {
  transform: scale(0.98);
}

/* ============= Counter, Notes, Consents ============= */

.schedule-counter {
  display: inline-block;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.42em 1.1em;
  font-size: 1.04em;
  font-weight: 600;
  margin-left: 0.6em;
  box-shadow: 0 0 8px 0 rgba(19,206,231,0.08);
}


.small-note {
  color: var(--muted);
  font-size: 0.96em;
  margin-top: 0.25em;
  margin-bottom: 0.1em;
}

.upload-note {
  color: var(--muted);
  font-size: 0.9em;
  line-height: 1.55;
  margin-top: 0.35em;
  margin-bottom: 0.15em;
  padding: 0.75em 0.9em;
  background: rgba(19, 206, 231, 0.035);
  border: 1px solid rgba(19, 206, 231, 0.10);
  border-radius: 10px;
}

.consents {
  margin-top: 2.2em;
  padding: 1.2em 1em 0.8em 1em;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 0 12px 0 rgba(19,206,231,0.07);
}

.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  font-size: 0.99em;
  color: var(--muted);
  margin-bottom: 0.7em;
}

.consent-item:last-child {
  margin-bottom: 0;
}

/* ============= Responsive ============= */

@media (max-width: 1100px) {
  html {
    font-size: 16.2px;
  }

  .main-title {
    font-size: 2.1rem;
  }

  .section {
    padding: 1.3rem 1.1rem 1.1rem 1.1rem;
    border-radius: 14px;
  }
}

@media (max-width: 700px) {
  html {
    font-size: 15px;
  }

  .main-title {
    font-size: 1.45rem;
  }

  .section {
    padding: 0.95rem 0.6rem 0.8rem 0.6rem;
    border-radius: 9px;
  }

  .section-title {
    font-size: 1.08rem;
  }

  .section-title-number {
    font-size: 0.95em;
    width: 1.65em;
    height: 1.65em;
    margin-right: 0.45em;
  }

  .progress-bar {
    gap: 0.45rem;
    padding: 0.65rem 0.55rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .progress-step {
    flex: 0 0 auto;
  }

  .progress-sep {
    width: 24px;
    flex: 0 0 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 6vw 1vw;
    border-radius: 8px;
  }

  .progress-bar {
    border-radius: 12px;
    padding: 0.55rem 0.45rem;
  }
}

/* ============= Misc ============= */

::-webkit-input-placeholder {
  color: var(--muted);
  opacity: 1;
}

::-moz-placeholder {
  color: var(--muted);
  opacity: 1;
}

:-ms-input-placeholder {
  color: var(--muted);
  opacity: 1;
}

::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[readonly],
textarea[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
  background: var(--surface-2);
}

input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Hide number input arrows on Chrome/Safari */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

/* Remove blue autofill bg */

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* ============= Utility ============= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============= Language Switch ============= */

.language-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.language-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0.2rem 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.45;
  transition:
    opacity 0.2s var(--ease),
    text-shadow 0.2s var(--ease);
}

.language-btn:hover,
.language-btn.active {
  opacity: 1;
  text-shadow: 0 0 12px rgba(19, 206, 231, 0.55);
}

.language-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .language-switch {
    margin-bottom: 1rem;
    font-size: 0.78rem;
  }
}