/* -------------------------------------------------
   Global reset & box-sizing
   ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; }
body { margin:0; min-height:100vh; }

/* -------------------------------------------------
   Layout & background
   ------------------------------------------------- */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-image: url('background.jpg');   /* unchanged */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* -------------------------------------------------
   Form container
   ------------------------------------------------- */
#survey-form {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  padding: 24px;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  margin: 2rem auto;
}

/* -------------------------------------------------
   Fieldsets & legends
   ------------------------------------------------- */
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px 0;
}
legend {
  font-weight: 600;
  font-size: 1.1em;
  padding: 0 4px;
}

/* -------------------------------------------------
   Labels & inputs
   ------------------------------------------------- */
label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
  transition: border .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 80px; }

/* Focus */
input:focus, textarea:focus {
  outline: none;
  border-color: #ff7f50;
  box-shadow: 0 0 0 3px rgba(255,127,80,.3);
}

/* Checkbox line */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 12px 0;
}
.inline { width:auto; transform:scale(1.2); }

/* -------------------------------------------------
   Submit button
   ------------------------------------------------- */
#submit-btn {
  width: 100%;
  background: #ff7f50;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background .2s;
}
#submit-btn:hover { background:#ff5722; }
#submit-btn:disabled {
  background:#999;
  cursor:not-allowed;
  opacity:.6;
}

/* -------------------------------------------------
   Headings & text
   ------------------------------------------------- */
h1, p { text-align:center; text-shadow:0 1px 3px rgba(0,0,0,.6); }
h1 { margin:0 0 .5rem; }
p  { margin:0 0 1.5rem; }

/* -------------------------------------------------
   Character counter
   ------------------------------------------------- */
.char-counter {
  display:block;
  text-align:right;
  font-size:.85rem;
  color:#ddd;
  margin-top:4px;
}

/* -------------------------------------------------
   Responsive tweaks
   ------------------------------------------------- */
@media (max-width:540px) {
  #survey-form { margin:1rem; padding:16px; }
}