:root {
  --red: #cf2e2e;
  --dark: #121212;
  --light: #ffffff;
  --gray: #f5f5f5;
  --transition: all 0.3s ease;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  /*
  font-family: "Roboto", system-ui, -apple-system, Arial; font-size: 14px;
  */
}


body {
  font-family: "Roboto", sans-serif;
  color: #222;
  background-color: var(--light);
  line-height: 1.6;
}

/* ===========================
   Navbar
=========================== */
.navbar {
  background: var(--light);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.logo img {
  height: 55px;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.25rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

/* ===========================
   Hero Section
=========================== */
.hero {
  position: relative;
  height: 80vh;
  background: url("../img/bg-02.jpg") center/cover fixed no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light);
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
  animation: fadeIn 1.5s ease-in-out;
}

.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--red);
}

.hero-content p {
  margin: 1rem 0;
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.btn-primary {
  background: var(--red);
  color: var(--light);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #b61c1c;
}



.btn-secondary-white {
  /*background: var(--white) !important;*/
  background: white;
  /*color: var(--light);*/
  color: #b61c1c;
  box-shadow: var(--shadow);
}

.btn-secondary-white:hover {
  background: #fafafa;
}



/* ===========================
   Help Section
=========================== */
/*
.help-section {
  padding: 4rem 0;
  text-align: center;
}

.help-section h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--red);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.help-box {
  position: relative;
  background: url("../img/camil-skup-aut.jpg") center/cover no-repeat;
  height: 300px;
  color: var(--light);
  text-decoration: none;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.help-box:nth-child(2) {
  background-image: url("../img/car-lot_web-min.jpg");
}

.help-box:hover {
  transform: scale(1.03);
}

.box-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}

.help-box:hover .box-overlay {
  background: rgba(207, 46, 46, 0.65);
}

.help-box h3 {
  position: relative;
  font-size: 1.5rem;
  margin-top: 100px;
  z-index: 1;
}

.help-box p {
  position: relative;
  z-index: 1;
  margin-top: 0.5rem;
  font-size: 1rem;
}
*/


/* ===========================
   HELP SECTION FIX (NO GAP)
=========================== */

.help-section {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  padding: 0;
}

.help-box {
  position: relative;
  flex: 1 1 50%;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  margin: 0;
  padding: 0;
  cursor:pointer;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.help-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.3s ease;
}

.help-box:hover::before {
  background: rgba(0, 0, 0, 0.25);
}

.help-box h3 {
  position: relative;
  z-index: 2;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

/* --- RWD --- */
@media (max-width: 992px) {
  .help-section {
    flex-direction: column;
  }

  .help-box {
    flex: 1 1 100%;
    min-height: 280px;
  }

  .help-box h3 {
    font-size: 1.5rem;
  }
}

/* Optional smooth zoom on hover */
.help-box:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}




/* ===========================
   CTA
=========================== */
.cta {
  background: var(--red);
  color: var(--light);
  text-align: center;
  padding: 4rem 1rem;
}

.cta h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--dark);
  color: #ccc;
  padding: 3rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer h4 {
  color: var(--light);
  margin-bottom: 1rem;
}

.footer a {
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* ===========================
   FOOTER LINKS ICON STYLE
=========================== */

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

.footer ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.footer ul li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--red);
}

.footer ul li:hover::before {
  color: #fff;
}


/* ===========================
   FOOTER LINK ARROW ANIMATION
=========================== */

.footer ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  overflow: hidden;
}

.footer ul li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  transition: transform 0.25s ease, color 0.25s ease;
}

.footer ul li:hover::before {
  transform: translateX(5px);
  color: #fff;
}

/* Optional subtle text shift for balance */
.footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer ul li a:hover {
  color: var(--red);
  transform: translateX(3px);
}


/* ===========================
   OTHER LISTS (benefits, faq)
=========================== */

.benefits {
  list-style: none;
  padding-left: 0;
}



.benefits li {
  list-style-type: none;
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
  font-size: 1rem;
}

/*
.benefits li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
  line-height: 1.5;
  font-size: 1rem;
}


.benefits li::before {
  content: "»";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: bold;
  font-size: 1.2rem;
  top: 0;
}
*/


.faq-item h3::before {
  content: "»";
  color: var(--red);
  margin-right: 8px;
  font-weight: bold;
}

.footer h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer p {
  color: #aaa;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-logo {
  max-width: 130px;
  margin-bottom: 1rem;
}





