/* ===================== Design tokens ===================== */
:root{
  --page-bg:#EDEDED;
  --text-strong:#333;
  --pill-bg:#FFF;
  --pill-hover:#707070;
  --glass-bg:rgba(255,255,255,.94);
  --tile-radius:.5rem;
  --shadow-soft:0 4px 8px rgba(0,0,0,.10);
  --content-max:900px;
  --header-min-h:88px;
  --header-pad-x:2%;
  --icon-width:22px;
  --icon-stroke:2px;
  --icon-gap:5px;
  --pill-radius:.5rem;
  --pill-font-size:.8rem;
  --pill-pad-y:.35rem;
  --pill-pad-x:.75rem;
  --chev-spread:-450%; /* lightbox arrow stroke spread */
}

/* ===================== Base / reset ===================== */
*,*::before,*::after{ box-sizing:border-box; }

html{
  font-size:100%;
  scroll-behavior:smooth;
  overflow-y:scroll;         /* keep scrollbar width stable */
  scrollbar-gutter:stable;
}
html,body{ overflow-x:hidden; height:100%; margin:0;  }

body{
    display:flex;
    flex-direction:column;
    min-height:100dvh;
    margin:0;
    padding:0;
    line-height:1.6;
    font-family:'Poppins',sans-serif;
    font-size:1.1rem;
    background:var(--page-bg);
    color:var(--text-strong);
    padding-top:var(--header-min-h); /* room for fixed header */
}

main {
  flex: 1 0 auto;
}

/* media elements */
img,video,canvas{ display:block; max-width:100%; height:auto; }

/* ===================== Typography ===================== */
h1,h2,h3,h4,h5,h6{
  margin:1.5em 0 .5em;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#000;
}
h2{ font-size:clamp(1.75rem,5vw,2.5rem); }
p,ul,ol{ margin-bottom:1em; font-weight:300; font-size:clamp(.875rem,2.5vw,1.1rem); }

/* ---------- Uniform line bullets (same thickness & centered) ---------- */
:root{
  --lines-y: 0.82em;            /* vertical position relative to first line */
  --lines-color: #333;          /* fixed color so they don't look "thinner" */
  --lines-width: 12px;          /* line length */
}

ul.lines{
  list-style: none;
  margin: 0 0 1em 0;
  padding-left: 1rem;           /* space for the custom line */
}

ul.lines li{
  position: relative;
  margin: 0 0 .5rem 0;
  padding-left: 1.75rem;

  /* normalize text so bullets look identical everywhere */
  font-weight: 300;
  font-size: clamp(.875rem, 2.5vw, 1.1rem);
  line-height: 1.6;
}

/* hide native markers (incl. Safari) */
ul.lines li::marker{ content: ''; }

/* crisp 1px line; border-top avoids sub-pixel blur */
ul.lines li::before{
  content: '';
  position: absolute;
  left: 0;
  top: var(--lines-y);          /* around mid of the first text line */
  transform: translateY(-50%);  /* exact vertical centering */
  width: var(--lines-width);
  height: 0;                    /* we draw via border for pixel-perfect 1px */
  border-top: 1px solid var(--lines-color);
  /* no opacity/blur/radius — keeps edges razor-sharp */
}

/* ===================== Sections ===================== */
section {
  max-width: var(--content-max);
  margin: 8rem auto; /* more air between sections */
  padding-left: clamp(1.25rem, 5vw, 2rem);
  padding-right: clamp(1.25rem, 5vw, 2rem);
  position: relative; /* for pseudoelement */
}

/* Anchor offset for fixed header */
section[id]{ scroll-margin-top:calc(var(--header-min-h) + 12px); }
@media (max-width:960px){
  section[id]{ scroll-margin-top:calc(var(--header-min-h) + 20px); }
}
#home{ scroll-margin-top:0; } /* home = very top */

section:not(#contact):not(#home)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4.5rem;
  transform: translateX(-50%);
  width: 100%; /* whole screen - like a board */
  max-width: 800px;
  height: 2px;
  /*margin-top: 2rem; - useless */
  background: linear-gradient(90deg, transparent, var(--text-strong), transparent);
  opacity: 0.4;
}

