/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}
/* Nagłówek w nowym układzie */
header {
  background-color: #005f99; /* ciemniejszy niebieski */
  padding: 10px 20px;
  color: white;
}

.header-container {
  display: flex;
  /* align-items: center; */
  align-items: left;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  /* background-color: #0077b6; /* jaśniejszy niebieski dla logo */
  padding: 2px 2px;
  font-weight: bold;
}

.title {
  flex: 1;
  /* text-align: center; */
  padding: 30px 20px;
  text-align: left;
  font-size: 30px;
  font-weight: bold;

}

nav > ul {
  display: flex;
  list-style: none;
  gap: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 4px;
}

nav ul li a.active {
  background-color: #00b4d8; /* wyróżnienie pierwszego menu */
}

nav ul li a:hover {
  background-color: #0096c7;
}

/* Sekcje */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

section {
  margin-bottom: 50px;
}

section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #0077b6;
}

.map-placeholder {
  /* background-color: #e0f7fa; */
  /* border: 2px dashed #00b4d8; */
  padding: 40px;
  text-align: center;
  font-style: italic;
  color: #555;
}

/* Przyciski */
.cta {
  display: inline-block;
  background: #00b4d8;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  border: none;
}

.cta:hover {
  background: #0096c7;
}

/* Stopka */
footer {
  background-color: #005f99;
  color: white;
  padding: 30px 20px 10px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap; /* żeby na mobile kolumny układały się jedna pod drugą */
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-column h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #90e0ef;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-column ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

/* Styl ogólny menu */
/* hover tylko dla głównych elementów */
.menu > .menu-item > a:hover {
  background-color: #00b4d8;
}

/* aktywny element główny */
.menu-item.active > a {
  background-color: #00b4d8;
}

/* Styl ogólny formularza */
form.form-google {
  /*max-width: 1200px; */
  width: 900px;
  margin: 30px auto;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

form.form-google h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #007BFF;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-required {
  color: red;
  margin-left: 4px;
}
  .hint { font-size:0.9em; color:#666; }
  .error { color: #c00; }
  
button.btn-submit {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: #00b4d8 /*#007BFF*/;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.btn-submit:hover {
  background-color: #0056b3;
}

/* Styl błędów (opcjonalnie) */
.error-message {
  color: red;
  font-size: 14px;
  margin-top: 4px;
}

/* === MENU MOBILNE === */
.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

/* Układ menu domyślnie (desktop) */
.main-nav {
  /* position: relative; */
  margin-left: auto; /* przesuwa menu do prawej */
  max-width: 1200px;
}

/* Dla mniejszych ekranów */
@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    width: 100%;
    display: none;
    background-color: #005f99;
  }

  .main-nav.open {
    display: block;
  }

  .menu {
    flex-direction: column;
    gap: 0;
  }

  .menu-item a {
    display: block;
    width: 100%;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .menu-item a:hover {
    background-color: #00b4d8;
  }

  .menu-highlight {
    display: none; /* ukrywamy animację kafelka na mobile */
  }

  .dropdown {
    position: static;
    display: none;
    width: 100%;
    background-color: #004a7a;
  }

  .dropdown .dropdown {
    margin-left: 15px; /* wizualne zagnieżdżenie */
  }

  .has-dropdown.open > .dropdown {
    display: block;
  }

  .dropdown li a {
    padding-left: 30px;
  }
}
/* === DROPDOWN OGÓLNY === */

.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  flex-direction: column;
  top: 100%;
  left: 0;
  background-color: #005f99;
  list-style: none;
  min-width: 220px;
  border-radius: 6px;
  overflow: visible;
  z-index: 1000;
}

/* każdy kolejny poziom idzie w bok */
.dropdown .dropdown {
  top: 0;
  left: 100%;
}

/* pokazanie dropdown na hover (desktop) */
.has-dropdown:hover > .dropdown {
  display: block;
}

/* linki */
.dropdown li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.dropdown li a:hover {
  background-color: #00b4d8;
}

/* strzałki dla podmenu */
.has-dropdown > a::after {
  content: " ▼";
  font-size: 0.7em;
}

.dropdown .has-dropdown > a::after {
  content: " ▶";
  float: right;
}

/* aktywny główny element */
.menu-item.active > a {
  background-color: #00b4d8;
}

/* aktywny element w dropdown */
.dropdown a.active {
  background-color: #0096c7;
}

/* Mobile override for nested dropdown positioning (level 3+) */
@media (max-width: 768px) {
  .dropdown .dropdown {
    position: static;
    left: auto;
    top: auto;
    margin-left: 15px; /* wizualne zagnieżdżenie */
  }
}