/* ===========================
   Animations & Media
=========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
}


/* ===========================
   NAV - RWD MENU
=========================== */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  background: var(--red);
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
}

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  /* Hamburger animation */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Adjust hero for mobile */
  .hero {
    height: 70vh;
    background-attachment: scroll;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  /* Fix content sections */
  .content-section {
    padding: 2.5rem 1rem;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    margin-bottom: 1.5rem;
  }

  .form-box {
    max-width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }

  .help-box {
    height: 250px;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .nav-container {
    padding: 0.5rem 1rem;
  }

  .logo img {
    height: 45px;
  }
}


/* ===========================
   FOOTER RWD ALIGN FIX
=========================== */

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left !important;
  }

  .footer ul li {
    padding-left: 1.1rem; /* Mniejsze odstępy między strzałką a tekstem */
  }

  .footer ul li::before {
    left: 0; /* Strzałka przy samym brzegu */
    font-size: 1rem;
  }

  .footer ul li a {
    display: inline-block;
    padding-left: 0.1rem; /* Lekkie dosunięcie tekstu do strzałki */
  }

  .footer h4 {
    text-align: left;
    margin-top: 1.5rem;
  }

  .footer-col {
    text-align: left;
    margin-bottom: 1rem;
  }
}



/* ===========================
   SUB-HERO / PAGE HEADER (PODSTRONY)
=========================== */

.sub-hero {
  position: relative;
  height: 45vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.sub-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sub-hero .container {
  position: relative;
  z-index: 2;
  padding: 1rem 2rem;
  text-align: center;
  animation: fadeIn 1s ease-in-out;
}

.sub-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.sub-hero p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f1f1f1;
}

.sub-hero p a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.sub-hero p a:hover {
  color: var(--red);
}

/* ===========================
   CONTENT SECTION SPACING FIX
=========================== */
.content-section {
  padding: 30px 20px;
}

@media (max-width: 768px) {
  .sub-hero {
    height: 35vh;
  }

  .sub-hero h1 {
    font-size: 1.6rem;
  }

  .sub-hero p {
    font-size: 0.8rem;
  }
}

/* ===========================
   FEATURES SECTION (UNDER HERO)
=========================== */

.features {
  background-color: var(--red);
  color: #fff;
  padding: 2.5rem 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  align-items: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.8rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  opacity: 0.95;
}

.feature-icon svg {
  width: 50px;
  height: 50px;
  fill: #fff;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon svg {
  transform: scale(1.1);
}

.feature-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* --- RWD --- */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-item h3 {
    font-size: 1.1rem;
  }
}




/* ===========================
   OUR CARS / O NAS SECTION
=========================== */

.our-cars {
  padding: 4rem 1rem;
  background-color: #fff;
}

.our-cars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto; /* 🟢 Wyśrodkowanie całego bloku */
}

.our-cars-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

.our-cars-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222;
}

.our-cars-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

.our-cars-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.our-cars-img img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.our-cars-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- RWD --- */
@media (max-width: 992px) {
  .our-cars-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .our-cars-text {
    max-width: 90%;
    margin: 0 auto;
  }

  .our-cars-text h2 {
    font-size: 1.6rem;
  }

  .our-cars-text p {
    text-align: left;
  }

  .our-cars-img img {
    max-width: 95%;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .our-cars {
    padding: 2.5rem 1rem;
  }

  .our-cars-text h2 {
    font-size: 1.4rem;
  }
}



/* ===========================
   OTOMOTO OFFER SECTION
=========================== */

.otomoto-offer {
  /*background-color: #fff;*/
  background: var(--gray);
  padding: 3rem 1rem 4rem;
  text-align: center;
}

.otomoto-offer h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1.5rem;
}

