/* --- DESIGN TOKENEK --- */
:root {
    /* Színek */
    --color-primary: #4149DF;
    --color-primary-light: #5E65FB;
    --color-accent-green: #00C48C;
    --color-dark: #17181C;
    --color-grey: #666D7D;
    --color-light-bg: #FBFBFB;
    --color-section-bg: #F4F6F9;
    --color-white: #FFFFFF;

    /* Tipográfia & UI */
    --font-heading: 'Work Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 100px;
    --radius-btn: 8px;
    --radius-card: 20px;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.6;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; letter-spacing: -0.5px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- MENÜSOR (NAVBAR) --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #EBEBEB;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001; 
}

.logo-svg {
    height: 32px;
    width: auto;
    display: block;
    /* Fontos: A fill és path törölhető innen, mert már a fájlban van a szín */
}

/* Navigáció lista stílusa */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none; /* Lista pontok eltüntetése */
}

.nav-menu li a:not(.btn) {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 500;
    margin-left: 18px; /* MÓDOSÍTVA: 30px helyett 18px, hogy elférjenek */
    font-size: 15px;
    transition: color 0.2s;
    white-space: nowrap; /* ÚJ: Ez tiltja meg, hogy két sorba törjön a szöveg */
}

.nav-menu li a:not(.btn):hover { color: var(--color-primary); }

/* Hamburger menü ikon (alapból rejtve) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Hogy a lenyíló menü fölött legyen */
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    transition: 0.3s;
}

/* Animáció a hamburger ikonhoz (opcionális, ha a JS kezeli az is-active class-t) */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- NYELVVÁLASZTÓ JAVÍTÁS --- */
.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center; /* EZ HIÁNYZOTT, ez húzza középre mobilon */
    gap: 0; 
}

/* Felülírjuk a globális szabályt, ami 30px margót tenne ide */
.nav-menu .lang-switch a {
    margin-left: 0 !important; 
    padding: 0 5px; /* Kicsi, finom távolság */
    font-size: 14px;
    font-weight: 500;
    color: var(--color-dark); /* Alap szín */
    opacity: 0.6; /* Inaktív állapot halványabb */
}

/* Az aktív nyelv stílusa */
.nav-menu .lang-switch a.active {
    font-weight: 700;
    color: var(--color-primary);
    opacity: 1;
}

/* Az elválasztó vonal stílusa */
.lang-switch .separator {
    color: #ccc;
    font-size: 14px;
    margin-top: -2px; /* Kicsit igazítunk a függőleges helyzeten */
}

.nav-menu .lang-switch a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* --- GOMBOK --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    
    /* JAVÍTÁS: Ez akadályozza meg a kilógást */
    box-sizing: border-box; 
    width: 100%; /* Mobilon és űrlapokban legyen teljes szélesség */
    text-align: center; 
}

/* JAVÍTÁS: Desktop nézetben a menü gombja ne legyen óriási */
@media (min-width: 768px) {
    .btn-nav {
        width: auto;
        margin-left: 20px;
        padding: 8px 16px;
    }
}

