/* ═══════════════════════════════════════════════════════════════
   Berényi Sírkő Kft. – style.css
   Design: méltóságteljes sötét téma arany akcentussal
   Bootstrap 5 + GLightbox
═══════════════════════════════════════════════════════════════ */

/* ── CSS VÁLTOZÓK ─────────────────────────────────────────── */
:root {
  --clr-bg:          #0f1923;
  --clr-bg-alt:      #0a1018;
  --clr-surface:     #1a2639;
  --clr-surface-2:   #1e2d3d;
  --clr-gold:        #c9a84c;
  --clr-gold-light:  #e2c97e;
  --clr-gold-dim:    rgba(201, 168, 76, 0.15);
  --clr-border:      rgba(201, 168, 76, 0.22);
  --clr-text:        #e8e0d5;
  --clr-text-muted:  #8fa3b8;
  --font-serif:      'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:       'Open Sans', system-ui, -apple-system, sans-serif;
  --transition:      0.3s ease;
  --radius:          12px;
  --shadow-md:       0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:       0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── RESET / ALAP ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* navbar magassága */
  overflow-x: hidden;       /* vízszintes overflow blokkolás – html szinten */
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { transition: color var(--transition); }

/* ── SCROLL PROGRESS BAR ──────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 10000;
  pointer-events: none;
}
#progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  width: 0;
  transition: width 0.1s linear;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#mainNav {
  background: rgba(10, 16, 24, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.75rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#mainNav.scrolled {
  background: rgba(10, 16, 24, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  padding: 0.35rem 0;
}

#logo {
  width: 100px; height: 100px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform var(--transition), width var(--transition), height var(--transition);
}
#mainNav.scrolled #logo {
  width: 62px; height: 62px;
}
#logo:hover { transform: scale(1.05); }

/* ── LOGO – reszponzív méretek ────────────────────────────── */
@media (max-width: 991.98px) {          /* tablet / összecsukott nav */
  #logo                    { width: 82px; height: 82px; }
  #mainNav.scrolled #logo  { width: 54px; height: 54px; }
  #mainNav                 { padding: 0.55rem 0; }
  #mainNav.scrolled        { padding: 0.28rem 0; }
}
@media (max-width: 575.98px) {          /* kis mobil */
  #logo                    { width: 68px; height: 68px; }
  #mainNav.scrolled #logo  { width: 46px; height: 46px; }
  #mainNav                 { padding: 0.4rem 0; }
  #mainNav.scrolled        { padding: 0.2rem 0; }
}

.navbar-nav .nav-link {
  color: var(--clr-text) !important;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--clr-gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--clr-gold) !important;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  border: 1px solid var(--clr-gold) !important;
  border-radius: 6px !important;
  color: var(--clr-gold) !important;
  padding: 0.4rem 1rem !important;
  transition: all var(--transition) !important;
}
.navbar-nav .nav-link.nav-cta:hover,
.nav-cta:hover {
  background: var(--clr-gold) !important;
  color: #111 !important;
  border-color: var(--clr-gold) !important;
}
.nav-cta::after { display: none !important; }

