﻿:root {
  color-scheme: only light;
  --bg: #f3f0ea;
  --bg-2: #ebe4da;
  --card: #fffaf4;
  --ink: #1f1c18;
  --muted: #5c554b;
  --accent: #2f6f6d;
  --accent-2: #d07c2c;
  --danger: #b42318;
  --border: #e2d8cc;
  --shadow: 0 20px 60px rgba(35, 25, 15, 0.18);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #f9f6f1, var(--bg))
      fixed,
    linear-gradient(120deg, var(--bg-2), #f5efe6);
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(208, 124, 44, 0.18), transparent);
  top: -120px;
  right: -120px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -120px;
  top: auto;
  background: radial-gradient(circle, rgba(47, 111, 109, 0.2), transparent);
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  position: relative;
  z-index: 1;
}

.card {
  width: min(980px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px clamp(20px, 4vw, 46px) 46px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 216, 204, 0.7);
}

.header {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
}

.subhead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label,
.field .label {
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
  font-size: 0.98rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 109, 0.15);
}

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

.radio-group,
.checkbox-grid {
  display: grid;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--muted);
}

.radio-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.checkline input {
  accent-color: var(--accent);
}

.other-issue {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pickup-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pickup-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1em;
}

.warning {
  margin: 0;
  color: var(--danger);
  font-size: 0.9rem;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: rgba(180, 35, 24, 0.6);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

button {
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
  font-size: 1rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 20px rgba(47, 111, 109, 0.2);
}

button:hover {
  transform: translateY(-1px);
}

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(47, 111, 109, 0.4);
  box-shadow: none;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results {
  background: #fff;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px dashed rgba(47, 111, 109, 0.4);
  display: grid;
  gap: 8px;
}

.results h2 {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Grande", sans-serif;
}

.results ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.resale {
  margin: 0;
  color: var(--muted);
}

.expiry {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.span-2 {
  grid-column: 1 / -1;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
}

body.loaded .reveal {
  animation: float-in 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes float-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 880px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .radio-group,
  .checkbox-grid,
  .pickup-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }
}