/* Elsődleges kék gomb */
.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(65, 73, 223, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Zöld gomb (Biztosítás) */
.btn-green {
    background-color: var(--color-accent-green);
    color: #FFFFFF !important;
    box-shadow: none;
}

.btn-green:hover {
    background-color: #00A876;
    transform: translateY(-2px);
}

/* Másodlagos (halvány) gomb */
.btn-secondary {
    background-color: #E8E9FF;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: #D6D8FF;
}

/* Körvonalas gomb */
.btn-outline {
    border: 2px solid #EBEBEB;
    color: var(--color-dark);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

/* --- ÁLTALÁNOS SZEKCIÓK --- */
section { padding: var(--spacing-xl) 0; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 4px;
}

.tag-blue { background-color: #E8E9FF; color: var(--color-primary); }
.tag-green { background-color: #E0F7EF; color: var(--color-accent-green); }

.tag-small {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #E8E9FF;
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.section-title { font-size: 2.8rem; margin-bottom: 24px; color: var(--color-dark); }
.section-desc { font-size: 1.15rem; color: var(--color-grey); margin-bottom: 32px; max-width: 90%; }

/* Lista stílusok */
.check-list { list-style: none; margin-bottom: 32px; }

.check-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent-green);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 3px;
}

.li-title { display: block; font-weight: 700; color: var(--color-dark); }
.list-note { display: block; font-weight: 400; font-size: 0.9rem; color: var(--color-grey); margin-top: 2px; }

/* --- HERO SZEKCIÓ --- */
.hero {
    padding: 80px 0 100px 0;
    background: radial-gradient(circle at top right, #F0F2FF 0%, #FFFFFF 60%);
}

.hero h1 { font-size: 3.8rem; margin-bottom: 24px; color: var(--color-dark); }

/* --- KÉPEK HELYE (MOCKUP) --- */
.mockup-box {
    background-color: #F0F2F5;
    border-radius: var(--radius-card);
    height: 500px;
    display: flex; align-items: center; justify-content: center;
    color: #999; font-weight: 600;
    border: 1px solid #EBEBEB;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* --- LÁBLÉC (FOOTER) --- */
.site-footer {
    background-color: #111;
    color: #fff;
    padding: 60px 0 40px 0;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col { flex: 1; min-width: 200px; }
.brand-col { flex: 1.5; }

.footer-logo { 
    height: 40px; /* Nagyobb méret */
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
    display: block;
}
.footer-copyright { color: #888; font-size: 0.9rem; margin-top: 10px; }

.footer-col h4 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #ccc; text-decoration: none; font-size: 0.95rem; transition: 0.3s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.social-icons { display: flex; gap: 15px; }
.social-icons a { 
    display: inline-flex; justify-content: center; align-items: center;
    width: 36px; height: 36px; 
    background: #333; border-radius: 50%; color: #fff; 
    transition: 0.3s;
}
.social-icons a:hover { background: var(--color-primary); }


/* --- RESZPONZIVITÁS --- */
/* FONTOS: 768px-re állítva, hogy az iPad Air (820px) még asztali nézetet kapjon */
@media (max-width: 768px) {
    /* Layout */
    .grid-2 { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .section-desc { margin: 0 auto 32px auto; }
    .check-list { display: inline-block; text-align: left; }
    .order-mobile-top { order: -1; }
    .hero h1 { font-size: 2.8rem; }
    .hero-img { box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    
    /* Navigáció átalakítása (Hamburger) */
    .menu-toggle { display: flex; }
    
    .nav-menu {
        display: none; /* Alapból rejtve mobilon */
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid #EBEBEB;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    
    /* Amikor a JS bekapcsolja az 'active' class-t */
    .nav-menu.active { display: flex; }
    
    .nav-menu li { margin: 10px 0; width: 100%; text-align: center; }
    
    .nav-menu li a:not(.btn) {
        margin: 0;
        display: block;
        padding: 10px;
    }
    
    .btn-nav {
        margin: 15px auto 0 auto;
        display: inline-block;
    }
    
    /* Footer */
    .footer-container { flex-direction: column; text-align: center; }
    .social-icons { justify-content: center; }
}
/* --- STORE GOMBOK --- */
.store-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-store i {
    font-size: 1.4rem;
    margin-right: 10px;
}

.btn-store:hover {
    /* Hoverkor kicsit sötétebb kék vagy világosabb */
    background-color: var(--color-primary-light); 
    transform: translateY(-2px);
}

/* Mobil igazítás */
@media (max-width: 768px) {
    .store-buttons {
        justify-content: center;
    }
}
/* --- GYIK (FAQ) OLDAL STÍLUSOK --- */
.page-header {
    background: radial-gradient(circle at top right, #F0F2FF 0%, #FFFFFF 60%);
    padding: 80px 0 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--color-dark);
    margin-bottom: 16px;
}

.faq-section {
    padding: 60px 0 100px 0;
    background-color: var(--color-light-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Az egyes kérdés dobozok */
details {
    background-color: #FFFFFF;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #EBEBEB;
}

details[open] {
    box-shadow: 0 8px 24px rgba(65, 73, 223, 0.08); /* Kék árnyék nyitva */
    border-color: var(--color-primary-light);
}

/* A kérdés sor (amire kattintasz) */
summary {
    padding: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Alap nyíl eltüntetése */
    position: relative;
    padding-right: 50px; /* Hely a plusz jelnek */
    color: var(--color-dark);
}

/* Webkit böngészőknek nyíl eltüntetés */
summary::-webkit-details-marker {
    display: none;
}

/* Plusz / Mínusz ikon */
summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 400;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '−'; /* Mínusz jel */
    transform: translateY(-50%) rotate(180deg);
}

details[open] summary {
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-primary);
}

/* A válasz szöveg */
.faq-content {
    padding: 24px;
    color: var(--color-grey);
    line-height: 1.7;
    font-size: 1rem;
    animation: fadeIn 0.3s ease-in-out;
}

/* Animáció a megjelenéshez */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 2.2rem; }
    summary { font-size: 1rem; padding: 20px; padding-right: 40px; }
}

/* --- PARTNEREK OLDAL & ŰRLAPOK --- */
.form-box {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #EBEBEB;
    height: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    
    /* EZ A LÉNYEG: */
    box-sizing: border-box; 
}

/* Befektetői teaser kép */
.insight-preview {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    border: 1px solid #EBEBEB;
    transition: transform 0.3s ease;
}

.insight-preview:hover {
    transform: translateY(-5px);
}

.partner-col-title {
    font-size: 1.8rem;
    margin-bottom: 16px;
    color: var(--color-dark);
}

.partner-col-desc {
    color: var(--color-grey);
    margin-bottom: 30px;
    font-size: 1.05rem;
}
/* --- ÚJ KIEGÉSZÍTÉSEK --- */

/* Középre igazítás a Hero szekcióhoz */
.text-center {
    text-align: center;
}

/* Homályosítás a Dashboard képhez (hogy az adatok ne legyenek olvashatóak) */
.blur-effect {
    filter: blur(5px);
    transition: filter 0.3s ease;
}

/* Ha ráviszed az egeret, kitisztulhat (opcionális, ha akarod, hagyd benne, ha nem, töröld ezt a 3 sort) */
.blur-effect:hover {
    filter: blur(2px);
}
/* --- INSIGHT KÉP ÉS KERET --- */
.insight-wrapper {
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    text-align: center;
    /* Ez biztosítja, hogy a doboz se lógjon túl */
    max-width: 100%;
    box-sizing: border-box;
}

.insight-image {
    /* EZ A KULCS: A kép sose legyen szélesebb a doboznál */
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.insight-wrapper:hover .insight-image {
    transform: scale(1.02);
}
/* --- PARTNEREK OLDAL KIEGÉSZÍTÉS --- */

/* A dashboard link beállítása, hogy a kép kitöltse */
.dashboard-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.dashboard-link:hover {
    opacity: 0.9;
}

/* A kép stílusa */
.insight-preview {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #EBEBEB;
    display: block; /* Fontos, hogy ne legyen alatta felesleges sorköz */
}
/* --- ÚJ PROMÓCIÓS ELEMEK (KGFB) --- */

/* 1. MENÜ BADGE (A "Biztosítás" mellé) */
.nav-badge {
    background-color: #FF4757; /* Pirosas figyelemfelkeltő szín */
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
    animation: pulse 2s infinite; /* Opcionális pulzálás */
}

/* 2. HELLO BAR (A menü alá, hogy ne takarja ki) */
.hello-bar {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    /* Mivel a menüd fixed (rögzített), ezt a tartalmi részbe tesszük */
    margin-top: 70px; /* A menü magassága, hogy ne csússzon alá */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hello-bar a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 5px;
}

/* 3. HERO BADGE (A főcím fölé) */
.hero-badge {
    display: inline-block;
    background-color: #E0F7EF; /* Halványzöld háttér */
    color: var(--color-accent-green); /* Sötétzöld szöveg */
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 20px; /* Kapszula forma */
    margin-bottom: 20px; /* Hely a cím előtt */
    border: 1px solid rgba(0, 196, 140, 0.2);
}

/* Pulzáló animáció a piros címkének */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* MOBIL FIX: Ha van Hello Bar, a Hero paddingon kicsit igazítunk */
@media (max-width: 768px) {
    .hello-bar {
        font-size: 12px;
        flex-direction: column;
        gap: 5px;
    }
}
/* --- FAQ: SZEKCIÓK VIZUÁLIS ELKÜLÖNÍTÉSE + BEVEZETŐ KÁRTYA --- */

.faq-group {
  margin-top: 32px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FF 100%);
  border: 1px solid #EBEBEB;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.faq-group + .faq-group {
  margin-top: 28px;
}

.faq-group-title {
  margin: 6px 0 14px 0;
  font-size: 1.4rem;
  color: var(--color-dark);
}

/* A narratív bevezető: nem details, hanem külön kártya */
.faq-intro {
  background: radial-gradient(circle at top right, #F0F2FF 0%, #FFFFFF 70%);
  border: 1px solid #E8E9FF;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 14px 0;
}

.faq-intro p {
  margin: 0;
  color: var(--color-grey);
  line-height: 1.7;
  font-size: 0.98rem;
}

/* Hogy a details dobozok szépen illeszkedjenek a group kártyába */
.faq-group details {
  margin-bottom: 12px;
}

.faq-group details:last-child {
  margin-bottom: 0;
}
.page-header {
    text-align: center;
}

.page-header .section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
/* Hello bar – insurance highlight */
.hello-bar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 16px;
  font-size:15px;
  line-height:1.35;
  text-align:center;
}

/* green pill for insurance */
.hello-bar .hello-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  letter-spacing:0.2px;

  /* FIX: kontraszt */
  color:#fff;
  background:#00b67a;            /* ha van hivatalos brand green, ide tedd */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}


/* main text */
.hello-bar .hello-text{
  color: inherit;
}

/* CTA as subtle chip (not underline only) */
.hello-bar .hello-cta{
  color:#fff;
  text-decoration:none;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(255,255,255,0.18);
  white-space:nowrap;
}

.hello-bar .hello-cta:hover{
  background: rgba(255,255,255,0.26);
}

/* mobile: allow wrapping nicely */
@media (max-width: 768px){
  .hello-bar{
    flex-wrap:wrap;
    padding:10px 12px;
    font-size:14px;
  }
}
/* Scroll-reveal (safe): default visible, hide only when JS enabled */
.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 520ms ease, transform 520ms ease;
  will-change: opacity, transform;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* optional directions */
.js-reveal .reveal.reveal-left { transform: translate3d(-10px, 0, 0); }
.js-reveal .reveal.reveal-right { transform: translate3d(10px, 0, 0); }
.js-reveal .reveal.is-visible.reveal-left,
.js-reveal .reveal.is-visible.reveal-right { transform: translate3d(0,0,0); }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal,
  .js-reveal .reveal.is-visible {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
/* NAV active state (általános) */
.nav-menu li a.nav-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Notify modal (subscribe) --- */
/* Base behavior: hidden by default, fixed overlay when opened */
.notify-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.notify-modal.is-open{
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14vh 16px 24px;
}

.notify-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.55);
  backdrop-filter: blur(6px);
}

.notify-dialog{
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  max-height: calc(100vh - 14vh - 24px);
  overflow: auto;

  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

/* close button */
.notify-close{
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;
  border-radius: 10px;

  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);

  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.notify-close:hover{
  background: rgba(0,0,0,0.10);
}

/* typography */
.notify-title{
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  margin: 2px 42px 6px 0;
  letter-spacing: -0.3px;
}

.notify-subtitle{
  margin: 0 0 14px;
  color: rgba(0,0,0,0.72);
  line-height: 1.45;
  font-size: 14px;
}

/* form structure */
.notify-form{
  display: flex;
  flex-direction: column;
}

/* label + input */
.notify-label{
  font-weight: 700;
  margin: 10px 0 6px;
  color: rgba(0,0,0,0.86);
}

.notify-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(246,248,255,0.80);
  padding: 12px 12px;
  outline: none;

  font-size: 16px; /* prevents iOS zoom */
  transition: box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  box-sizing: border-box;
}

.notify-input:focus{
  background: #fff;
  border-color: rgba(65, 73, 223, 0.55);
  box-shadow: 0 0 0 4px rgba(65, 73, 223, 0.16);
}

/* consent row */
.notify-consent{
  display: flex;
  gap: 10px;
  align-items: flex-start;

  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246,248,255,0.90);
  border: 1px solid rgba(0,0,0,0.06);
}

.notify-consent input{
  margin-top: 3px;
  min-width: 16px;
  min-height: 16px;
}

.notify-consent span{
  color: rgba(0,0,0,0.78);
  line-height: 1.35;
  font-size: 13px;
}

.notify-consent a{
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.notify-consent a:hover{
  text-decoration: underline;
}

/* submit button */
.notify-submit{
  width: 100%;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 0;

  background: var(--color-primary);
  color: #fff;

  box-shadow: 0 10px 22px rgba(65, 73, 223, 0.22);
  transition: transform 120ms ease, box-shadow 180ms ease, opacity 180ms ease;
  cursor: pointer;
}

.notify-submit:hover{
  background: var(--color-primary-light);
  box-shadow: 0 14px 28px rgba(65, 73, 223, 0.26);
  transform: translateY(-1px);
}

.notify-submit:active{
  transform: translateY(0px);
}

.notify-submit[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* note + status */
.notify-note{
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(0,0,0,0.62);
}

.notify-status{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0,0,0,0.75);
}

/* small screens */
@media (max-width: 520px){
  .notify-modal.is-open{
    padding-top: 10vh;
  }
  .notify-dialog{
    width: min(92vw, 520px);
    padding: 16px 14px 14px;
  }
  .notify-title{
    font-size: 20px;
  }
}

/* subtle pop animation (no circus) */
.notify-modal.is-open .notify-dialog{
  animation: notifyPop 220ms ease-out;
}

@keyframes notifyPop{
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.985); }
  to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
