:root {
  color-scheme: dark;
  --navy: #071936;
  --navy-2: #0c2448;
  --navy-3: #123765;
  --gold: #f4bd3a;
  --gold-soft: #ffe08a;
  --ink: #f7fbff;
  --muted: #b8c7d9;
  --line: rgba(255, 255, 255, 0.14);
  --field: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(244, 189, 58, 0.13), transparent 32%),
    linear-gradient(180deg, var(--navy), #030913);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
}

.single-column {
  grid-template-columns: 1fr;
  max-width: 860px;
}

.order-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 25, 54, 0.9);
  box-shadow: 0 22px 70px var(--shadow);
}

.order-panel {
  padding: 28px;
}

.admin-panel {
  align-self: start;
  padding: 24px;
}

.school-header {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.school-logo {
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  background: white;
  padding: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: 1.25rem;
}

.intro,
.admin-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.intro {
  max-width: 620px;
  margin: 12px 0 0;
  font-size: 1.04rem;
}

.yearbook-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.035);
}

legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 700;
}

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

input[type="text"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(244, 189, 58, 0.18);
}

small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.option-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.option-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 2px;
}

.cover-names {
  display: grid;
  gap: 12px;
}

.cover-names p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cover-name-fields {
  display: grid;
  gap: 12px;
}

.cover-name {
  margin-top: 2px;
}

.total-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(244, 189, 58, 0.44);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(244, 189, 58, 0.15), rgba(244, 189, 58, 0.05));
  padding: 18px;
}

.total-card div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.grand-total {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
  font-size: 1.25rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 46px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary-button {
  border: 0;
  background: var(--gold);
  color: #071936;
  padding: 0 20px;
}

.secondary-button {
  border: 1px solid rgba(244, 189, 58, 0.5);
  background: rgba(244, 189, 58, 0.08);
  color: var(--gold-soft);
  padding: 0 16px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 4px;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--gold-soft);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding: 16px 0;
  }

  .order-panel,
  .admin-panel {
    padding: 18px;
  }

  .school-header {
    grid-template-columns: 78px 1fr;
    gap: 14px;
  }

  .school-logo {
    width: 78px;
    height: 78px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.05;
  }
}
