/* ===== Winter volunteer signup theme ===== */

:root {
  --snow-bg: #f7fbff;
  --frost-blue: #d8ecf8;
  --accent-blue: #5aa2d9;
  --text-dark: #1b2b3a;
  --text-muted: #6a7b8a;
  --white: #fff;
  --success-bg: #e9fbe9;
  --error-bg: #fdeaea;
  --radius: 14px;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(to bottom, var(--frost-blue), var(--snow-bg));
  min-height: 100vh;
  margin: 0;
  color: var(--text-dark);
  background-attachment: fixed;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.intro {
  color: var(--text-muted);
  font-size: 1rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  transition: transform .15s ease;
}
.card:hover {
  transform: translateY(-2px);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
legend {
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: .5rem;
}

.grid {
  display: grid;
  gap: 0.7rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}
.grid-shifts {
  grid-template-columns: 1.2fr 1fr 1fr;
}
@media (max-width: 640px) {
  .grid-shifts {
    grid-template-columns: 1fr 1fr;
  }
  .grid-shifts > div:nth-child(3n) {
    grid-column: span 2;
  }
}

label.chk {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: .5rem;
  border-radius: var(--radius);
  border: 1px solid #cbd9e2;
  background: #f8fbfd;
  font-size: .95rem;
  box-sizing: border-box;
}
input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(90,162,217,0.2);
}

button, .btn-primary {
  background: var(--accent-blue);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: .7rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
button:hover {
  background: #4993cc;
}
button:active {
  transform: scale(0.98);
}

.muted {
  color: var(--text-muted);
  font-size: .9rem;
}

.success, .error {
  border-radius: var(--radius);
  padding: .8rem;
  margin-top: 1rem;
  font-weight: 500;
}
.success {
  background: var(--success-bg);
  border: 1px solid #b4e5b4;
}
.error {
  background: var(--error-bg);
  border: 1px solid #e2a3a3;
}

footer {
  text-align: center;
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding-bottom: 1rem;
}

/* ❄️ Soft falling snow effect (pure CSS animation) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px;
  background-position: 0 0, 10px 10px;
  animation: snow 20s linear infinite;
  opacity: 0.4;
}

@keyframes snow {
  from { background-position: 0 0, 10px 10px; }
  to { background-position: 0 1000px, 10px 1010px; }
}