.navbar-toggler {
  border-color: var(--clr-gold);
  padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon { filter: invert(1) sepia(1) saturate(3) hue-rotate(0deg); }

/* ── GOMBOK ───────────────────────────────────────────────── */
.btn-gold {
  background: var(--clr-gold);
  color: #111 !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-gold:hover {
  background: var(--clr-gold-light);
  color: #111 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}

.btn-outline-gold {
  background: transparent;
  color: var(--clr-gold) !important;
  border: 2px solid var(--clr-gold);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.73rem 1.75rem;
  text-decoration: none;
  transition: all var(--transition);
}
.btn-outline-gold:hover {
  background: var(--clr-gold);
  color: #111 !important;
  transform: translateY(-2px);
}

/* ── SZEKCIÓK – KÖZÖS ─────────────────────────────────────── */
.section-dark   { background-color: var(--clr-bg);     padding: 5rem 0; }
.section-darker { background-color: var(--clr-bg-alt); padding: 5rem 0; }

.section-header { margin-bottom: 3rem; }

.section-badge {
  display: inline-block;
  background: var(--clr-gold-dim);
  color: var(--clr-gold);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--clr-text);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-description {
  color: var(--clr-text-muted);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('granite.jpeg') center / cover no-repeat fixed;
  padding: 110px 1.5rem 80px;
}

/* Mobilon a background-attachment: fixed iOS/Android WebKit buggot okoz
   (görgetési jitter + oldalirányú csúszás) – scroll-ra váltunk */
@media (max-width: 991.98px) {
  .hero-section {
    background-attachment: scroll;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(6, 10, 18, 0.94) 0%,
    rgba(15, 25, 35, 0.88) 60%,
    rgba(10, 18, 28, 0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.12);
  color: var(--clr-gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 20px;
  padding: 0.3rem 1.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 0.9rem;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.gold-text { color: var(--clr-gold); }

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--clr-gold-light);
  margin-bottom: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}
.hero-description {
  color: rgba(232, 224, 213, 0.78);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--clr-gold);
  font-size: 1.3rem;
  animation: bounceY 2.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ── BEMUTATKOZÁS ─────────────────────────────────────────── */
.about-text .lead-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--clr-gold-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}
.about-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}
.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--clr-gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}
.about-image-wrapper {
  position: relative;
}
.about-photo {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.about-image-badge {
  position: absolute;
  bottom: 1.5rem; right: 0.5rem;
  background: var(--clr-gold);
  color: #111;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

/* ── SZOLGÁLTATÁS KÁRTYÁK ─────────────────────────────────── */
.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border-color: var(--clr-gold);
}
.service-icon {
  width: 64px; height: 64px;
  background: var(--clr-gold-dim);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.5rem;
  color: var(--clr-gold);
  transition: background var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(201, 168, 76, 0.25);
}
.service-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
}
.service-text {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── GALÉRIA (CSS Grid) ───────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--clr-surface);
  cursor: zoom-in;
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row:    span 2; }

.gallery-item a {
  display: block;
  width: 100%; height: 100%;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item:hover img { transform: scale(1.07); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.45);
  color: var(--clr-gold);
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }
}
@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 155px;
  }
  .gallery-item--wide,
  .gallery-item--tall {
    grid-column: span 1;
    grid-row:    span 1;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 7px;
  }
}

/* ── GYIK / FAQ ───────────────────────────────────────────── */
.faq-item {
  background: var(--clr-surface) !important;
  border: 1px solid var(--clr-border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-button {
  background: var(--clr-surface) !important;
  color: var(--clr-text) !important;
  font-weight: 600;
  font-size: 0.97rem;
  border: none !important;
  box-shadow: none !important;
  padding: 1.2rem 1.5rem;
}
.faq-button:not(.collapsed) {
  color: var(--clr-gold) !important;
}
.faq-button::after {
  filter: invert(1) sepia(1) saturate(2) hue-rotate(0deg);
}
.faq-answer {
  background: rgba(255, 255, 255, 0.02);
  color: var(--clr-text-muted);
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.93rem;
  line-height: 1.75;
  border-top: 1px solid var(--clr-border);
}
.gold-link { color: var(--clr-gold); font-weight: 600; text-decoration: none; }
.gold-link:hover { color: var(--clr-gold-light); }

/* ── ELÉRHETŐSÉG ──────────────────────────────────────────── */
.contact-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-item p { margin-bottom: 0; color: var(--clr-text-muted); font-size: 0.95rem; }
.contact-icon {
  font-size: 1.4rem;
  color: var(--clr-gold);
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1.75rem;
  text-align: center;
}
.contact-icon--green { color: #4ade80; }
.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-text-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}
.contact-phone {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-gold);
  text-decoration: none;
}
.contact-phone:hover { color: var(--clr-gold-light); }

.map-wrapper {
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--clr-border);
}
.map-wrapper iframe { display: block; width: 100%; height: 100%; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--clr-bg-alt);
  border-top: 1px solid var(--clr-border);
  padding: 2.25rem 0;
}
.footer-text { color: var(--clr-text-muted); font-size: 0.9rem; margin: 0; }
.footer-phone { color: var(--clr-gold); text-decoration: none; font-weight: 600; }
.footer-phone:hover { color: var(--clr-gold-light); }