/* ===================== Header ===================== */
#main-header{
    position:fixed; top:0; left:0; right:0; z-index:1100;
    min-height:var(--header-min-h); width:100%;
    padding:1rem var(--header-pad-x);
    display:flex; align-items:center; justify-content:flex-start; gap:12px;
    background:rgba(255,255,255,.80);
    backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
    box-shadow:var(--shadow-soft);
    align-items:center;
    scrollbar-width: none;
}

#main-header::-webkit-scrollbar{ display: none; }

#main-header .logo img{ height:clamp(3rem,5vw,4rem); width:auto; }

/* right-justified desktop nav */
.site-nav-desktop{ margin-left:auto; display:flex; align-items:center; gap:1rem; }
.site-nav-desktop .nav-list{
    display:flex; gap:1rem; margin:0; padding:0;
    overflow:hidden;
}

/* ===================== Desktop nav (pill buttons) ===================== */
.site-nav-desktop .nav-list{
  display:flex; gap:1rem; list-style:none; margin:0; padding:0;
}
.site-nav-desktop .nav-list a{
  display:inline-block;
  padding:var(--pill-pad-y) var(--pill-pad-x);
  font-size:var(--pill-font-size);
  text-decoration:none; text-transform:uppercase;
  font-weight:550; color:var(--text-strong);
  background:var(--pill-bg);
  border-radius:var(--pill-radius);
  transition:background-color .2s,color .2s;
  -webkit-tap-highlight-color:transparent;
}
.site-nav-desktop .nav-list a:hover,
.site-nav-desktop .nav-list a:focus{
      outline: 2px solid #000;
      outline-offset: 2px;
}
.site-nav-desktop .nav-list a.active{
  background:var(--pill-bg); color:var(--text-strong);
}

