:root {
  color-scheme: dark;
  --bg: #090e1b;
  --text: #f5f7ff;
  --muted: #96a8c7;
  --accent: #97b6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 40%,
      #17264a 0%, transparent 65%),
    var(--bg);
}

header {
  height: 76px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #293e71;
  color: #b5cbff;
  font-size: 26px;
}

.header-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 2px;
}

main {
  flex: 1;
  width: min(780px, 92%);
  margin: auto;
  padding: 70px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero-icon {
  color: var(--accent);
  font-size: 64px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(27px, 5vw, 42px);
  letter-spacing: -1px;
  margin: 0 0 13px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#sj-form {
  width: 100%;
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 18px;
  background: #18233b;
  border: 1px solid #405174;
  border-radius: 16px;
}

#sj-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #97b6ff15;
}

.search-icon {
  color: var(--muted);
  font-size: 27px;
  margin-right: 12px;
}

#sj-address {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font: inherit;
  font-size: 14px;
}

#sj-address::placeholder { color: #94a4bf; }

.go-button {
  border: 0;
  background: #35548f;
  color: white;
  width: 42px;
  height: 40px;
  border-radius: 11px;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
}

.go-button:hover { background: #496cb1; }

.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-links button {
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #203052;
  color: #e1eaff;
  padding: 12px 17px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.quick-links button:hover {
  background: #35558e;
  transform: translateY(-2px);
}

.errors {
  width: 100%;
  color: #ff8585;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#sj-error-code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  border-top: 1px solid #ffffff0d;
  padding: 24px 5%;
  color: #7e91b2;
  font-size: 12px;
}

footer a { color: #a6bfff; }

#sj-frame {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  z-index: 100;
}

@media (max-width: 600px) {
  header { padding: 0 20px; height: 65px; }
  .header-label { display: none; }
  main { padding: 45px 0; }
  .hero { margin-bottom: 28px; }
  .hero-icon { font-size: 50px; }
  .quick-links { gap: 8px; }
  .quick-links button { padding: 11px 13px; }
  footer { justify-content: center; text-align: center; }
}