/* ── MOBIL STICKY CTA ─────────────────────────────────────── */
.mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--clr-gold);
  color: #111 !important;
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background var(--transition);
  gap: 0.5rem;
}
.mobile-cta-btn:hover { background: var(--clr-gold-light); color: #111 !important; }

@media (max-width: 991px) {
  body { padding-bottom: 58px; }
}

/* ── GLIGHTBOX EGYEDI STÍLUS ──────────────────────────────── */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background: rgba(201, 168, 76, 0.15) !important;
  border: 1px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 8px !important;
}
.glightbox-clean .gclose svg path,
.glightbox-clean .gnext svg path,
.glightbox-clean .gprev svg path {
  fill: var(--clr-gold) !important;
}

/* ── COOKIE BANNER ────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--clr-surface);
  border-top: 2px solid var(--clr-gold);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
  animation: cookieSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes cookieSlideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.cookie-icon {
  color: var(--clr-gold);
  font-size: 1.15rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.cookie-text p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  margin: 0;
  line-height: 1.6;
}

.cookie-link {
  color: var(--clr-gold);
  text-decoration: underline;
  transition: color var(--transition);
}

.cookie-link:hover { color: var(--clr-gold-light); }

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-cookie-accept {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.35rem;
  background: var(--clr-gold);
  color: #111;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--clr-gold-light);
  transform: translateY(-1px);
}

.btn-cookie-decline {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--clr-border);
  border-radius: 50px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-cookie-decline:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

@media (max-width: 575.98px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .btn-cookie-accept,
  .btn-cookie-decline {
    flex: 1;
    justify-content: center;
  }
}

/* ── SEGÉDOSZTÁLYOK ───────────────────────────────────────── */
a[href^="tel"] { text-decoration: none; }

/* ═══════════════════════════════════════════════════════════
   ÁRAJÁNLAT KÉRŐ – MULTI-STEP FORM
═══════════════════════════════════════════════════════════ */

/* ── Lépésjelző ──────────────────────────────────────────── */
.form-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 680px;
  margin: 2.5rem auto 2.5rem;
}

.form-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  color: rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.form-step-item.active .step-circle,
.form-step-item.done .step-circle {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  color: #111;
}

.step-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: color var(--transition);
}

.form-step-item.active .step-label,
.form-step-item.done .step-label {
  color: var(--clr-gold-light);
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--clr-border);
  margin: 0 6px 1.1rem;
}

/* ── Form keret ──────────────────────────────────────────── */
.form-wrapper {
  max-width: 780px;
  margin: 0 auto;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

/* ── Panel megjelenítés ──────────────────────────────────── */
.form-panel {
  display: none;
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.form-panel.active {
  display: block;
}

.form-panel-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--clr-gold-light);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-border);
}

/* ── Mezők ───────────────────────────────────────────────── */
.form-label-custom {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.45rem;
  font-family: var(--font-sans);
}

.req { color: var(--clr-gold); margin-left: 2px; }

.text-muted-gold {
  color: rgba(201, 168, 76, 0.6);
  font-weight: 400;
}

.form-control-custom {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}

.form-control-custom::placeholder { color: rgba(255, 255, 255, 0.3); }

.form-control-custom:focus {
  border-color: var(--clr-gold);
  box-shadow: 0 0 0 3px var(--clr-gold-dim);
}

