:root {
  --navy: #071f49;
  --ink: #0b1730;
  --muted: #586273;
  --line: #d7dde7;
  --wash: #f3f6fa;
  --white: #ffffff;
  --red: #8f2634;
  --blue: #1c74d8;
  --green: #23845a;
  --shadow: 0 18px 45px rgba(7, 31, 73, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f6f8fb 0%, #edf1f7 100%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-bottom: 42px;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 150px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 4px;
}

.brand strong {
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-page,
.form-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 62px 0;
}

.hero-card,
.form-intro {
  margin-bottom: 34px;
}

.hero-card h1,
.form-intro h1,
.admin-header h1,
.login-card h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.form-intro p:not(.eyebrow),
.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

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

.form-tile {
  display: grid;
  gap: 12px;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.form-tile span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-tile strong {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.form-tile small {
  align-self: end;
  color: var(--muted);
}

.form-panel {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.public-form,
.login-card,
.filters {
  display: grid;
  gap: 18px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d2df;
  border-radius: 8px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--navy);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(143, 38, 52, 0.18);
  border-color: var(--red);
}

button,
.export-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  background: linear-gradient(180deg, #1f7dde 0%, #1468c0 100%);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(28, 116, 216, 0.22);
}

button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  box-shadow: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 850;
}

.form-status.success {
  color: var(--green);
}

.form-status.error,
.alert {
  color: var(--red);
}

.embed-body {
  background: transparent;
}

.embed-shell {
  padding: 0;
}

.embed-shell .form-intro {
  display: none;
}

.embed-shell .form-panel {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-body {
  background: #f6f8fb;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card img {
  width: 180px;
  height: 54px;
  object-fit: contain;
}

.login-card h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.admin-shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.filters {
  grid-template-columns: 1fr 1fr 1.4fr auto auto;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.submission-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.submission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(7, 31, 73, 0.08);
}

.submission-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.submission-top h2 {
  margin: 8px 0 4px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.submission-top p {
  margin: 0;
  color: var(--muted);
}

.submission-top form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf1ff;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill.contacted {
  background: #e7f5ee;
  color: var(--green);
}

.status-pill.reviewed {
  background: #fff2df;
  color: #986019;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

dl div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: var(--navy);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 32px;
  color: var(--muted);
  background: var(--white);
}

@media (max-width: 860px) {
  .form-list,
  .filters,
  dl {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .submission-top,
  .submission-top form {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-page,
  .form-shell,
  .admin-shell {
    width: min(100% - 28px, 1120px);
    padding: 30px 0;
  }

  .brand {
    gap: 12px;
    margin-bottom: 28px;
  }

  .brand img {
    width: 110px;
    height: 34px;
  }
}
