/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  margin: 0;
  overflow-x: hidden;
}

/* ===== HEADER (bez zmian stylistycznych – już OK) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
text-decoration: none;
}

.logo-accent {
  color: #f5b400;
}

.contact {
  font-size: 14px;
  color: #ccc;
}

.contact a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}

.contact a:hover {
  color: #f5b400;
}

/* ===== TEKST ===== */
h1 {
  text-align: center;
  margin-bottom: 30px;
}

.box h2 {
  margin-bottom: 15px;
}

/* ===== LAYOUT ===== */
.container {
  background: transparent;
  max-width: 1200px;
  width: 100%;
  margin: 40px auto;
  padding: 30px;
}

.layout {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== FLEX ===== */
.formularz,
.box-down {
  display: flex;
  gap: 20px;
  min-width: 0;
}

/* ===== BOX ===== */
.box {
  flex: 1;
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 20px;
  min-width: 0;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5),
              0 0 10px rgba(245,180,0,0.2);
}

/* ===== INPUTY ===== */
input, select, textarea {
  width: 100%;
  padding: 10px 5px;
  margin-bottom: 15px;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  font-size: 14px;
}

input::placeholder {
  color: rgba(255,255,255,0.5);
}

input:focus, textarea:focus {
  outline: none;
  border-bottom: 1px solid #f5b400;
  box-shadow: 0 4px 10px rgba(245,180,0,0.2);
}

/* ===== OPCJE ===== */
.option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.25s;
}

.option:hover {
  border-color: rgba(245,180,0,0.6);
  background: rgba(255,255,255,0.03);
}

/* ===== CHECKBOX ===== */
.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  box-sizing: border-box;
}

.consent-full {
  display: none;
  font-size: 13px;
  color: #aaa;
  margin: -5px 0 10px 30px;
}

/* ===== LINKI ===== */
.check-row a {
  color: #f5b400;
  text-decoration: none;
}

.check-row a:hover {
  text-decoration: underline;
}

/* ===== DROPDOWN ===== */
.dropdown {
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  background: #111;
  display: none;
}

.dropdown div {
  padding: 10px;
  cursor: pointer;
}

.dropdown div:hover {
  background: rgba(255,255,255,0.08);
}

/* ===== PREVIEW ===== */
.preview {
  width: 100%;
  max-width: 210mm;
  margin: 40px auto 0;
  border: 1px solid rgba(255,255,255,0.2);
  background: #222;
  overflow-x: auto;
}

/* ===== BUTTONY ===== */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions button {
  padding: 12px 16px;
  background: #f5b400;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.actions button:hover {
  background: #ffcc33;
}

/* ===== ERROR ===== */
.error {
  border-bottom: 1px solid #ff4d4d !important;
}
.form-error {
  display: none;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.5);
  color: #ff4d4d;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: fadeIn 0.3s ease;
}

.form-error.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔥 shake input */
.error {
  border-bottom: 1px solid #ff4d4d !important;
  animation: shake 0.2s;
}

input[type="checkbox"].error {
  outline: 2px solid #ff4d4d;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-3px); }
  100% { transform: translateX(0); }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .container {
    margin: 0;
    padding: 15px;
  }

  .formularz,
  .box-down {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  .actions button {
    width: 100%;
    font-size: 16px;
  }

  input {
    font-size: 16px;
  }

  h1 {
    font-size: 22px;
  }
}
.footer {
    background: #0a0a0a;
    padding: 50px 20px 20px;
    color: #ccc;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* kolumny */
.footer-col h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.8;
}

/* linki */
.footer a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: #f5b400;
}

/* dół */
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    margin-left: 15px;
    font-size: 14px;
}
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 9999;
}
.cookie-banner button {
    background: #f5b400;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}
/* ===== CTA BUTTON ===== */
.cta-offer {
  background: linear-gradient(135deg, #f5b400, #ffcc33) !important;
  color: #000;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.cta-offer:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(245,180,0,0.4);
}

.cta-offer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: 0.3s;
}

.cta-offer:hover::after {
  opacity: 1;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #111;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
  max-width: 400px;
  border: 1px solid rgba(255,255,255,0.1);
}

.modal-box h2 {
  color: #f5b400;
  margin-bottom: 10px;
}

.modal-box button {
  margin-top: 20px;
  background: #f5b400;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}
/* ===== FIX AUTOFILL CHROME ===== */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {

  -webkit-text-fill-color: #fff !important;

  transition: background-color 9999s ease-in-out 0s;

  box-shadow: 0 0 0px 1000px #0a0a0a inset !important;

  border-bottom: 1px solid rgba(255,255,255,0.3) !important;
}
/* ===== PRINT ===== */
@media print {

  body > *:not(#print-area) {
    display: none !important;
  }

  #print-area {
    display: block;
    width: 100%;
  }

  #print-area .page {
    background: white;
    color: black;
  }
}