/* RESET I PODSTAWOWE STYLE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f0f3f6; /* Jasnoszare tło strony z nagłówka Voila! */
  color: #1e293b;
  line-height: 1.5;
  padding: 0 20px 20px 20px;
}

/* KONTENER FORMULARZA */
.form-wrapper {
  max-width: 680px;
  margin: 10px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(14, 56, 99, 0.08), 0 8px 10px -6px rgba(14, 56, 99, 0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background-color: #ffffff;
  border-bottom: 2px solid #f0f3f6;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-img {
  max-height: 45px;
  width: auto;
}

.logo-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge {
  background-color: #81b214; /* Zielony akcent Voila! */
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-container {
  padding: 32px;
}

.form-header {
  margin-bottom: 24px;
}

.form-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0e3863; /* Ciemny granat z logo i baneru */
  margin-bottom: 12px;
}

/* UKRYCIE POLA HONEYPOT (BOTY) */
.hp-field {
  display: none !important;
}

/* SEKCJE I POLA */
.section-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0e3863; /* Zielony akcent Voila! */
  letter-spacing: 0.05em;
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-number {
  background: #f1f8e9;
  color: #5a8309;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0e3863;
  margin-bottom: 6px;
}

.required {
  color: #dc2626;
  font-weight: 700;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0e3863;
  transition: all 0.2s ease-in-out;
  background-color: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #0e3863;
  box-shadow: 0 0 0 4px rgba(14, 56, 99, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* CHECKBOXY */
.checkbox-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 10px;
  align-items: center;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  white-space: nowrap;
}

input[type="checkbox"], input[type="radio"] {
  accent-color: #0e3863;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.inline-input {
  margin-top: 0;
  width: 100%;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: #334155;
  cursor: pointer;
}

.terms-label input {
  margin-top: 3px;
}

/* PRZYCISKI */
.submit-btn {
  width: 100%;
  background-color: #0e3863; /* Granatowy przycisk główny (jak na banerze i menu) */
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 16px;
  box-shadow: 0 4px 12px rgba(14, 56, 99, 0.25);
}

.submit-btn:hover {
  background-color: #0a294a;
}

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

.footer-text {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 20px;
  text-align: center;
  line-height: 1.4;
}

.privacy-link {
  color: #81b214;
  font-weight: 600;
  text-decoration: underline;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  background: #0e3863;
  color: #f8fafc;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border: 1px solid #1e4a7a;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

.cookie-btn {
  align-self: flex-end;
  background: #81b214;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.cookie-btn:hover {
  background: #6f9c0f;
}

/* ALERT ERROR */
.alert-error {
  background-color: #fef2f2;
  border: 2px solid #ef4444;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* REGULACJE KLAS DLA KOMUNIKATÓW I ZIELONEJ KARTY */
.info-box {
  background-color: #f7faf0;
  border-left: 4px solid #81b214;
  border-top: 1px solid #e2f0d3;
  border-right: 1px solid #e2f0d3;
  border-bottom: 1px solid #e2f0d3;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
  box-shadow: 0 2px 6px rgba(129, 178, 20, 0.12);
  width: 100%;
}

.info-box-text {
  color: #385303;
  margin: 0;
  line-height: 1.45;
  font-size: 0.875rem;
  font-weight: 600;
}

.info-box-title {
  color: #5a8309;
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 800;
}

.label-bold {
  font-weight: 700;
}

.form-group-spaced {
  margin-top: 15px;
}

.voucher-disclaimer {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 12px;
  font-family: system-ui, sans-serif;
}

/* KARTA POTWIERDZENIA (SUCCESS CARD) */
.success-card {
  background-color: #f7faf0;
  border-radius: 12px;
  padding: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  width: 100%;
  border: 2px solid #81b214;
  box-shadow: 0 6px 16px rgba(129, 178, 20, 0.15);
  margin-bottom: 20px;
}

.success-card-title {
  color: #0e3863;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.success-card-text {
  color: #385303;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.success-card-link {
  color: #81b214;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #81b214;
  padding-bottom: 2px;
}

.success-card-info {
  color: #385303;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.success-card-subinfo {
  color: #5a8309;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

.alert-db-error {
  margin-top: 10px;
  padding: 12px;
  background-color: #fef2f2;
  border: 1.5px solid #f87171;
  color: #7f1d1d;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
}

.error-code-box {
  display: block;
  margin-top: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-family: monospace;
  word-break: break-all;
}