* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0b0d10;
  --panel: #10151a;
  --panel-alt: #0d1116;
  --line: rgba(94, 124, 150, 0.16);
  --line-strong: rgba(94, 124, 150, 0.30);
  --accent: #7e9bb4;
  --accent-soft: rgba(126, 155, 180, 0.10);
  --text: #d9e3ec;
  --muted: #94a3af;
  --dim: #647887;
  --shadow: rgba(0, 0, 0, 0.34);
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(126, 155, 180, 0.07), transparent 34rem),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  line-height: 1.5;
}

.topbar {
  background: rgba(10, 13, 17, 0.96);
  border-bottom: 1px solid var(--line-strong);
}

.topbar-inner,
.page-shell {
  max-width: 1160px;
  margin: 0 auto;
}

.topbar-inner {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0.94) contrast(1.05);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a,
.back-link {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.48rem 0.7rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}

.topnav a:hover,
.back-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.page-shell {
  padding: 2rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: 1.25rem;
  align-items: end;
  margin-bottom: 1rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

h1 {
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  font-weight: 650;
}

.subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
}

.portal-note {
  color: var(--muted);
  background: rgba(14, 18, 24, 0.93);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.panel {
  background: rgba(12, 16, 21, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
}

.panel h2 {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

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

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(12, 16, 21, 0.97);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 18px 50px var(--shadow);
}

.feature-panel h2 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.feature-panel p {
  color: var(--muted);
  font-size: 0.94rem;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.flyer-preview {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.resource-card,
.info-card,
.form-card {
  background: rgba(12, 16, 21, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1rem;
}

.resource-card:hover,
.info-card:hover {
  background: rgba(126, 155, 180, 0.05);
}

.resource-card h2,
.info-card h2,
.form-card h2 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.resource-card p,
.info-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.action-link,
.doc-item,
.submit-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.75rem;
  color: var(--text);
  background: rgba(126, 155, 180, 0.04);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 650;
  text-align: center;
}

.action-link::before,
.doc-item::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.45rem;
  border: 1px solid currentColor;
  opacity: 0.55;
  flex: 0 0 auto;
}

.action-link:hover,
.doc-item:hover,
.submit-btn:hover {
  color: #edf4fa;
  background: var(--accent-soft);
  border-color: var(--accent);
}

.doc-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.info-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.company-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.company-logo-box {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem;
  flex: 0 0 auto;
}

.company-logo-box img {
  max-width: 100%;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

form {
  display: grid;
  gap: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(15, 18, 15, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  padding: 0.72rem 0.75rem;
  font: inherit;
}

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

.radio-group {
  display: grid;
  gap: 0.45rem;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.radio-item input {
  width: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(126, 155, 180, 0.36);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero,
  .resource-grid,
  .info-stack,
  .doc-list,
  .feature-panel,
  .attachment-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .page-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
