@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #071226;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --primary: #2f6df6;
  --primary-dark: #1f4ed8;
  --secondary: #22d3ee;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --success: #0f766e;
  --error: #b42318;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.16);
}

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

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    radial-gradient(circle at 82% 0%, rgba(34, 211, 238, 0.16), transparent 25%),
    linear-gradient(180deg, #071226 0, #071226 310px, var(--surface-soft) 310px);
}

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background: rgba(7, 18, 38, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: rgba(47, 109, 246, 0.24);
}

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

.page-heading,
.dashboard-hero {
  color: #ffffff;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
  font-weight: 800;
}

.page-heading h1,
.dashboard-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.page-heading p,
.dashboard-hero p {
  max-width: 650px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
}

.form-card {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.form-header h2 {
  font-size: 28px;
  line-height: 1.15;
}

.form-header p {
  color: var(--muted);
}

.form-header a {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

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

.input-group label {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-group textarea {
  resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.14);
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.location-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #b8c7e3;
  border-radius: 14px;
  color: var(--primary-dark);
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(47, 109, 246, 0.16);
}

.map-panel {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8fafc;
}

.map-canvas {
  width: 100%;
  min-height: 320px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 109, 246, 0.12), rgba(34, 211, 238, 0.12)),
    #eaf1ff;
}

.map-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--primary-dark);
  background: #eaf1ff;
  font-size: 14px;
  font-weight: 700;
}

.map-status.success {
  color: var(--success);
  background: #ccfbf1;
}

.map-status.error {
  color: var(--error);
  background: #fff1f0;
}

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

.full-width {
  grid-column: 1 / -1;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #65a8ff);
  box-shadow: 0 18px 40px rgba(47, 109, 246, 0.32);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(47, 109, 246, 0.4);
}

.dashboard-cta {
  width: auto;
  padding: 0 24px;
}

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
}

.form-message.show {
  display: block;
}

.form-message.success {
  color: var(--success);
  background: #ccfbf1;
}

.form-message.error {
  color: var(--error);
  background: #fff1f0;
}

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

.dashboard-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.dashboard-grid i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.dashboard-grid h2 {
  margin-bottom: 8px;
  font-size: 21px;
}

.dashboard-grid p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .form-grid,
  .coordinate-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .form-header {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, 1120px);
  }

  .form-card {
    padding: 22px;
  }
}