/* ===================== Language dropdown (desktop only) ===================== */
.lang-dropdown{ position:relative; display:none; }
@media (min-width:961px){
  .lang-dropdown{ display:inline-block;
  }

  .lang-btn{
    display:inline-block;
    border:0; border-radius:var(--pill-radius);
    padding:var(--pill-pad-y) var(--pill-pad-x);
    font-size:var(--pill-font-size); font-weight:550; text-transform:uppercase;
    background:var(--pill-bg); color:var(--text-strong);
    cursor:pointer; transition:background-color .2s,color .2s;
  }
  .lang-btn:hover,.lang-btn:focus{ background:var(--pill-hover); color:#fff; outline:none; }

  .lang-menu{
    position:absolute; right:0; top:calc(100% + 6px);
    width:100%;
    background:#fff; border-radius:var(--pill-radius);
    padding:6px 0;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    visibility:hidden; opacity:0; transform:translateY(-4px);
    transition:opacity .15s ease, transform .15s ease, visibility .15s;
    z-index:2000; text-align:center;
  }
  .lang-dropdown.open .lang-menu{ visibility:visible; opacity:1; transform:translateY(0);
  }

  .lang-menu a{
    display:block; margin:4px auto; width:calc(100% - 12px);
    padding:var(--pill-pad-y) var(--pill-pad-x);
    font-size:var(--pill-font-size); font-weight:550; text-transform:uppercase;
    color:var(--text-strong); background:var(--pill-bg);
    border-radius:var(--pill-radius); text-decoration:none;
    transition:background-color .2s,color .2s;
  }
  .lang-menu a:hover,.lang-menu a:focus{ background:var(--pill-hover); color:#fff; outline:none; }
}

/* ===================== Burger button (mobile) ===================== */
.nav-toggle{
  display:none;
  margin-left:auto;
  background:var(--pill-bg);
  border:none;
  border-radius:.5rem;
  padding:.5rem .6rem;
  cursor:pointer;
  color:var(--text-strong);
  line-height:0; /* keep icon perfectly centered */
  transition:background-color .2s, color .2s;
}
.nav-toggle:hover,
.nav-toggle:focus{ background:var(--pill-hover); color:#fff; outline:none; }

/* both icons live inside the same button */
.nav-toggle .icon{ display:inline-block; vertical-align:middle; }
.nav-toggle .icon-close{ display:none; }

/* ---------- Burger (3 bars) ---------- */
.icon-hamburger {
  display: inline-block;
  width: 22px;
  height: 18px;
  position: relative;
}

.icon-hamburger .bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 5px;
  transition: background-color .2s;
}

.icon-hamburger .bar:nth-child(1) { top: 0; }
.icon-hamburger .bar:nth-child(2) { top: 8px; }
.icon-hamburger .bar:nth-child(3) { top: 16px; }

/* ---------- Close (X) ---------- */
.icon-close{
  position:relative;
  width:var(--icon-width);
  height:var(--icon-width);
}
.icon-close .bar{
  position:absolute; top:50%; left:0;
  width:var(--icon-width); height:var(--icon-stroke);
  background:currentColor; border-radius:1px; transform-origin:center;
}
.icon-close .bar:first-child{ transform:translateY(-50%) rotate(45deg); }
.icon-close .bar:last-child { transform:translateY(-50%) rotate(-45deg); }

/* show button only on mobile/tablet, align/center once */
@media (max-width:960px){
  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; margin-left:auto; }
}

/* ===================== Overlay navigation (mobile) ===================== */
.site-nav{ display:none!important; visibility:hidden!important; pointer-events:none!important; }
.site-nav-desktop .nav-list,
.site-nav .nav-list{ list-style:none!important; margin:0!important; padding:0!important; }

@media (max-width:960px){
  .site-nav-desktop{ display:none; }
  .nav-toggle{ display:inline-flex; margin-left:auto; }

  .site-nav{
    position: fixed;
    inset: 0;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: clamp(16px, 6vw, 40px);
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: grid;
    grid-auto-rows: max-content;
    justify-items: center;
    align-content: start;
    row-gap: clamp(12px, 3.5vh, 22px);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, visibility .12s ease;
  }

  .site-nav .nav-list{
    width: min(88vw, 22rem);
    display: grid;
    gap: .75rem;
    margin: 0 auto;
  }
  .site-nav .nav-list a{
    display: block;
    width: 100%;
    padding: .9rem 1rem;
    font-size: clamp(.95rem, 4vw, 1.15rem);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-strong);
    background: #fff;
    border-radius: var(--tile-radius);
    transition: background-color .15s, color .15s;
  }
  .site-nav .nav-list a:hover,
  .site-nav .nav-list a:focus{
    background:#F0F0F0; color:#000; outline:none;
  }

  .overlay-brand{ display:block; margin:0 auto clamp(1.25rem,5vh,2.5rem); }
  .overlay-brand img{ display:block; margin:0 auto; max-height:60px; max-width:60vw; height:auto; width:auto; }

  .lang-inline-mobile{
    position: fixed;
    bottom: 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    background: transparent;
    padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
    box-shadow: none;
    z-index: 10001;
  }
  .lang-inline-mobile a{
    display: inline-block;
    width: 78px;
    padding: .9rem;
    font-size: .98rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    background:#fff;
    color: var(--text-strong);
    border-radius: var(--tile-radius);
    transition: background-color .15s, color .15s;
  }
  .lang-inline-mobile a:hover,
  .lang-inline-mobile a:focus{
    background:#F0F0F0; color:#000; outline:none;
  }

  body.menu-open .site-nav{
    display:grid !important;
    visibility:visible !important;
    pointer-events:auto !important;
    opacity:1 !important;
  }
  body.menu-open{ position:fixed; inset:0; overflow:hidden; }

  .nav-close{
    position: fixed; top: 16px; right: 16px; z-index: 10000;
    border: none; background: transparent; padding: 8px; margin: 0; cursor: pointer;
  }
  .nav-close .x{ position:relative; width:22px; height:22px; display:inline-block; }
  .nav-close .x span{
    position:absolute; top:50%; left:0; width:100%; height:2px; background:#333; border-radius:2px; transform-origin:center;
  }
  .nav-close .x span:first-child{ transform:translateY(-50%) rotate(45deg); }
  .nav-close .x span:last-child { transform:translateY(-50%) rotate(-45deg); }

  @media (max-width: 380px){
    .site-nav { padding: 12px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .site-nav .nav-list a { padding: .7rem .85rem; font-size: .9rem; }
  }
}

/* ===================== Contact section ===================== */
#contact{
  max-width:var(--content-max);
  margin:1em auto 3rem;
  padding-left:clamp(1.25rem,5vw,2rem);
  padding-right:clamp(1.25rem,5vw,2rem);
}
#contact h2,#contact h3{
  text-transform:uppercase; letter-spacing:.05em;
}

