/* Smooth theme transitions */
body, .header, form, input, textarea, .video-overlay {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, opacity .35s ease;
}

:root{
  --bg:#ffffff;
  --card:rgba(255,255,255,0.80);
  --text:#0b1020;
  --muted:#4b5563;
  --blue:#1e8fff;
  --border:rgba(10,20,40,0.12);
  --shadow:0 18px 60px rgba(0,0,0,0.12);

  --videoOpacity: 0.22;
}


/* Dark mode overrides (optional toggle) */
.dark{
  --bg:#0b1020;
  --card:rgba(255,255,255,0.06);
  --text:#ffffff;
  --muted:rgba(255,255,255,0.70);
  --border:rgba(255,255,255,0.12);
  --shadow:0 18px 60px rgba(0,0,0,0.35);
}

body{
  margin:0;
  font-family:Segoe UI, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  min-height:100vh;
}

/* VIDEO BACKGROUND LAYER */
.video-bg{
  position:fixed;
  inset:0;
  z-index:-2;
  overflow:hidden;
  background:var(--bg);
}
.video-bg video{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: blur(1px) saturate(1.05);
  opacity: var(--videoOpacity);}

/* soft overlay so text stays readable */
.video-overlay{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(30,143,255,0.18), transparent 60%),
    radial-gradient(900px 420px at 85% 20%, rgba(11,101,194,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.92) 100%);
}
.dark .video-overlay{
  background:
    radial-gradient(900px 420px at 15% 10%, rgba(30,143,255,0.28), transparent 60%),
    radial-gradient(900px 420px at 85% 20%, rgba(11,101,194,0.22), transparent 60%),
    linear-gradient(180deg, rgba(11,16,32,0.78) 0%, rgba(7,10,18,0.90) 100%);
}

/* HEADER */
.header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:18px 22px;
  position:relative;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
}
.dark .header{
  background:rgba(10,12,18,0.45);
}

.header h1{
  margin:0;
  font-size:18px;
  letter-spacing:0.2px;
}

#themeToggle{
  margin-left:auto;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
}

/* HERO */
.trust-animated{
  padding:48px 22px 10px;
  text-align:center;
}
.trust-animated h2{
  margin:0 auto;
  max-width:820px;
  font-size:28px;
}
.trust-animated p{
  margin:10px auto 0;
  max-width:760px;
  color:var(--muted);
}

/* FORM */
.form-section{
  max-width:720px;
  margin:0 auto;
  padding:22px;
}
form{
  background:var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:22px;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media(max-width:720px){
  .grid-2{ grid-template-columns:1fr; }
}

label{
  font-size:13px;
  color:var(--muted);
  display:block;
  margin:2px 0 6px;
}

input,textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.75);
  color:var(--text);
  outline:none;
}
.dark input, .dark textarea{
  background:rgba(0,0,0,0.22);
}

input:focus, textarea:focus{
  border-color: rgba(30,143,255,0.55);
  box-shadow: 0 0 0 4px rgba(30,143,255,0.12);
}

textarea{ min-height:120px; resize:vertical; }

button{
  width:100%;
  padding:14px;
  border:none;
  color:#fff;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:0.2px;
  background: linear-gradient(135deg, #0b65c2, #1e8fff);
  box-shadow: 0 14px 35px rgba(30,143,255,0.22);
  transition: transform .15s ease, box-shadow .15s ease;
}
button:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(30,143,255,0.28);
}

/* Footer */
.footer{
  padding:18px 22px 30px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}

/* Icons */
.header-shield { height: 38px; vertical-align: middle; }
.footer-shield { height: 26px; vertical-align: middle; margin-right: 6px; }

/* Fade effect on theme toggle */
.theme-fade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 9999;
}
.theme-fade.on { opacity: 1; }
.dark .theme-fade { background: rgba(255,255,255,0.06); }

