/*
 * style.css – Macronet System Kft. IT Szolgáltatás Kalkulátor
 * Arculati kézikönyv alapján generálva
 * Módosításhoz: csak a :root tokeneket szerkeszd
 */

/* ============================================================
   MACRONET DESIGN TOKENEK
   Forrás: macronet-arculati-kezikonyv.md
   ============================================================ */
:root {
  /* Márkapaletta */
  --color-brand-blue: #0095DA;
  --color-brand-blue-dark: #1375BC;
  --color-brand-cyan: #03BAEF;
  --color-brand-mint: #65C3AF;

  /* CTA – csak cselekvésre ösztönző elemeken */
  --color-cta-green: #0EBC7F;
  --color-cta-green-dark: #058155;

  /* Szöveg */
  --color-ink: #283044;
  /* főcímek, fontos szöveg */
  --color-slate: #525D78;
  /* másodlagos szöveg, leírás */
  --color-muted: #ADADAD;
  /* disabled, finom ikonok */

  /* Felületek */
  --color-surface: #FFFFFF;
  --color-page: #F6FAFC;
  --color-border: #DDE3EA;

  /* Állapotszínek */
  --color-success: #0EBC7F;
  --color-warning: #F59E0B;
  --color-warning-bg: #FFFBEB;
  --color-danger: #EF4444;
  --color-danger-bg: #FEF2F2;

  /* Overlay */
  --color-dark-overlay: rgba(14, 22, 31, 0.62);

  /* Tipográfia */
  --font-display: "Rubik", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --container-padding: clamp(16px, 4vw, 48px);
  --section-padding-y: clamp(48px, 7vw, 80px);

  /* Rádiuszok */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Árnyékok */
  --shadow-card: 0 16px 40px rgba(40, 48, 68, 0.10);
  --shadow-cta: 0 12px 28px rgba(14, 188, 127, 0.32);
  --shadow-blue: 0 8px 20px rgba(0, 149, 218, 0.25);

  --transition: 160ms ease;
}

/* ============================================================
   RESET & ALAP
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-page);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ============================================================
   NAVIGÁCIÓ / FEJLÉC SÁV
   ============================================================ */
.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 8px rgba(40, 48, 68, 0.06);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.site-nav__logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}

.site-nav__badge {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(3, 186, 239, 0.12);
  color: var(--color-brand-blue-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 149, 218, 0.2);
  white-space: nowrap;
}

/* ============================================================
   HERO SZEKCIÓ
   ============================================================ */
.hero {
  background: linear-gradient(130deg, #0d2b4e 0%, var(--color-brand-blue-dark) 45%, var(--color-brand-blue) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--container-padding) clamp(2rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dekoratív háttérelemek */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(3, 186, 239, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(101, 195, 175, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-cyan);
  background: rgba(3, 186, 239, 0.15);
  border: 1px solid rgba(3, 186, 239, 0.3);
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--color-brand-cyan);
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BIZALMI SÁV
   ============================================================ */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--container-padding);
}

.trust-bar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 640px) {
  .trust-bar__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--color-border);
}

.trust-item:last-child {
  border-right: none;
}

@media (max-width: 639px) {
  .trust-item:nth-child(2n) {
    border-right: none;
  }

  .trust-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }
}

.trust-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 149, 218, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-brand-blue);
}

.trust-item__text {
  font-size: 0.8rem;
  color: var(--color-slate);
  line-height: 1.4;
}

.trust-item__text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink);
}

/* ============================================================
   FŐ LAYOUT
   ============================================================ */
.main-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 2rem var(--container-padding) 6rem;
  align-items: start;
}

@media (min-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr 400px;
    padding-bottom: 3rem;
    gap: 2rem;
  }
}

/* ============================================================
   KÁRTYÁK
   ============================================================ */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.card:last-child {
  margin-bottom: 0;
}

.card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.card__icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(3, 186, 239, 0.10);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__icon-wrap svg {
  width: 20px;
  height: 20px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

/* ============================================================
   FORM MEZŐK
   ============================================================ */
.form-group {
  margin-bottom: 1.375rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.5rem;
}

.form-label .optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-slate);
  margin-top: 0.375rem;
}

/* ============================================================
   STEPPER (+/-)
   ============================================================ */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: 156px;
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.stepper:focus-within {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 218, 0.12);
}

.stepper__btn {
  width: 42px;
  height: 42px;
  background: var(--color-page);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  user-select: none;
  -webkit-user-select: none;
  line-height: 1;
}

.stepper__btn:hover {
  background: rgba(0, 149, 218, 0.1);
  color: var(--color-brand-blue-dark);
}

.stepper__btn:active {
  background: rgba(0, 149, 218, 0.18);
}

