:root {
  --ink: #1f1a18;
  --paper: #fefaf4;
  --mint: #d9efe2;
  --salmon: #ffc59f;
  --ocean: #2f6d7a;
  --error: #9f1b1b;
  --ok: #0f6d3f;
  --shadow: 0 22px 50px rgba(26, 19, 14, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, #fff2df 0%, transparent 46%),
    radial-gradient(circle at 80% 90%, #d7e9ff 0%, transparent 42%),
    linear-gradient(135deg, #f4f8f2, #fff9f3 55%, #fff1e7);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.4;
  animation: drift 16s ease-in-out infinite alternate;
}

.bg-shape-a {
  width: 280px;
  height: 280px;
  background: var(--salmon);
  top: -40px;
  right: -30px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  background: var(--mint);
  bottom: -60px;
  left: -60px;
  animation-delay: 1.5s;
}

.shell {
  width: min(720px, 100%);
}

.card {
  backdrop-filter: blur(4px);
  background: rgba(254, 250, 244, 0.92);
  border: 1px solid rgba(47, 109, 122, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2.2rem);
  animation: rise 550ms ease both;
}

.brand {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ocean);
  font-weight: 700;
  margin: 0;
}

h1 {
  margin: 0.45rem 0 0.45rem;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.8rem, 4.5vw, 2.7rem);
  line-height: 1.08;
}

.subtitle {
  margin: 0 0 1.3rem;
  max-width: 50ch;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

input {
  font: inherit;
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(31, 26, 24, 0.22);
  border-radius: 11px;
  background: #fffdfa;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 4px rgba(47, 109, 122, 0.18);
}

input[type="file"] {
  padding: 0.62rem;
  border-style: dashed;
}

.consent-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  margin-top: 0.45rem;
  font-weight: 500;
  line-height: 1.45;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
}

.legal-links {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

button {
  margin-top: 0.35rem;
  border: none;
  background: linear-gradient(120deg, #2f6d7a, #275d68 40%, #1e4953);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.88rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(22, 61, 71, 0.27);
  transition: transform 140ms ease, filter 140ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

#status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-size: 0.96rem;
}

#status.error {
  color: var(--error);
}

#status.success {
  color: var(--ok);
}

#admin-status {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  font-size: 0.96rem;
}

#admin-status.error {
  color: var(--error);
}

#admin-status.success {
  color: var(--ok);
}

.orders-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(31, 26, 24, 0.15);
  border-radius: 12px;
  background: #fff;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th,
.orders-table td {
  border-bottom: 1px solid rgba(31, 26, 24, 0.1);
  padding: 0.6rem 0.7rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.orders-table th {
  background: #f6f2ec;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) translateX(0);
  }
  to {
    transform: translateY(16px) translateX(12px);
  }
}

@media (max-width: 560px) {
  body {
    padding: 1rem 0.85rem;
  }

  .card {
    border-radius: 18px;
    padding: 1rem;
  }

  .subtitle {
    margin-bottom: 1rem;
  }
}