.form-control-custom.is-invalid {
  border-color: #e05260;
}

/* ── Hibaüzenetek ────────────────────────────────────────── */
.field-error {
  font-size: 0.8rem;
  color: #e05260;
  margin-top: 0.35rem;
  display: none;
}

.field-error.visible { display: block; }

/* ── Radio kártyák ───────────────────────────────────────── */
.radio-card-group,
.checkbox-card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.radio-card,
.checkbox-card {
  cursor: pointer;
}

.radio-card input,
.checkbox-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card-inner,
.checkbox-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 0.6rem;
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  line-height: 1.4;
  min-height: 82px;
  user-select: none;
}

.radio-card-inner i,
.checkbox-card-inner i {
  font-size: 1.3rem;
  color: var(--clr-gold);
}

.radio-card-inner small,
.checkbox-card-inner small {
  font-size: 0.72rem;
  opacity: 0.65;
  margin-top: 2px;
}

.radio-card input:checked + .radio-card-inner,
.checkbox-card input:checked + .checkbox-card-inner {
  border-color: var(--clr-gold);
  background: var(--clr-gold-dim);
  color: #fff;
  box-shadow: 0 0 0 3px var(--clr-gold-dim);
}

.radio-card:hover .radio-card-inner,
.checkbox-card:hover .checkbox-card-inner {
  border-color: rgba(201, 168, 76, 0.5);
  color: #fff;
}

/* ── Városkereső autocomplete ────────────────────────────── */
.autocomplete-wrap { position: relative; }

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--clr-surface-2);
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 999;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.autocomplete-list li {
  padding: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.15s;
}

.autocomplete-list li:last-child { border-bottom: none; }

.autocomplete-list li:hover,
.autocomplete-list li.focused {
  background: var(--clr-gold-dim);
  color: #fff;
}

/* ── GDPR checkbox ───────────────────────────────────────── */
.checkbox-gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-gdpr input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--clr-gold);
  cursor: pointer;
}

.gdpr-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.gold-link { color: var(--clr-gold); text-decoration: underline; }
.gold-link:hover { color: var(--clr-gold-light); }

/* ── Navigációs gombok ───────────────────────────────────── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
  gap: 1rem;
}

.btn-form-next,
.btn-form-back,
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-form-next,
.btn-form-submit {
  background: var(--clr-gold);
  color: #111;
}

.btn-form-next:hover,
.btn-form-submit:hover {
  background: var(--clr-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 168, 76, 0.35);
}

.btn-form-back {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--clr-border);
}

.btn-form-back:hover {
  border-color: var(--clr-gold);
  color: var(--clr-gold);
}

.btn-form-submit {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

.btn-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Összegzés rács ──────────────────────────────────────── */
.summary-intro {
  color: var(--clr-gold-light);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.summary-item {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.summary-label {
  font-size: 0.7rem;
  color: var(--clr-gold);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.summary-value {
  font-size: 0.95rem;
  color: #fff;
  word-break: break-word;
  line-height: 1.4;
}

/* ── Sikeres küldés ──────────────────────────────────────── */
.form-success {
  text-align: center;
  padding: 3.5rem 1rem;
}

.success-icon {
  font-size: 4rem;
  color: var(--clr-gold);
  margin-bottom: 1.25rem;
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0%   { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.success-title {
  font-family: var(--font-serif);
  color: var(--clr-gold-light);
  font-size: 1.65rem;
  margin-bottom: 0.75rem;
}

.success-msg {
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Reszponzív ──────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .form-wrapper {
    padding: 1.5rem 1.1rem 1.25rem;
    border-radius: 12px;
  }
}

@media (max-width: 575.98px) {
  .radio-card-group,
  .checkbox-card-group {
    grid-template-columns: 1fr 1fr;
  }

  .step-connector { min-width: 16px; }

  .form-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn-form-next,
  .btn-form-back,
  .btn-form-submit {
    justify-content: center;
    width: 100%;
  }
}