.otomoto-container {

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.otomoto-logo {
  width: 100%;
  max-width: 250px; /* optymalny rozmiar desktopowy */
  height: auto;
  margin-top: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.otomoto-logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* --- RWD --- */
@media (max-width: 992px) {
  .otomoto-offer h2 {
    font-size: 1.5rem;
  }

  .otomoto-logo {
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .otomoto-offer {
    padding: 2.5rem 1rem;
  }

  .otomoto-offer h2 {
    font-size: 1.3rem;
  }

  .otomoto-logo {
    max-width: 180px;
  }
}







/* ===========================
   NAVIGATION BAR
=========================== */

.navbar {
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  /* max-width: 1300px;*/
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
}

/* --- NAV LINKS --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  /*gap: 1.8rem;*/
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cf2e2e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #a50a0a;
}

/* Active link underline */
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #cf2e2e;
  transition: width 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #cf2e2e;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* --- NAV BUTTONS --- */
.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-outline-red {
  border: 2px solid #cf2e2e;
  color: #cf2e2e;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline-red:hover {
  background: #cf2e2e;
  color: #fff;
}

.btn-blue {
  background: #308be0;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-blue:hover {
  background: #1d74c9;
  transform: translateY(-1px);
}

/* --- RWD --- */
@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}



/* ===========================
   BUTTONS - HEADER MENU
=========================== */

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid #e30613; /* intensywny czerwony */
  color: #e30613;
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 40px;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-red svg {
  fill: #e30613;
  transition: fill 0.3s ease;
}

.btn-outline-red:hover {
  background: #e30613;
  color: #fff;
}

.btn-outline-red:hover svg {
  fill: #fff;
}

/* Niebieski przycisk */
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #308be0;
  color: #fff;
  border: 2px solid #308be0;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 40px;
  padding: 0.55rem 1.4rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-blue svg {
  fill: #fff;
  transition: transform 0.3s ease;
}

.btn-blue:hover {
  background: #1d74c9;
  border-color: #1d74c9;
  transform: translateY(-1px);
}

.btn-blue:hover svg {
  transform: scale(1.1);
}


/* ===========================
   MAP SECTION
=========================== */

.map-section {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* RWD wysokość mapy */
@media (max-width: 768px) {
  .map-container {
    height: 350px;
  }
}



/* ===========================
   CONTACT FORM STYLE
=========================== */

.contact-form-section-base {
  padding: 20px 30px;
  background: #fff;
}

.contact-form-section-base h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 35px 0 20px;
  border-left: 4px solid #fe0100;
  padding-left: 10px;
}

.contact-form-section-base h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin: 25px 0 20px;
  border-left: 4px solid #fe0100;
  padding-left: 10px;
}

/*
.contact-form h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 30px;
}
*/

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form label {
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

/* Pola input / select / textarea */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #fe0100;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Placeholder styl */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

/* Focus effect */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #c90000;
  box-shadow: 0 0 0 3px rgba(254, 1, 0, 0.15);
  outline: none;
}

/* Styl selecta */
.contact-form select {
  appearance: none;
  background: url("data:image/svg+xml;utf8,<svg fill='%23fe0100' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 14px center;
  background-color: #fff;
  background-size: 16px;
}

/* Textarea */
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Przyciski – pozostają bez zmian, ale dla pewności */
.contact-form .btn-submit {
  background-color: #fe0100;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form .btn-submit:hover {
  background-color: #cc0000;
}

/* Responsywność */
@media (max-width: 768px) {

  .contact-form-section {
    padding: 20px 20px;
  }

  .contact-form h2 {
    font-size: 1.4rem;
  }
}



/* ===========================
   FORM ALERT STYLING
=========================== */

.form-alert {
  display: none;
  background-color: #e8f9ee;
  border: 2px solid #28a745;
  color: #155724;
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-alert.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-alert.hide {
  opacity: 0;
  transform: translateY(-10px);
}

/* Styl błędu */
.form-alert.error {
  background-color: #fbeaea;
  border-color: #e30613;
  color: #8b0000;
}

/* ===========================
   RODO CHECKBOX — MICROALIGNMENT + TYPOGRAPHIC FIX
=========================== */

.form-group.rodo {
  margin-top: 25px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* Label — tekst w jednej linii z checkboxem */
.rodo-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 900px;
  flex-wrap: nowrap;
  text-align: left;
}

/* Checkbox */
.rodo-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #fe0100;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 0.25em; /* ✅ mikrojustowanie pionowe */
  transition: transform 0.2s ease;
}

.rodo-label input[type="checkbox"]:active {
  transform: scale(1.1);
}

/* Tekst */
.rodo-text {
  display: inline;
  white-space: normal;
  word-break: keep-all;
  color: #444;
  font-weight: 400;
}

/* Pogrubienie */
.rodo-text strong {
  font-weight: 600;
  display: inline;
}

/* Link */
.rodo-text a {
  color: #fe0100;
  text-decoration: none;
  font-weight: 500;
  display: inline;
  white-space: nowrap;
}

.rodo-text a:hover {
  text-decoration: underline;
}

/* Kropka */
.rodo-text .rodo-dot {
  color: #444;
  display: inline;
  margin-left: 0;
  white-space: nowrap;
}

/* ===========================
   MOBILE OPTIMIZATION
=========================== */
@media (max-width: 768px) {
  .form-group.rodo {
    font-size: 1rem;
    line-height: 1.7;
  }

  .rodo-label {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .rodo-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0.35em; /* ✅ mikrojustowanie mobilne */
    margin-right: 8px;
  }

  .rodo-text {
    display: inline;
    white-space: normal;
    word-break: break-word;
  }

  .rodo-text a {
    display: inline;
    white-space: normal;
  }
}

@media (max-width: 400px) {
  .form-group.rodo {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 2px;
  }

  .rodo-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 0.35em;
  }
}





