body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: #fff;
  color: #b3001b;
}
/* Modern centered navbar with glassmorphism and dropdown */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(179,0,27,0.12);
  border-radius: 0 0 24px 24px;
  padding: 1.5rem 2rem 1rem 2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 30;
}
.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #b3001b;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  position: relative;
}
.nav-links li {
  position: relative;
}
.nav-links li a {
  color: #b3001b;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #b3001b 0%, #ff4d4d 100%);
  border-radius: 2px;
  transition: width 0.3s;
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
}
.nav-links li a:hover::after {
  width: 80%;
}
.nav-links li a:hover {
  color: #fff;
  background: #b3001b;
}
/* Dropdown styles */
.dropdown {
  position: relative;
}
.dropbtn {
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.98);
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  border-radius: 12px;
  z-index: 40;
  flex-direction: column;
  padding: 0.5rem 0;
}
.dropdown-content a {
  color: #b3001b;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  display: block;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.dropdown-content a:hover {
  background: #b3001b;
  color: #fff;
}
.dropdown:hover .dropdown-content {
  display: flex;
}

.menu-toggle { /* Hamburger ikon alapból rejtve */
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #b3001b;
  user-select: none;
}

@media (max-width: 700px) {
  .navbar {
    padding: 1rem 0.5rem 0.5rem 0.5rem;
    border-radius: 0 0 12px 12px;
  }
  .navbar .logo {
    font-size: 1.3rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    text-align: center;
  }
  .nav-links li a {
    font-size: 1rem;
    padding: 0.4rem 0.7rem;
  }
  .dropdown-content {
    min-width: 120px;
    font-size: 0.95rem;
  }
  .nav-links.show {
    display: flex; /* megjelenik ha aktiválva van */
  }
  .menu-toggle {
    display: block;
    margin-top: 0.5rem;
  }
}
.section {
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.home-section {
  position: relative;
  min-height: 80vh;
  justify-content: flex-end;
  background: #fff;
}

/* Index specific look changes*/

.video-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow: hidden;
}
.video-bg video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.video-fade {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,1) 100%);
  z-index: 1;
}
.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

h1, .intro-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #b3001b;
  font-weight: 700;
  margin: 0 1.2rem;
  margin-bottom: 2rem;
}

.intro-content p {
  font-size: 1.2rem;
  color: #b3001b;
}

.section-divider {
  height: 40px;
  width: 100%;
  background: linear-gradient(to right, #fff, #fdf0f2, #fff);
  margin: 2rem 0;
}

.uses-section {
  margin-top: -1rem; /* slightly overlaps to reduce empty space */
  padding-top: 3rem;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
}

h2, .uses-section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  color: #b3001b;
  font-weight: 600;
  margin-bottom: 3rem;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.use-card {
  background: #fff;
  border: 1px solid #f0c0c7;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.use-card h3 {
  margin-top: 0;
  color: #b3001b;
}

.use-card p {
  color: #555;
}

.use-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* ---------- Form-focused styling (replace or append only these) ---------- */

/* Make the contact area form wider and centered */
.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 720px;        /* wider than the original 400px */
  margin: 0 auto;          /* center horizontally */
  background: #fff;             /* #fff */
  padding: 2.2rem;         /* slightly more breathing room */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12); /* a bit stronger for emphasis */
  align-self: center;
}

/* Slightly larger inputs and clearer focus state for accessibility */
.contact-section input,
.contact-section textarea,
.contact-section select {
  padding: 0.85rem;
  border: 1px solid #b3001b;
  border-radius: 8px;
  background: #fff;
  color: #b3001b;
  font-size: 1rem;
  transition: box-shadow .12s, border-color .12s;
}

.contact-section input:focus,
.contact-section textarea:focus,
.contact-section select:focus {
  outline: none;
  border-color: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(179,0,27,0.08);
}