/* Classy glass effect + video background */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #ffffff;
}
.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
}
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
}
body.dark .video-overlay {
  background: rgba(10,16,32,0.78);
}
.header, .form-section form, .footer, .trust-animated {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.form-section form {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(10,20,40,0.14);
}
body.dark .form-section form {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}
button {
  transform: translateZ(0);
}

/* Floating Translator (Collapsible + Scrollable Language List) */
.tw-translator {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  font-family: Segoe UI, Arial, sans-serif;
}
.tw-translator .tw-translator-toggle {
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(10,20,40,0.14);
  background: linear-gradient(135deg, rgba(11,101,194,0.95), rgba(30,143,255,0.95));
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.tw-translator .tw-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.20);
}
.tw-translator .tw-badge img { width: 20px; height: 20px; }
.tw-translator .tw-title { color:#fff; font-size:12px; font-weight:800; line-height:1.1; margin:0; }
.tw-translator .tw-sub { color: rgba(255,255,255,0.85); font-size:11px; margin:2px 0 0 0; }

.tw-translator-panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: 270px;
  max-height: 420px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(10,20,40,0.14);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
body.dark .tw-translator-panel {
  background: rgba(10,16,32,0.88);
  border: 1px solid rgba(255,255,255,0.12);
}
.tw-translator-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.tw-translator-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 12px 10px 12px;
  background: linear-gradient(135deg, rgba(11,101,194,0.95), rgba(30,143,255,0.95));
  color: #fff;
}
.tw-translator-head b { font-size: 12px; letter-spacing: 0.2px; }
.tw-translator-close {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  color:#fff;
  border-radius: 12px;
  padding: 6px 8px;
  cursor:pointer;
}
.tw-translator-body { padding: 10px 12px 12px 12px; }
.tw-lang-search {
  width: 100%;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(10,20,40,0.14);
  background: rgba(255,255,255,0.70);
  outline: none;
  color: #111;
}
body.dark .tw-lang-search {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);
  color: #fff;
}
.tw-lang-list {
  margin-top: 10px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}
.tw-lang-item {
  width: 100%;
  text-align: left;
  display: block;
  border: 1px solid rgba(10,20,40,0.10);
  background: rgba(255,255,255,0.62);
  color: #111;
  padding: 10px 10px;
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, border-color .2s ease;
}
.tw-lang-item:hover { transform: translateY(-1px); background: rgba(255,255,255,0.85); }
body.dark .tw-lang-item {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  color: #fff;
}
body.dark .tw-lang-item:hover { background: rgba(0,0,0,0.35); }

/* Hide Google branding and banner */
.goog-te-banner-frame.skiptranslate { display:none !important; }
body { top: 0px !important; }
.goog-logo-link, .goog-te-gadget span { display: none !important; }

/* Translator list UI */
.tw-translator {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  width: 270px;
  border-radius: 18px;
  border: 1px solid rgba(10,20,40,0.14);
  background: linear-gradient(135deg, rgba(11,101,194,0.92), rgba(30,143,255,0.92));
  box-shadow: 0 18px 50px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.tw-translator-toggle {
  width: 100%;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}
.tw-translator .tw-badge {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.16);
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(255,255,255,0.20);
  flex: 0 0 auto;
}
.tw-translator .tw-badge img { width: 20px; height: 20px; }
.tw-toggle-text { display:flex; flex-direction:column; align-items:flex-start; gap:2px; flex: 1; }
.tw-translator .tw-title { font-size: 12px; font-weight: 900; margin:0; line-height:1; }
.tw-translator .tw-sub { font-size: 11px; margin:0; opacity:.9; }
.tw-caret { opacity: .9; font-weight: 900; }

.tw-translator-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s ease, opacity .22s ease, transform .22s ease;
  background: rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.18);
}
.tw-translator.open .tw-translator-panel {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
}
.tw-lang-search{
  width: calc(100% - 24px);
  margin: 10px 12px 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.14);
  color: #fff;
  outline: none;
}
.tw-lang-search::placeholder{ color: rgba(255,255,255,0.8); }
.tw-lang-list{
  margin: 0 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.10);
  max-height: 250px;
  overflow: auto;
  padding: 6px;
}
.tw-lang-item{
  width: 100%;
  text-align:left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.0);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 0;
}
.tw-lang-item:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.16);
}
.tw-lang-empty{
  color: rgba(255,255,255,0.85);
  padding: 10px;
  font-size: 12px;
}
.tw-lang-foot{
  color: rgba(255,255,255,0.82);
  font-size: 10px;
  padding: 0 12px 12px;
}
/* Hide default Google banner */
.goog-te-banner-frame.skiptranslate { display:none !important; }
body { top: 0px !important; }


/* Ensure full-screen video background across all pages */
html, body { height: 100%; }
body { background: transparent !important; }
.video-bg { position: fixed; inset: 0; width: 100vw; height: 100vh; }
.video-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Make video more visible while keeping classy overlay */
.video-bg video { opacity: 0.68; }
.video-overlay { opacity: 1; }


/* Ensure hero/section images render correctly */
img { max-width: 100%; height: auto; display: block; }
.hero-media, .section-media, .trust-logos { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-media img, .section-media img, .trust-logos img { border-radius: 16px; box-shadow: var(--shadow); }
