/* === GLOBAL === */
body {
  font-family: 'Inter', 'Poppins', Arial, sans-serif;
  background: #f8f8f8;
  color: #232323;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* === MENU GŁÓWNE === */
/* === GŁÓWNA NAWIGACJA === */
.main-nav{
  width:100vw;
  min-width:100vw;
  background:#ededed;
  border-bottom:1.5px solid #d1d5db;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 40px 16px;
  margin-left:calc(-50vw + 50%);
  margin-right:calc(-50vw + 50%);
  position:relative;
  z-index:10;
  box-sizing:border-box;
}

/* Logo */
.nav-left{flex:0 0 auto;}
.main-logo{height: 110px;}

/* Linki w centrum */
.nav-center{
  display:flex;
  gap:36px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:center;
  flex:1 1 0;
}
.nav-center li a{
  display:inline-block;
  text-decoration:none;
  color:#009B72;               /* zielony motyw */
  font-family:'Poppins',Arial,sans-serif;
  font-weight:600;
  font-size:1.14rem;
  padding-bottom:2px;          /* kompensacja podkreślenia */
  transition:color .2s;
}
.nav-center li a:hover,
.nav-center li a.active{color:#065b3a;}

.nav-center li a.active{
  padding-bottom:0;            /* ↓ odbiera 2 px, więc wysokość się nie zmienia */
}

/* Prawa część – numer telefonu */
.nav-right{flex:0 0 auto;display:flex;align-items:center;}
.phone-btn{
  background:#009B72;
  color:#fff;
  padding:10px 24px;
  border-radius:22px;
  font-weight:700;
  font-size:1.09rem;
  text-decoration:none;
  transition:background .18s;
  box-shadow:0 2px 8px rgba(0,155,114,.12);
}
.phone-btn:hover{background:#037f5a;}
/* hamburger menu */
.menu-toggle {
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  position:relative;
  z-index:1001;
}
.menu-toggle span {
  width:25px;
  height:3px;
  background:#009B72;
   transition:all .3s ease;
}
.menu-toggle.active span:nth-child(1){transform:rotate(45deg) translate(5px,5px);}
.menu-toggle.active span:nth-child(2){opacity:0;}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px);}
/* === RESPONSYWNOŚĆ === */
@media (max-width:900px){
  .main-nav{flex-direction:column;padding:10px 8px;gap:8px;}
.nav-center{display:none;flex-direction:column;gap:10px;width:100%;}
  .nav-center.open{
    display:flex!important;
    position:fixed;top:0;left:0;
    width:100%;height:100vh;
    background:rgba(0,0,0,.8);
    justify-content:center;align-items:center;
    gap:30px;z-index:1000;
  }
  .nav-center.open li a{
    color:#009B72;font-size:2.5rem;font-weight:800;text-transform:uppercase;
  }
  .nav-center.open li a:hover{color:#065b3a;}
  .phone-btn{width:100%;text-align:center;margin-top:7px;}
  .menu-toggle{display:flex;}
}

/* Dodatkowe korekty układu */
@media (max-width:800px){
  .logo-box{margin-right:0;margin-bottom:6px;}
  .why-grid,.footer-grid{grid-template-columns:1fr;gap:18px;}
  .about-section,.why-section{padding:30px 0 18px;}
}



/* === FORMULARZ === */
.form-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.08);
  box-sizing: border-box;
}
.step-indicator {
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #174b36;
}
.form-step {
  display: none;
  flex-direction: column;
  gap: 16px;
}
.form-step.active {
  display: flex;
}
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
button {
  padding: 12px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 22px;
  background: #009B72;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover {
  background: #037f5a;
}
.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* === SAMOCHODY === */
.lista-samochodow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
car-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #e0fff2;
  border: 1px solid #009B72;
   border-radius: 12px;
  cursor: pointer;
  gap: 10px;
}
.car-option input[type="checkbox"] {
  transform: scale(1.2);
}
.car-desc-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.car-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.car-modal.show { display: flex; }
.car-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}
.close-modal {
  float: right;
  cursor: pointer;
  font-size: 1.4rem;
}

/* === ZGODA === */
label input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2);
}
label {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
}

/* === KOMUNIKAT SUKCESU === */
.sukces-komunikat {
  margin-top: 30px;
  padding: 18px;
  background: #e0fff2;
  border-left: 6px solid #009B72;
  border-radius: 8px;
  font-size: 1.08rem;
  color: #065b3a;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 600px) {
  .form-wrapper {
    padding: 18px;
  }
  .button-row {
    flex-direction: column;
    gap: 12px;
  }
  .step-indicator {
    font-size: 1rem;
  }
}

/* === STOPKA (spójność z index.html) === */
.footer {
  background: #174b36;
  color: white;
  padding: 40px 0;
}
.footer-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 20px;
  align-items: flex-start;
}
.footer-logo {
  width: 120px;
  display: block;
  margin-bottom: 14px;
}
.footer-col h4 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.footer-menu {
  list-style: none;
  padding: 0;
}
.footer-menu li {
  margin-bottom: 6px;
}
.footer-menu li a {
  color: #e0fff2;
  text-decoration: none;
}
.footer-menu li a:hover {
  color: #009B72;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #aee6d5;
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #009688;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* === KAFELKI WYBORU SAMOCHODU === */
.car-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f0fdfa;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 155, 114, 0.08);
}

.car-option:hover {
  border-color: #009B72;
  background-color: #e6fffa;
}

.car-option input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 12px;
}

.car-option span {
  font-size: 1.05rem;
  font-weight: 600;
  color: #174b36;
  flex: 1;
}

/* Strzałka / ikona do rozwijania opisu */
.car-desc-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #009B72;
  cursor: pointer;
  transition: transform 0.2s;
}

.car-desc-btn:hover {
  transform: scale(1.2);
}

/* === MODAL PO ROZWINIĘCIU === */
.car-modal-content {
  background: white;
  padding: 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.car-modal-content h3 {
  margin-top: 0;
  color: #174b36;
}

.car-modal-content p {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

.car-modal-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 15px;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #555;
}
/* Obrazek "przykład.png" w pustej liście aut */
.brak-aut img {
  max-width: 50%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border-radius: 8px;
}
.brak-aut {
  text-align: center;
  line-height: 1.6;
}

.info-box {
  background: #f0f0f0;
  border-left: 4px solid #009B72;
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  line-height: 1.6;
}

.info-box strong {
  color: #009B72;
}