/* full-width form inside section */
#contact-form{
  display:flex; flex-direction:column; gap:1.25rem;
  width:100%; max-width:100%; margin:0 auto;
}
#contact-form .form-group label{
  display:block; margin:0 0 .5rem; font-weight:500;
  font-size:clamp(.95rem,2.2vw,1.1rem); color:var(--text-strong);
}
#contact-form .form-group input,
#contact-form .form-group textarea{
  appearance:none; -webkit-appearance:none; border:none; outline:none;
  width:100%; padding:1rem; font-size:1.1rem; line-height:1.3; border-radius:.5rem;
  background:#F9F9F9; color:var(--text-strong);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
  transition:box-shadow .15s ease, background-color .15s ease;
}
#contact-form .form-group input::placeholder,
#contact-form .form-group textarea::placeholder{ color:#9a9a9a; }
#contact-form .form-group input:focus,
#contact-form .form-group textarea:focus{
  background:#FFFFFF; box-shadow:inset 0 0 0 2px #CFCFCF;
}

/* textarea auto-grow (JS supports it) */
#contact-form .form-group textarea{
  min-height:8rem; resize:none; overflow:hidden;
}

/* submit button full width */
#contact-form button[type="submit"],
#contact-form .btn{
  width:100%; text-align:center; align-self:stretch;
  padding:1rem; font-size:1.1rem; border-radius:var(--pill-radius);
  background:#707070; color:#fff; border:none; cursor:pointer;
  transition:background-color .2s ease, transform .02s ease;
}
#contact-form button[type="submit"]:hover{ background:#5e5e5e; }
#contact-form button[type="submit"]:active{ transform:translateY(1px); }

@media (max-width:600px){
  #contact{ margin-bottom:2.25rem; }
}

/* contact subline (looks like body text with controlled spacing) */
.contact-sub{
  letter-spacing:.05em;
  margin-top:1.5rem;
  margin-bottom:1rem;
}

/* Unify pill heights: language button same as menu buttons */
.site-nav-desktop .nav-list a,
.lang-btn,
.lang-menu a{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1.2rem;
  font-size:var(--pill-font-size); line-height:1; font-weight:600; text-transform:uppercase;
  border-radius:var(--pill-radius);
  background:var(--pill-bg); color:var(--text-strong); text-decoration:none;
  transition:background-color .2s, color .2s;
  -webkit-tap-highlight-color:transparent;
}
.site-nav-desktop .nav-list a:hover,
.site-nav-desktop .nav-list a:focus,
.lang-btn:hover,.lang-btn:focus,
.lang-menu a:hover,.lang-menu a:focus{
  background:var(--pill-hover); color:#fff; outline:none;
}
.lang-menu{ width:100%; text-align:center; padding:6px 0; }
.lang-menu a{ width:calc(100% - 12px); margin:4px auto; }

/* ===================== HERO ===================== */
#home{
    margin: 1em auto; min-height:10vh; padding-top:4rem; padding-bottom:1rem; position:relative; overflow:visible; /* allow full-width background pseudo */
}

