/* 
Theme Name: Hello WPsecrets
Theme URI: https://wpsecrets.hu/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by WPsecrets team
Author: WPsecrets.hu
Author URI: https://wpsecrets.hu/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-wp-secrets
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


/* --- BUTTON ICON SIZE --- */
	
.gomb-ikon .elementor-button-icon {font-size:12px; color: inherit; padding: 1px 0px 0px 0px !important;
}
.gomb-ikon .elementor-button-text {margin:auto !important; 
}


/* ŰRLAP CHECKBOX FORMÁZÁS */
/* ====== Csak a szolgáltatás checkbox mezőre ====== */
.services-checks .elementor-field-subgroup{
  display: flex;
  gap: 20px;            /* távolság az opciók között */
  flex-wrap: wrap;
  align-items: center;
}
/* Rejtett natív checkbox – a label kapja a designt */
.services-checks .elementor-field-option input[type="checkbox"]{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
/* Felirat (kattintható terület) */
.services-checks .elementor-field-option label{
  position: relative;
  padding-left: 36px;   /* hely a kis négyzetnek */
  cursor: pointer;
  color: #FFFFFF;       /* szöveg szín (sötét háttérhez) */
  font-weight: 500;
  line-height: 1.4;
}
/* Üres négyzet kerettel */
.services-checks .elementor-field-option label::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.85); /* fehér keret */
  border-radius: 0px;                       /* enyhén kerek */
  background: transparent;
}
/* Pipajel (csak checked állapotban jelenik meg) */
.services-checks .elementor-field-option input[type="checkbox"]:checked + label::after{
  content: "✓";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 16px;
  color: #000;
  font-weight: 700;
}
/* Kitöltött zöld négyzet, ha be van jelölve */
.services-checks .elementor-field-option input[type="checkbox"]:checked + label::before{
  background: #01ED76; /* zöld */
  border-color: transparent;
}
/* Billentyűzet fókusz – vékony zöld fény */
.services-checks .elementor-field-option input[type="checkbox"]:focus + label::before{
  box-shadow: 0 0 0 3px rgba(32,192,81,.35);
}
/* Reszponzív finomítások */
@media (max-width: 1024px){
  .services-checks .elementor-field-subgroup{ gap: 28px; }
}
@media (max-width: 767px){
  .services-checks .elementor-field-subgroup{ gap: 20px; }

  /* <<< JAVÍTÁS: több soros labelnél a négyzet a sor elejére igazítva >>> */
  .services-checks .elementor-field-option label{
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.35;
  }
  .services-checks .elementor-field-option label::before{
    width: 20px;
    height: 20px;
    top: 0em;              /* NEM középre, hanem a sor elejéhez */
    transform: none;         /* így nem csúszik el több sor esetén */
  }
  .services-checks .elementor-field-option input[type="checkbox"]:checked + label::after{
    top: 0.15em;             /* a pipa is igazodik a fenti pozícióhoz */
    transform: none;
    font-size: 15px;
  }
}



/* MENÜ HOVER POINTER FORMÁZÁS */
/* ======= Menü hover aláhúzás balról jobbra + bold szöveg ======= */
.elementor-nav-menu--main .elementor-item {
  position: relative;
  font-weight: 400;
  transition: font-weight 0.2s ease;
}

/* Hover + aktív menüpont: bold */
.elementor-nav-menu--main .elementor-item:hover,
.elementor-nav-menu--main .elementor-item.elementor-item-active {
  font-weight: 700 !important;
}

/* Aláhúzás pseudo-elem: balról indul */
.elementor-nav-menu--main .elementor-item::after {
  content: "";
  position: absolute;
  left: 0;                  /* balról indul */
  bottom: -4px;
  width: 0;                 /* alapból nincs szélesség */
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease; /* balról jobbra növekedés */
}

/* Hoverre jelenik meg, 75%-ig nő */
.elementor-nav-menu--main .elementor-item:hover::after,
.elementor-nav-menu--main .elementor-item.elementor-item-active::after {
  width: 75%;
}


/* ÁTTETSZŐ FEKETE BELSŐ KERET A KONTÉNERBEN */
/* Áttetsző fekete belső keret */
.video-card {
  position: relative;
  overflow: hidden; /* biztosítja, hogy ne lógjon ki semmi */
}

/* Pseudo-elem a kerethez */
.video-card::after {
  content: "";
  position: absolute;
  inset: 0px; /* mennyire beljebb legyen a keret a szélektől */
  border: 40px solid rgba(0, 0, 0, 0.5); /* áttetsző fekete keret */
  border-radius: 60px; /* ha lekerekítést szeretnél */
  pointer-events: none; /* ne akadályozza a kattintást */
  z-index: 2;
}

.video-card {
  aspect-ratio: 9 / 16;   /* mindig 9:16 arány */
  width: 100%;            /* maradjon reszponzív */
  max-width: 400px;       /* opcionális: ne legyen túl széles */
  position: relative;
  overflow: hidden;
}


/* BACKGROUND FALLBACK THUMBNAIL */
/* A Video widget wrapper legyen pozícionálható */
.elementor-widget-video .elementor-wrapper{
  position: relative;
  overflow: hidden;       /* tartsa a kártya lekerekítést */
  border-radius: inherit;
}

/* YouTube-bélyegkép overlay */
.yt-thumb-overlay{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity .35s ease;
  pointer-events: none;   /* a videót ne blokkolja */
  border-radius: inherit;
}

.yt-thumb-overlay.is-hidden{ opacity: 0; }



/* HÁTTÉR GÖRGETÉS KIKAPCSOLÁSA POPUP NYITÁSAKOR */
/* Háttér elsötétítés – csak az overlayre */
.elementor-popup-modal{
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,.7) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

/* A popup tartalom görgethető legyen (és ne “szivárogjon” a háttérre) */
.elementor-popup-modal .dialog-message{
  max-height: calc(100dvh - 48px) !important; /* biztonság mobilon is */
  overflow-y: auto !important;
  overscroll-behavior: contain;              /* ne láncolja tovább a scrollt */
  -webkit-overflow-scrolling: touch;         /* sima görgetés iOS-en */
}

/* A popup doboz maradjon fedetlen/élénk (ne vegye át az overlay opacitását) */
.elementor-popup-modal .dialog-widget-content{
  background: #111418;      /* állítsd a saját háttérszínedre, ha kell */
  opacity: 1 !important;
}

/* Scroll-lock osztály a body/html-re (JS adja/veszi le) */
html.popup-scroll-lock,
body.popup-scroll-lock{
  overflow: hidden !important;
  height: 100%;
}
body.popup-scroll-lock{
  position: fixed;
  width: 100%;
}
