:root{
  --bg-image: url("image.png"); /* Swap in your blended flags image path */
  --bg-overlay: rgba(0, 0, 0, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.35);
  --text: #f7f9fb;
  --muted: #e9eef5;
  --accent: #31c48d; /* subtle green accent */
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #0e1116;
  line-height: 1.55;
}

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.15), rgba(255,255,255,0.15)),
    url("image.png") center/cover no-repeat fixed;
  z-index: -2;

  /* transparency controls */
  opacity: 0.7;              /* adjust 0.5–0.8 for lighter/darker */
  filter: brightness(1.1);   /* boost brightness slightly */
}


.site-header{
  padding: clamp(48px, 6vw, 96px) 0 clamp(24px, 4vw, 48px);
  text-align: center;
}

.title{
  margin: 0 0 12px 0;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
}

.subtitle{
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(16px, 2.2vw, 20px);
  color: #e6ebf4;
  opacity: 0.95;
}

/* Glass counter card */
.counter-card{
  margin: clamp(24px, 4vw, 40px) auto 0;
  width: min(820px, 95%);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(180deg, var(--glass-bg), rgba(255,255,255,0.06));
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 15px 60px rgba(0,0,0,0.35), inset 0 1px 0 var(--glass-border);
}

.counter-top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  user-select: none;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(49,196,141,0.8);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0% { box-shadow: 0 0 0 0 rgba(49,196,141,0.8); }
  70% { box-shadow: 0 0 0 14px rgba(49,196,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(49,196,141,0); }
}

.live-text{
  font-weight: 600;
  color: #eaf2ff;
  letter-spacing: 0.2px;
  font-size: 14px;
  opacity: 0.95;
}

.counter-body{
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: clamp(14px, 3vw, 20px);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.18);
}

.count{
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0,0,0,0.35);
}

.count-label{
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--muted);
  opacity: 0.95;
}

.main{
  padding: 20px 0 64px;
}

.form-heading{
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 8px 0 16px;
}

.form-embed {
  width: min(700px, 95%);   /* narrower, max 700px wide */
  margin: 0 auto;           /* center it */
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  /* Desktop height */
  height: 900px;
  max-height: 100vh;
}

.form-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

/* On mobile: expand naturally */
@media (max-width: 768px) {
  .form-embed {
    width: 100%;       /* take full width on small screens */
    height: auto;
    max-height: none;
    overflow: visible;
    border-radius: 26px;

  }
  .form-embed iframe {
    min-height: 1200px;
    height: auto;
    border-radius: 16px;

  }
}


.site-footer{
  padding: 28px 0 40px;
  color: #cfd8e6;
  text-align: center;
}

/* Small screens */
@media (max-width: 520px){
  .subtitle{ text-align: left; }
  .counter-card{ padding: 16px; }
  .counter-body{ padding: 14px; }
}

/* Optional: if you want a subtle top-to-bottom overlay for readability */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,6,12,0.45), rgba(2,6,12,0.55));
  z-index: -1;
}


.refresh-btn {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease-in-out;
}

.refresh-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.03);
}

.refresh-btn:active {
  transform: scale(0.97);
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .refresh-btn {
    background: rgba(0, 123, 255, 0.6); /* bluish */
    border-color: rgba(0, 123, 255, 0.8);
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .refresh-btn {
    background: rgba(40, 167, 69, 0.6); /* greenish */
    border-color: rgba(40, 167, 69, 0.8);
  }
}