#home::before{
  content:"";
  position:absolute;
  left:50%; transform:translateX(-50%);
  width:100vw;
  height:clamp(32rem, 62vh, 48rem);
  top:-1rem;
  z-index:0; pointer-events:none;
  background:linear-gradient(
    180deg,
    #f5f5f5 0%,
    #ffffff 40%,
    #f8f8f8 70%,
    #ededed 100%
  );
}
/* center hero intro content */
#home h2,#home p,#home .hero-img{
  position:relative; z-index:1;
  display:block; margin-left:auto; margin-right:auto; text-align:center;
}
/* hero title */
#home h2{
  font-size:clamp(2rem,4vw,2.8rem); font-weight:600; color:#000;
  text-transform:uppercase; letter-spacing:.05em;
  margin-top:clamp(3rem,6vw,5rem); margin-bottom:.8rem;
}
/* hero paragraph */
#home > p{
  font-size:clamp(1rem,2.2vw,1.15rem); font-weight:300; color:#707070;
  line-height:1.6; max-width:700px; margin:0 auto clamp(2.5rem,4vw,3rem);
}
/* hero image */
#home .hero-img{
  max-width:min(90%, 1000px);
  height:auto; object-fit:contain; background:transparent; border:none; box-shadow:none;
  margin-top:1rem; margin-bottom:clamp(2.5rem,5vw,3.5rem);
}

/* ===================== Features (What you get) ===================== */
#home h3{
  margin-top:clamp(3.5rem,7vw,5rem);
  margin-bottom:1.75rem;
  text-align:left; color:#000; font-weight:600; text-transform:uppercase; letter-spacing:.05em;
}
.features-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:clamp(16px,3vw,28px);
  align-items:start; justify-items:center;
  width:100%; margin:0 auto 2.25rem auto; padding:0;
  position:relative; z-index:2;
}
.feature{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  max-width:260px; width:100%;
}
.feature img{
  width:48px; height:48px; display:block; margin-bottom:.6rem;
  filter:grayscale(100%) brightness(.25); opacity:.9;
}
.feature h4{
  font-size:clamp(.95rem,1.6vw,1.3rem);
  font-weight:600; text-transform:uppercase; color:#000;
  margin:0 0 .3rem 0; min-height:2.2em; line-height:1.1;
}
.feature p{
  font-size:clamp(.875rem,2.2vw,1rem); line-height:1.45; color:var(--text-strong);
  margin:0; max-width:24ch;
}
@media (max-width:960px){
  .features-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:clamp(14px,3vw,22px); }
  .feature{ max-width:320px; }
}
@media (max-width:520px){
  .feature img{ width:42px; height:42px; }
  .feature h4{ font-size:1.1rem; min-height:2.1em; }
  .feature p{ font-size:1.1rem; }
}

#home::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 3px;
  bottom: -4.1rem;
  margin-top: 0;
  background: linear-gradient(90deg, transparent, var(--text-strong), transparent);
  opacity: 0.4;
}

/* ===================== Products & Projects ===================== */
#products{
  max-width:var(--content-max);
  margin:2rem auto 4rem;
  padding:0 clamp(1.25rem,5vw,2rem);
}
#products h2{
  text-transform:uppercase; letter-spacing:.05em;
  font-size:clamp(1.8rem,5vw,2.4rem);
  text-align:left; margin-bottom:1.5rem; color:#000;
}
#products h3{
  text-transform:uppercase; margin-top:1.5rem; margin-bottom:.75rem; color:var(--text-strong);
}
#products p{ color:#707070; text-align:center; margin-bottom:1.5rem; }
#products h3 + p{ color:#000; font-weight:600; text-align:left; margin-bottom:1.25rem; }

.project-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:1.5rem; align-items:start; justify-items:center;
}
.project-grid figure{ margin:0; text-align:center; }
.project-grid img{
  width:100%; border-radius:.5rem; box-shadow:var(--shadow-soft);
  cursor:pointer; transition:filter .2s ease; filter:none;
}
.project-grid img:hover,
.project-grid img:focus{
  transform:none !important; filter:brightness(.8); outline:none;
}
.project-grid figure:hover img,
.project-grid figure:focus-within img{
  transform:none !important; filter:brightness(.8);
}
.project-grid figcaption{ margin-top:1rem; font-size:1.1rem; color:var(--text-strong); line-height:1.4; }
.project-grid .hidden{ display:none; } /* invisible gallery-only item */