/* ======================================================
   FORMULARZ WYCENY – STYL GŁÓWNY
   ====================================================== */

.contact-form-section {
  padding: 60px 20px;
  background-color: #fff;
}

.contact-form-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin: 35px 0 20px;
  border-left: 4px solid #fe0100;
  padding-left: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* ======================================================
   POLA FORMULARZA
   ====================================================== */

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #fe0100;
  border-radius: 6px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c90000;
  box-shadow: 0 0 0 3px rgba(254, 1, 0, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
}

/* ======================================================
   CHECKBOXY I WYBÓR
   ====================================================== */

.checkbox-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.checkbox-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}

.checkbox-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fe0100;
  cursor: pointer;
}

/* ======================================================
   WYPOSAŻENIE
   ====================================================== */

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 20px;
}

/* ======================================================
   ZDJĘCIA
   ====================================================== */

.addPhotoBox {
  display: block;
  background-color: #fff;
  border: 2px solid #fe0100;
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0 25px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.addPhotoBox:hover {
  border-color: #cc0000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}



/* --- WYRÓWNANIE W SEKCJI #addPhoto --- */
#addPhoto .photoSetBox{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

/* karta pojedynczego zdjęcia */
#addPhoto .photoRow{
  display: grid;
  grid-template-rows: 1fr auto;   /* 1: miejsce na zdjęcie, 2: przycisk */
  align-items: center;
  justify-items: center;
  height: 320px;                  /* stała wysokość kart dla równego dołu */
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* miniatura: zawiera się w „polu obrazka” i jest wycentrowana */
#addPhoto .photoRow img{
  max-width: 100%;
  max-height: 230px;              /* żeby przycisk miał swoje miejsce */
  width: auto;
  height: auto;
  object-fit: contain;            /* brak przycięcia, ładne skalowanie */
  border-radius: 10px;
  justify-self: center;           /* poziomo */
  align-self: center;             /* pionowo w 1. wierszu (1fr) */
}

/* przycisk usuń – zawsze na dole, centralnie */
#addPhoto .photoRow .photoDelBt{
  align-self: end;                /* dół 2. wiersza (auto) */
  justify-self: center;           /* wyśrodkowany poziomo */
  margin-top: 12px;               /* odstęp od zdjęcia */
  min-width: 92px;                /* identyczna szerokość we wszystkich kartach (opcjonalnie) */
  text-align: center;
}





.photoSetBox {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.photoRow {
  position: relative;
  display: inline-block;
  background: #fafafa;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.photoRow:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.photoRow img {
  width: 160px;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto 8px auto;
  transition: transform 0.2s ease, filter 0.3s ease;
}

.photoRow img:hover {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.photoDelBt {
  display: inline-block;
  padding: 4px 10px;
  background-color: #fff;
  border: 1px solid #fe0100;
  color: #fe0100;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.photoDelBt:hover {
  background-color: #fe0100;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

#noPhotosInf {
  font-size: 0.95rem;
  color: #777;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  padding: 12px 14px;
  border-radius: 6px;
  text-align: center;
  font-style: italic;
}

/* ======================================================
   RODO I CHECKBOX STYL
   ====================================================== */

.rodo {
  margin-top: 25px;
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

.rodo-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.rodo-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #fe0100;
  width: 18px;
  height: 18px;
}

.rodo-text {
  color: #555;
  max-width: 720px;
}

.rodo-text a {
  color: #fe0100;
  font-weight: 600;
  text-decoration: none;
}

.rodo-dot {
  color: #333;
}

/* ======================================================
   PRZYCISK WYSYŁANIA
   ====================================================== */

.btn-submit {
  background-color: #fe0100;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 14px 34px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.btn-submit:hover {
  background-color: #cc0000;
  transform: translateY(-1px);
}



/* wyrównanie i kolor treści przycisku wysyłki */
.btn-submit{
  display: inline-flex;            /* albo flex, jeśli masz width:100% */
  align-items: center;             /* pionowo */
  justify-content: center;         /* poziomo */
  gap: .6rem;                      /* odstęp tekst–ikona */
  color: #fff;                     /* kolor tekstu */
  line-height: 1;                  /* stabilne centrowanie */
}

.btn-submit svg{
  width: 24px;
  height: 24px;
  display: block;
  fill: #fff;                      /* ikona w tym samym kolorze */
}




.fld-req {
  font-size: 0.85rem;
  color: red;
  font-style: italic;
  margin-top: 4px;
}

/* ======================================================
   MODAL SUKCESU
   ====================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.65);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInOverlay 0.3s ease forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 40px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
  animation: popIn 0.35s ease forwards;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.modal-content p {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.4;
}

.btn-close {
  background-color: #fe0100;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-close:hover {
  background-color: #cc0000;
}

/* ======================================================
   RESPONSYWNOŚĆ
   ====================================================== */

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .equip-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 0 20px;
    padding: 30px 20px;
  }
}

