:root {
  --ink: #1b2731;
  --muted: #5f6f7f;
  --cream: #fff9ef;
  --paper: #fffdf8;
  --gold: #d9a441;
  --forest: #2f5d50;
  --forest-dark: #23463c;
  --line: rgba(27, 39, 49, 0.12);
  --shadow: 0 20px 45px rgba(34, 56, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(217, 164, 65, 0.22), transparent 30%),
    linear-gradient(180deg, #f5efe0 0%, #f7f2e8 30%, #eef3ea 100%);
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.hero {
  padding: 4.5rem 1.5rem;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(27, 39, 49, 0.92), rgba(47, 93, 80, 0.92)),
    #203040;
  color: white;
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1,
.form-section h2,
.privacy-section h2,
.admin-panel h2,
.info-card h2 {
  margin: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  max-width: 9ch;
}

.hero-copy,
.section-copy,
.info-card p,
.privacy-section p,
.request-card p,
label,
input,
textarea,
button {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.hero-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.hero-link {
  margin-top: 1.5rem;
  background: var(--gold);
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-actions .hero-link {
  margin-top: 0;
}

.hero-link-secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-link:hover,
button:hover {
  transform: translateY(-1px);
}

main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.info-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.form-section,
.privacy-section,
.admin-panel {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.form-section h2,
.privacy-section h2,
.admin-panel h2,
.info-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 0.8rem;
}

.pickup-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--ink);
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(27, 39, 49, 0.16);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(217, 164, 65, 0.28);
  border-color: var(--gold);
}

button {
  width: fit-content;
  background: var(--forest);
  color: white;
}

.secondary-button {
  background: transparent;
  color: var(--forest-dark);
  border: 1px solid rgba(47, 93, 80, 0.3);
}

.danger-button {
  background: #b94132;
  color: white;
}

.danger-button:hover {
  background: #a23426;
}

.split-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-fields:has(input[type="email"]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--forest-dark);
  font-weight: 700;
}

.field-error {
  margin: -0.35rem 0 0;
  color: #b94132;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.notice-banner {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(47, 93, 80, 0.2);
  border-radius: 18px;
  background: rgba(47, 93, 80, 0.1);
  color: var(--forest-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 700;
}

.hidden-block {
  display: none;
}

.admin-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.request-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.pickup-map {
  width: 100%;
  min-height: 360px;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 93, 80, 0.08), rgba(217, 164, 65, 0.12)),
    #f5efe0;
}

.map-popup {
  min-width: 200px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.5;
}

.map-popup-actions {
  margin-top: 0.75rem;
}

.map-claim-button {
  background: var(--forest);
  color: white;
}

.sort-panel {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px) auto;
  align-items: end;
  margin-top: 1rem;
}

.queue-section + .queue-section {
  margin-top: 1.75rem;
}

.queue-section h2 {
  margin: 0.5rem 0 0;
}

.request-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}

.request-card h3,
.request-card p {
  margin: 0;
}

.request-meta {
  color: var(--muted);
}

.login-layout {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
}

.login-card,
.dashboard-panel {
  max-width: 720px;
  margin: 0 auto;
}

.login-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.auth-toggle {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.hidden-block {
  display: none;
}

@media (max-width: 800px) {
  .info-grid,
  .split-fields,
  .split-fields:has(input[type="email"]),
  .sort-panel {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 1rem, 1100px);
  }

  .hero {
    padding: 3.25rem 1.2rem;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