/* ===================== Lightbox ===================== */
.lightbox{
  position:fixed; inset:0; z-index:5000;
  display:none; align-items:center; justify-content:center;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
}
.lightbox.open{ display:flex; }
.lightbox__img{
  max-width:90vw; max-height:80vh;
  border-radius:.5rem; box-shadow:0 4px 20px rgba(0,0,0,.12);
  background:transparent; border:none;
}

/* controls */
.lb-btn{
  position:absolute; border:0; background:transparent; padding:8px;
  cursor:pointer; -webkit-tap-highlight-color:transparent; z-index:5001;
}
/* close button */
.lb-close{ top:20px; right:20px; }
.lb-close .x{ position:relative; width:22px; height:22px; display:inline-block; }
.lb-close .x span{
  position:absolute; top:50%; left:0; width:100%; height:2px; background:#333; border-radius:2px; transform-origin:center;
}
.lb-close .x span:first-child{ transform:translateY(-50%) rotate(45deg); }
.lb-close .x span:last-child { transform:translateY(-50%) rotate(-45deg); }

/* arrows */
.lightbox .lb-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index:5001; width:40px; height:40px; padding:8px; cursor:pointer;
}
.lightbox .lb-prev{ left:40px; }
.lightbox .lb-next{ right:40px; }
.lightbox .lb-arrow .x{ position:relative; width:26px; height:26px; display:inline-block; }
.lightbox .lb-arrow .x span{
  position:absolute; left:0; top:50%; width:100%; height:2px; background:#333; border-radius:2px;
}
.lightbox .lb-prev .x span:first-child{ transform:translateY(calc(var(--chev-spread) * -1)) rotate(45deg); }
.lightbox .lb-prev .x span:last-child { transform:translateY(var(--chev-spread)) rotate(-45deg); }
.lightbox .lb-next .x span:first-child {
  transform: translateY(calc(var(--chev-spread) * -1)) rotate(-45deg);
}
.lightbox .lb-next .x span:last-child {
  transform: translateY(var(--chev-spread)) rotate(45deg);
}
.lb-btn:hover .x span, .lb-arrow:hover .x span{ background:#707070; }

/* ===================== Footer ===================== */
footer{
  margin-top:auto; background:#000; color:#fff; padding:20px; text-align:center;
  padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,0.1);
}
footer p{ margin:0; font-weight:600; font-size:1.1rem; }
@media (max-width:960px){
  footer{ padding-bottom:max(20px, env(safe-area-inset-bottom)); }
}
/* ===================== Accessibility ===================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

/* ===================== Inline flash over contact form ===================== */

.contact-form-shell {
  position: relative;
}

.flash-inline-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 4rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 3000;
}

/* Flash-card */
.flash-card {
  max-width: min(90%, 500px);
  background: #FFECEC;           /* red background */
  border: 2px solid #ffb5b5;
  border-radius: .5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
  padding: 1.5rem 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
  color: #a40000;
  pointer-events: auto;          /* card is clickable */
}

/* Text inside */
.flash-card-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Success = green */
.flash-card.success {
  background: #E6FFED;
  border-color: #B4F5C0;
  color: #005c2a;
}

/* Errors = red */
.flash-card.error {
  background: #FFECEC;
  border-color: #FFC2C2;
  color: #7a0000;
}

/* For very small screens */
@media (max-width:480px){
  .flash-inline-wrapper {
    top: 3rem;
  }
  .flash-card {
    padding: 1rem;
    font-size: .95rem;
  }
}

/* Honeypot anti-bot field (must be invisible to real users) */
.hp-wrapper {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.hp-wrapper label {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.hp-field {
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 1px !important;
  line-height: 1px !important;
  pointer-events: none !important;
}