.stepper__input {
  flex: 1;
  height: 42px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  background: transparent;
  min-width: 0;
  outline: none;
  font-family: var(--font-body);
}

.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper__input[type=number] {
  -moz-appearance: textfield;
}

/* ============================================================
   RADIO KÁRTYÁK
   ============================================================ */
.radio-group {
  display: grid;
  gap: 0.5rem;
}

.radio-group--2col {
  grid-template-columns: repeat(2, 1fr);
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate);
  background: var(--color-surface);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  line-height: 1.4;
}

.radio-card__label:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue-dark);
  background: rgba(0, 149, 218, 0.04);
}

.radio-card input[type="radio"]:checked+.radio-card__label {
  border-color: var(--color-brand-blue);
  background: rgba(0, 149, 218, 0.08);
  color: var(--color-brand-blue-dark);
  font-weight: 600;
}

.radio-card input[type="radio"]:focus-visible+.radio-card__label {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

.radio-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.radio-card__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-slate);
  flex-shrink: 0;
}

.radio-card input[type="radio"]:checked + .radio-card__label .radio-card__icon svg {
  stroke: var(--color-brand-blue-dark);
}

/* ============================================================
   TOGGLE KAPCSOLÓK
   ============================================================ */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-row__text {
  flex: 1;
}

.toggle-row__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.2rem;
}

.toggle-row__price {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-cta-green);
  background: rgba(14, 188, 127, 0.1);
  padding: 0.1rem 0.45rem;
  border-radius: 20px;
  margin-left: 0.3rem;
}

.toggle-row__desc {
  font-size: 0.78rem;
  color: var(--color-slate);
  line-height: 1.4;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__track {
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: 13px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  display: block;
}

.toggle-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.toggle-switch input:checked+.toggle-switch__track {
  background: var(--color-cta-green);
}

.toggle-switch input:checked+.toggle-switch__track::after {
  transform: translateX(22px);
}

.toggle-switch input:focus-visible+.toggle-switch__track {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

/* ============================================================
   EREDMÉNYPANEL (sticky)
   ============================================================ */
.result-sticky {
  position: sticky;
  top: 80px;
  /* nav magassága + kis rés */
}

@media (max-width: 959px) {
  .result-sticky {
    position: static;
  }
}

/* Összeg kártya */
.price-card {
  background: linear-gradient(135deg, var(--color-brand-blue-dark) 0%, var(--color-brand-blue) 100%);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.price-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -20px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(3, 186, 239, 0.10);
  pointer-events: none;
}

.price-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.price-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
  position: relative;
}

.price-card__vat {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
  margin-left: 0.25rem;
}

.price-card__range {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.375rem;
  position: relative;
}

/* Csomag kártyák (3db) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.pkg-card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 0.625rem;
  text-align: center;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.pkg-card--recommended {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 218, 0.12);
  transform: translateY(-2px);
}

.pkg-card--premium-rec {
  border-color: var(--color-cta-green);
  box-shadow: 0 0 0 3px rgba(14, 188, 127, 0.14);
  transform: translateY(-2px);
}

.pkg-card__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  background: var(--color-brand-blue);
  color: #fff;
}

.pkg-card--premium-rec .pkg-card__badge {
  background: var(--color-cta-green);
}

.pkg-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 auto 0.4rem;
}

.pkg-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-slate);
}

.pkg-card--recommended .pkg-card__icon svg,
.pkg-card--premium-rec .pkg-card__icon svg {
  stroke: var(--color-brand-blue);
}

.pkg-card__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink);
}

/* Feature lista */
.pkg-features {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--color-slate);
  text-align: left;
}

.pkg-features li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.pkg-features li:last-child {
  border-bottom: none;
}

.pkg-features__check {
  color: var(--color-cta-green);
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 1px;
}

/* ============================================================
   ACCORDION
   ============================================================ */
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  border-top: 1px solid var(--color-border);
  padding: 0.875rem 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-brand-blue);
  font-family: var(--font-body);
  margin-top: 0.75rem;
  transition: color var(--transition);
}

.accordion-trigger:hover {
  color: var(--color-brand-blue-dark);
}

.accordion-icon {
  display: flex;
  align-items: center;
  transition: transform 220ms ease;
  opacity: 0.7;
}

.accordion-icon svg {
  width: 14px;
  height: 14px;
}

.accordion-content {
  font-size: 0.82rem;
  color: var(--color-slate);
  padding-bottom: 0.75rem;
}

/* ============================================================
   GOMBOK
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

/* Elsődleges CTA – mindig zöld */
.btn--primary {
  background: var(--color-cta-green);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--color-cta-green-dark);
  box-shadow: 0 8px 20px rgba(14, 188, 127, 0.40);
  transform: translateY(-1px);
}