/* Use your print-form grid when available to show form + right summary column */
.print-form {
  display: grid;
  grid-template-columns: 1fr 360px; /* form column + right-side summary */
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;       /* allow the whole area to stretch */
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  margin: 0 auto;
}

/* Right column (summary) should align to top and stay visually distinct */
.print-form .summary {
  align-self: start;
  padding: 1rem;
  border-radius: 10px;
  background: #fff5f7;
  border: 1px dashed rgba(179,0,27,0.12);
  color: #b3001b;
  font-size: 0.95rem;
}

/* Make dimension inputs sit nicely inline and grow */
.dimensions-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: nowrap;
}
#dimX, #dimY, #dimZ {
  flex: 1 1 0;
  min-width: 0;
}

/* Message area styling */
#form-message {
  margin-top: 0.8rem;
  color: #b3001b;
  font-weight: 600;
  min-height: 1.2em;
}

/* Slightly larger submit button */
.contact-section button[type="submit"] {
  background: #b3001b;
  color: #fff;
  border: none;
  padding: 0.95rem;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

#dimX, #dimY, #dimZ {
  flex: 1;
  min-width: 0; /* let them shrink inside */
}

footer {
  background: #fff;
  color: #b3001b;
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
  margin-top: 2rem;
}

/* Price menu specific style */

.pricing-hero {
  text-align: center;
  padding: 3rem 1rem;
}

.pricing-hero h1 {
  color: var(--accent, #b3001b);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.pricing-hero .note {
  max-width: 640px;
  margin: 0.5rem auto 2rem;
  color: #444;
}

.pricing-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
}

.price-card {
  background: #fff;
  border: 2px solid #b3001b;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  width: 100%;
  max-width: 320px;
}

.price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(179,0,27,0.15);
}

.price-card h3 {
  margin: 0 0 1rem;
  color: #b3001b;
}

.price-main {
  font-size: 2rem;
  font-weight: 700;
  color: #000; /*  #8b3e4a   #000 */
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}

.price-main span {
  font-size: 1rem;
  font-weight: 500;
  color: #444;
}

.price-sub {
  margin-top: 0.8rem;
  font-size: 1rem;
  color: #555;
}

.price-card.highlight {
  background: linear-gradient(135deg, #b3001b, #ff4d4d);
  color: #fff;
  border: none;
}

.price-card.highlight h3,
.price-card.highlight .price-sub {
  color: #fff;
}

.price-card.highlight .price-main {
  color: #fff;
}
/* Info page*/

.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 65vh;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.info-text p {
  margin: 0.5rem 0;
  font-size: clamp(0.4rem, 4vw, 1.1rem);
}

.info-image {
  background: #eee url("stock/kepek/thisisengineering-fr5h_07OrPI-unsplash.jpg") center/cover no-repeat;
  border-radius: 16px;
  min-height: 400px;
}

.info-text {
  padding: 2rem;
}

.info-text h1 {
  size: clamp(1.5rem, 4vw, 1.8rem);
  margin-bottom: 2rem;
}

/* Media size specific changes*/

@media (max-width: 1000px) {
  .pricing-cards{
    grid-template-columns:1fr
  }
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  .section {
    padding: 2rem 1rem;
  }
  .intro-content h1 {
    font-size: 1.8rem;
  }
  .contact-section form {
    padding: 1rem;
  }
  .info-section {
        grid-template-columns: 1fr;
  }
  .info-image {
        min-height: 200px;
  }
}

.price-cta {
  margin-top: 3rem;
  text-align: center;
}

.btn-contact {
  background: #b3001b;
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
}

.btn-contact:hover {
  background: #ff4d4d;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-section form {
    max-width: 100%;
    padding: 1.2rem;
  }

  .print-form {
    grid-template-columns: 1fr; /* stack the summary under form */
    padding: 1rem;
    gap: 1rem;
  }

  .dimensions-group {
    flex-wrap: wrap;
  }
}