/* ======================================================
   WYPOSAŻENIE — STYL KOLUMNOWY
   ====================================================== */

.equip-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px 40px;
  margin-top: 15px;
}

/* kolumna = pionowa lista */
.equip-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* pojedynczy checkbox */
.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #444;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkbox-row label:hover {
  color: #fe0100;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fe0100;
  flex-shrink: 0;
  margin: 0;
}

/* RWD — jedna kolumna na mobile */
@media (max-width: 768px) {
  .equip-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* =========================================================
   Uporządkowane style przeniesione z inline / style blocks
   ========================================================= */
.hero-phone-row{display:flex;align-items:center;gap:10px;margin:0 0 1rem;justify-content:center;}
.hero-phone-link{font-size:2.5rem;font-weight:700;text-decoration:none;color:#f2f2f2;}
.help-box-buy{background-image:url('../img/bg-05.jpg');}
.help-box-sell{background-image:url('../img/bg-01.jpg');}
.map-header{padding:15px;text-align:center;}
.map-frame{border:0;}
.sub-hero-bg-default{background-image:url('../img/bg-01.jpg');}
.sub-hero-bg-car-lot{background-image:url('../img/car-lot_web-min.jpg');}
.form-alert.is-visible{display:block;}
.contact-section-intro{margin:0;padding:20px 20px 0;}
.contact-section-copy{padding:20px;}
.contact-section-form{padding:20px;}
.section-title-tight{margin:0 0 20px;}
.spaced-list-item{margin-bottom:25px;}
.is-hidden{display:none;}

:root{--placeholder-color:#9ca3af;--head-icon-size:2.5em;--head-icon-color:#fe0100;--brand-blue:#2563eb;--brand-blue-hover:#1e4fd1;--text-on-brand:#ffffff;--radius-lg:12px;--shadow-sm:0 2px 6px rgba(0,0,0,.12);}
.contact-form select.select-topic.is-placeholder{color:var(--placeholder-color);}
.contact-form select.select-topic option{color:#111;background:#fff;}
.contact-form select.select-topic option[disabled]{color:var(--placeholder-color);}
section.adress-section-group{display:flex!important;justify-content:flex-start!important;align-items:flex-start!important;gap:48px;padding:0 25px;width:100%;text-align:left;}
section.adress-section-group .address-section,section.adress-section-group .hours-section{flex:1 1 0;min-width:0;margin:0!important;align-self:flex-start;}
.head-icon{display:inline-block;line-height:1;font-size:var(--head-icon-size);color:var(--head-icon-color);vertical-align:middle;}
.head-icon svg{width:1em;height:1em;display:block;fill:currentColor;}
.head-icon svg [fill]{fill:currentColor!important;}
@media (max-width:768px){section.adress-section-group{flex-direction:column;gap:24px;padding:24px;}section.adress-section-group .address-section,section.adress-section-group .hours-section{flex:1 1 auto;width:100%;max-width:100%;align-self:stretch;margin:0!important;text-align:left;}}

.upload-form{border:none;}
input[type="file"].upload-file-input{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}
.btn-upload{display:inline-flex;align-items:center;gap:.6rem;padding:.65rem 1rem;border:0;border-radius:var(--radius-lg);background:var(--brand-blue);color:var(--text-on-brand);font-weight:600;line-height:1;cursor:pointer;box-shadow:var(--shadow-sm);transition:background .2s ease,transform .06s ease,box-shadow .2s ease;user-select:none;-webkit-tap-highlight-color:transparent;}
.btn-upload:hover{background:var(--brand-blue-hover);}
.btn-upload:active{transform:translateY(1px);}
.btn-upload:focus-visible{outline:3px solid rgba(37,99,235,.35);outline-offset:2px;}
.btn-upload svg{width:20px;height:20px;display:block;fill:currentColor;}
.loaderInfo{color:#2663eb;font-size:18px;padding:5px;display:table;width:100%;box-sizing:border-box;}
.loaderInfoCell{display:table-cell;vertical-align:middle;width:49%;}
.loaderInfoCellIcon{text-align:right;}
.loaderInfoCellText{text-align:left;}
.loaderInfoIcon{display:inline-block;color:currentColor;}
