/* Improved responsive styles for contact page */
/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  color: #333;
  background: #ffffff;
display: flex;
  flex-direction: column;
  min-height: 100vh;

}
img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
a {
  color: #004A7F;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #007ACC;
  text-decoration: underline;
}
ul, li {
  list-style: none;
}

/* Layout Containers */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  color: #004A7F;
  margin-bottom: 0.75em;
  line-height: 1.3;
}
h2 { font-size: 1.8em; }
h3 { font-size: 1.2em; margin-top: 1.2em; }
p { margin-bottom: 1.3rem; font-size: 1.05em; }


/* Navbar Styles */
header {
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
   justify-content: center;
  align-items: center;
  padding: 1rem ;
  max-width: 1200px;
  width: 100%;
margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.4em;
  font-weight: 600;
  color: #004A7F;
}

.logo img {
  max-height: 50px;
  width: auto;
  margin-right: 0.5rem;
}

.logo span {
  font-weight: 400;
  color: #007ACC;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu li a {
  font-weight: 600;
  position: relative;
  font-size: 0.95em;
  padding: 0.3em 0;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #007ACC;
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
  width: 100%;
}


/* Contact Section */
.contact-container {
  position: relative;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2.5rem 2rem;
  background-color: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 
  0 0 20px rgba(100, 150, 200, 0.25),
  0 0 40px rgba(120, 160, 200, 0.15),
  0 0 60px rgba(140, 170, 210, 0.1),
  0 10px 30px rgba(0, 0, 0, 0.05);





  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s ease;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 122, 204, 0.15),
              0 12px 40px rgba(0, 0, 0, 0.07);
}

.contact-container h1 {
  font-size: 1.8rem;
  color: #004A7F;
  margin-bottom: 0.5rem;
  text-align: center;
}

.contact-container .intro {
  font-size: 1.1rem;
  color: #007ACC;
  margin-bottom: 0.3rem;
  font-weight: 500;
  text-align: center;
}

.contact-container .message {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
  max-width: 500px;
  margin-bottom: 2rem;
}

/* Formularz */
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.input-group {
  position: relative;
}

.input-group input {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem 1.2rem 1rem 2.8rem;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.input-group input:focus {
  border-color: #007ACC;
  outline: none;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #007ACC;
}

/* Zgody RODO */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  text-align: left;
  position: relative;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-group label {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  flex: 1;
}

.checkbox-group label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid #007ACC;
  border-radius: 4px;
  background-color: #fff;
  transition: all 0.2s ease;
}

.checkbox-group input[type="checkbox"]:checked + label::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 10px;
  border: solid #007ACC;

  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}


/* Przycisk i przycisk powrotu */
.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  flex: 1;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-back {
  background: #e0e0e0;
  color: #333;
}

.btn-submit {
  background: linear-gradient(135deg, #005b99, #00aaff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 90, 150, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 90, 150, 0.4);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 90, 150, 0.2);
}

/* Komunikat bezpieczeństwa */
.security-notice {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  padding: 10px;
  margin: 15px 0;
  border-radius: 4px;
  font-size: 14px;
  color: #2e7d32;
  text-align: left;
}

/* Walidacja błędów */
#validation-errors {
  display: none;
  background: #ffebee;
  border: 1px solid #f44336;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  color: #c62828;
  font-size: 0.9rem;
  text-align: left;
}

/* Animacja fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Styl dla wrappera */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

/* Dostosowanie istniejącego kontenera formularza */
.contact-container {
  flex: 1;
  max-width: 600px;
  margin: 0; /* Usuwamy domyślny margin, bo wrapper teraz kontroluje pozycję */
}

/* Styl dla kontenera obrazka */
.contact-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsywność */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-image {
    margin-top: 2rem;
  }
}



/* Footer */
.footer {
  background: #004A7F;
  color: white;
  padding: 3rem 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-section a {
  color: #66b3ff;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-menu { display: none; position: absolute; top: 100%; right: 0; background: #fff; flex-direction: column; width: 200px; padding: 1rem; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
  .nav-menu.active { display: flex; }
  .hamburger { display: block; }
}
@media (max-width: 768px) {
  .contact-info .contact-row { flex-direction: column; }
  .contact-info iframe { height: 250px; }
}
@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .contact-container { padding: 1.5rem; }
  .logo { font-size: 1.2em; }
}

/* =================================================================== */
/* ========== POPRAWKI MOBILNE DLA PASKA NAWIGACYJNEGO ========== */
/* =================================================================== */

/* Ukrywa dodatkowy tekst w logo na małych ekranach */
@media (max-width: 768px) {
  .logo .hide-on-small {
    display: none; /* Ukrywa element o tej klasie */
  }

  /* Dodatkowe wyśrodkowanie dla pewności, że logo jest centralnie */
  .navbar {
    justify-content: center;
  }
}

/* =================================================================== */
/* ==========       STYLE DLA URZĄDZEŃ MOBILNYCH        ========== */
/* =================================================================== */

@media (max-width: 768px) {

  /* 1. Poprawki dla paska nawigacyjnego (navbar) */
  .logo .hide-on-small {
    display: none; /* Ukrywa tekst "| Pełny formularz kontaktowy" */
  }
  .navbar {
    justify-content: center; /* Centruje logo */
  }
  .logo {
    margin-left: 0; /* Usuwa przesunięcie logo, aby było na środku */
  }

  /* 2. Zmiany w sekcji Hero */
  .hero-content .hero-logo {
    display: none; /* Ukrywa logo w sekcji hero */
  }
  .hero-content .hero-text {
    text-align: center; /* Centruje tekst */
    margin-left: 0; /* Usuwa zbędny margines */
    align-items: center; /* Dodatkowe centrowanie dla pewności */
  }
  .hero-text h2 {
    font-size: 1.6em; /* Zmniejsza czcionkę głównego nagłówka w hero */
    white-space: normal; /* Pozwala na łamanie tekstu */
  }
  .hero-text .cta-button {
    margin-left: 0; /* Usuwa przesunięcie przycisku */
  }

  /* 3. Zmiany w nagłówku formularza */
  .form-header h2 {
    font-size: 1.8em; /* Zmniejsza czcionkę "Otrzymaj dopłatę już w 48h" */
  }

  /* 4. Ukrycie kółeczek z numerami kroków w formularzu */
  .step-indicator .step-number {
    display: none; /* Ukrywa kółka z numerami kroków */
  }
  .step-indicator {
    padding: 0.8rem 0.5rem; /* Poprawia wygląd po usunięciu kółek */
    font-size: 0.95em;
    justify-content: center;
  }
  
  /* 5. Dodatkowe poprawki dla formularza na małych ekranach */
  .form-steps {
    flex-direction: row; /* Zapewnia, że kroki są w rzędzie */
    flex-wrap: wrap; /* Pozwala na zawijanie kroków do nowej linii */
    justify-content: center; /* Centruje kroki */
    gap: 0.2rem;
  }
  .step-indicator {
    flex-basis: 30%; /* Każdy krok zajmuje ok. 1/3 szerokości */
    min-width: 100px;
  }
}

