body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../img/background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Dark overlay layer */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
}

/* Glass-style blurred card */
.form-wrapper {
  position: relative;
  max-width: 500px;
  margin: 40px auto;
  background: rgba(255,255,255,0.2);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.6s ease;
}

h1 { margin-bottom: 10px; color: #fff; }
.subtitle { margin-bottom: 20px; color: #eee; font-size: 14px; }

/* Inputs + Labels */
.survey-form label {
  display: block;
  text-align: left;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #000; /* captions in black */
}

.survey-form input,
.survey-form select,
.survey-form button {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 14px;
  background: rgba(255,255,255,0.85);
  color: #000;
}

.survey-form input:focus,
.survey-form select:focus {
  border-color: #0078d7;
  outline: none;
  box-shadow: 0 0 5px rgba(0,120,215,0.5);
}

/* Button */
.survey-form button {
  background: #0078d7;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.survey-form button:hover { background: #005fa3; }

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.popup-content {
  background: rgba(255,255,255,0.2);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Navigation buttons */
.nav-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.nav-btn {
  background: #0078d7;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}
.nav-btn:hover { background: #005fa3; }

/* Mobile adjustments */
@media (max-width: 600px) {
  body {
    background-attachment: scroll; /* avoid laggy fixed background on mobile */
  }
  .form-wrapper {
    margin: 15px;
    padding: 20px;
    width: auto;
  }
  h1 { font-size: 20px; }
  .subtitle { font-size: 12px; }
  .survey-form input,
  .survey-form select,
  .survey-form button {
    font-size: 13px;
    padding: 10px;
  }
  .survey-form label {
    font-size: 13px;
  }
}