/* Másodlagos – kék border */
.btn--secondary {
  background: transparent;
  color: var(--color-brand-blue-dark);
  border: 1.5px solid var(--color-brand-blue);
}

.btn--secondary:hover {
  background: rgba(0, 149, 218, 0.07);
  transform: translateY(-1px);
}

/* Hero gombok */
.btn--hero-primary {
  background: var(--color-cta-green);
  color: #fff;
  box-shadow: var(--shadow-cta);
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1rem;
}

.btn--hero-primary:hover {
  background: var(--color-cta-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(14, 188, 127, 0.38);
}

.btn--hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.btn--hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Teljes szélességű */
.btn--full {
  width: 100%;
}

.btn--full+.btn--full {
  margin-top: 0.625rem;
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--color-slate);
  border: 1.5px solid var(--color-border);
  font-weight: 500;
  min-height: 38px;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.btn--ghost:hover {
  border-color: var(--color-brand-blue);
  color: var(--color-brand-blue);
}

/* ============================================================
   RIASZTÁSOK
   ============================================================ */
.alert {
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  width: 18px;
  height: 18px;
}

.alert__icon svg {
  width: 18px;
  height: 18px;
}

.alert--warning {
  background: var(--color-warning-bg);
  border: 1px solid #FDE68A;
  color: #92400E;
}

.alert--error {
  background: var(--color-danger-bg);
  border: 1px solid #FECACA;
  color: #991B1B;
}

.alert--info {
  background: rgba(0, 149, 218, 0.07);
  border: 1px solid rgba(0, 149, 218, 0.25);
  color: var(--color-brand-blue-dark);
}

.alert--success {
  background: rgba(14, 188, 127, 0.07);
  border: 1px solid rgba(14, 188, 127, 0.3);
  color: #065F46;
}

/* ============================================================
   NEM RÉSZE LISTA
   ============================================================ */
.not-included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-slate);
}

.not-included-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}

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

.not-included-list li span:first-child {
  color: var(--color-muted);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 3px;
}

/* ============================================================
   LEBEGŐ SÁV (csak mobilon)
   ============================================================ */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(40, 48, 68, 0.2);
}

.floating-bar__left {
  min-width: 0;
}

.floating-bar__label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.1rem;
}

.floating-bar__price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.floating-bar__vat {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 960px) {
  .floating-bar {
    display: none !important;
  }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 22, 31, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(14, 22, 31, 0.3);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-page);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-slate);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.modal-close:hover {
  background: var(--color-border);
  color: var(--color-ink);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 0.375rem;
  padding-right: 2rem;
}

.modal-sub {
  font-size: 0.875rem;
  color: var(--color-slate);
  margin: 0 0 1.75rem;
  line-height: 1.55;
}

/* Form mezők a modalban */
.field-input {
  width: 100%;
  padding: 0.7rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.field-input:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(0, 149, 218, 0.12);
}

.field-input::placeholder {
  color: var(--color-muted);
}

textarea.field-input {
  resize: vertical;
  min-height: 90px;
}

.field-input--error {
  border-color: var(--color-danger) !important;
}

.field-error-msg {
  display: block;
  color: var(--color-danger);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* GDPR checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.82rem;
  color: var(--color-slate);
  line-height: 1.55;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-row a {
  color: var(--color-brand-blue);
  text-decoration: underline;
}

/* Honeypot */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.disclaimer {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  padding: 0.875rem 0.5rem 0;
  line-height: 1.6;
}

/* ============================================================
   RESET SÁV
   ============================================================ */
.reset-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.875rem;
}

/* ============================================================
   LÁBLÉC
   ============================================================ */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 2rem var(--container-padding);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--color-brand-cyan);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer__disclaimer {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1rem;
  max-width: 640px;
  margin-inline: auto;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   BREAKDOWN SOROK (inline style kiváltva)
   ============================================================ */
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
  line-height: 1.4;
  color: var(--color-slate);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-row span:last-child {
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
}

.breakdown-row--mod {
  color: #92400E;
}

.breakdown-row--mod span:last-child {
  color: #92400E;
}

.breakdown-row--extra {
  color: var(--color-brand-blue-dark);
}

.breakdown-row--extra span:last-child {
  color: var(--color-brand-blue-dark);
}

.breakdown-row--total {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.875rem;
  border-bottom: none;
  border-top: 2px solid var(--color-border);
  padding-top: 0.625rem;
  margin-top: 0.25rem;
}

.breakdown-row--total span:last-child {
  color: var(--color-brand-blue);
  font-size: 1rem;
}

/* ============================================================
   FÓKUSZ – WCAG 2.1 AA
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}