/* ------------ Reset & base ------------ */
* { box-sizing:border-box; margin:0; padding:0; }
html { font-size:22px; }   /* slightly larger for clarity */
body {
  font-family: system-ui, Arial, sans-serif;
  display: flex; justify-content: center; align-items: flex-start;
  min-height: 100vh; background: #f5f6fa; color: #111;
  padding: 2rem;
}

/* ------------ Card panel ------------ */
.panel {
  width: 100%;
  max-width: 600px;            /* wider for desktop clarity */
  background: #fff;
  border-radius: 18px;
  padding: 3rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.09);
  text-align: center;
}
.panel.hidden { display: none; }

.brand {
  font-size: 2.6rem; font-weight: 700;
  color: #0066cc; margin-bottom: 1rem;
}
.lead {
  font-size: 1.3rem; margin-bottom: 1.8rem;
}

label {
  display: block; text-align: left;
  font-weight: 600; margin: 1.6rem 0 .75rem;
  font-size: 1.1rem;
}

input, select {
  width: 100%; font-size: 1.2rem;
  padding: 1rem; border: 1px solid #bbb;
  border-radius: 10px;
}
input:focus, select:focus { outline: 3px solid #4d9cff; }

button {
  display: block; width: 100%; margin-top: 2rem;
  padding: 1.2rem; font-size: 1.3rem;
  border: none; border-radius: 10px; cursor: pointer;
  background: #0066cc; color: #fff; font-weight: 600;
  transition: filter .15s;
}
button:hover         { filter: brightness(1.05); }
button.secondary     { background: #555; }
button:disabled      { opacity: .55; cursor: not-allowed; }

.success {
  font-size: 1.8rem; font-weight: 700;
  color: #157e2f; margin-bottom: 1.3rem;
}
.error {
  font-size: 1.5rem; font-weight: 700;
  color: #b00020; margin-bottom: 1rem;
}

.small, small {
  font-size: 1.1rem; color: #444;
}

/* ------------ Loading spinner ------------ */
.spinner {
  margin: 0 auto 1.5rem;
  width: 50px; height: 50px;
  border: 6px solid #e3e3e3;
  border-top: 6px solid #1d7af3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ------------ Loading text ------------ */
.loading {
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ------------ Download link ------------ */
a.dl {
  display: flex; align-items: center;
  justify-content: center; gap: .7rem;
  margin-top: 1.7rem; padding: 1.1rem;
  font-size: 1.18rem; background: #0b8d3b;
  color: #fff; font-weight: 600; border-radius: 10px;
  text-decoration: none;
}
a.dl:hover { filter: brightness(1.1); }

/* ------------ Mobile tweaks ------------ */
@media(max-width: 600px) {
  html { font-size: 20px; }
  .panel {
    max-width: 98vw;
    padding: 2rem 1rem;
    margin-top: .8rem;
  }
  .brand { font-size: 2rem; }
}

/* ——— Autocomplete dropdown ——— */
#suggest-box { position: relative; }
#suggestions {
  position: absolute; left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid #ccc; border-top: none;
  max-height: 200px; overflow-y: auto; display: none;
  font-size: 1rem;
}
#suggestions div {
  padding: 10px 12px; cursor: pointer;
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
#suggestions div:hover { background: #f0f0f0; }
