/* =========================================================
   SignaNatura Observation Service
   Global navigation, observation form and public map
   ========================================================= */


/* =========================================================
   TOP NAVIGATION
   ========================================================= */

body > header {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #154c3d;
}

.topnav {
  width: calc(100% - 40px);
  max-width: 900px;
  min-height: 74px;

  margin: 0 auto;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  min-width: 0;

  color: #ffffff !important;
  text-decoration: none !important;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.brand:visited,
.brand:hover,
.brand:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.brand-mark {
  width: 44px !important;
  height: 44px !important;

  min-width: 44px !important;
  max-width: 44px !important;

  min-height: 44px !important;
  max-height: 44px !important;

  flex: 0 0 44px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;

  border-radius: 8px;
  background: #087348;
}

.brand-mark img {
  display: block !important;

  width: 31px !important;
  height: 31px !important;

  min-width: 31px !important;
  max-width: 31px !important;

  min-height: 31px !important;
  max-height: 31px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;

  filter: brightness(0) invert(1);
}

.brand-text {
  display: block;
  white-space: nowrap;
  color: #ffffff;
}


/* ---------- Navigation links ---------- */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 18px;

  white-space: nowrap;
}

.nav-links a,
.nav-links a:visited {
  color: #ffffff !important;
  text-decoration: none !important;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.nav-links a:hover {
  color: #dcebe5 !important;
  text-decoration: none !important;
}


/* =========================================================
   OBSERVATION FORM
   Scoped only to .content.narrow
   ========================================================= */

.content.narrow {
  width: calc(100% - 40px);
  max-width: 680px;

  margin: 0 auto;
  padding: 28px 0 55px;

  color: #222b27;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 14px;
  line-height: 1.55;
}

.content.narrow *,
.content.narrow *::before,
.content.narrow *::after {
  box-sizing: border-box;
}


/* ---------- Intro ---------- */

.content.narrow .observation-intro {
  margin-bottom: 22px;
}

.content.narrow .observation-intro h1 {
  margin: 0 0 8px;

  color: #202925;

  font-size: 28px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.content.narrow .observation-intro > p {
  margin: 0;

  color: #3f4944;

  font-size: 14px;
  line-height: 1.55;
}

.content.narrow .required-note {
  margin-top: 14px !important;

  color: #6d7772 !important;

  font-size: 12px !important;
}


/* ---------- Form ---------- */

.content.narrow .form {
  width: 100%;
  margin: 0;
}


/* ---------- Form cards ---------- */

.content.narrow .form-section {
  width: 100%;

  margin: 0 0 20px;
  padding: 20px;

  border: 1px solid #d7dfda;
  border-radius: 8px;

  background: #ffffff;
}

.content.narrow fieldset.form-section {
  min-width: 0;
}

.content.narrow .form-section h2,
.content.narrow .form-section legend {
  margin: 0 0 16px;
  padding: 0 0 9px;

  color: #174c3d;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.25;
  font-weight: 750;
}

.content.narrow .form-section h2 {
  width: 100%;
  border-bottom: 1px solid #dce3df;
}

.content.narrow fieldset.form-section legend {
  width: 100%;
}


/* ---------- Labels ---------- */

.content.narrow .form-section > label:not(.check) {
  display: block;

  margin: 18px 0 0;

  color: #29332e;

  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.content.narrow .form-section > h2 + label {
  margin-top: 0;
}

.content.narrow .required-mark {
  color: #b13a35;
}


/* ---------- Helper text ---------- */

.content.narrow .field-help,
.content.narrow .section-help {
  margin: 5px 0 10px;

  color: #68736e;

  font-size: 12px;
  line-height: 1.5;
}

.content.narrow .section-help {
  margin-top: -7px;
  margin-bottom: 18px;
}


/* ---------- Inputs ---------- */

.content.narrow input[type="text"],
.content.narrow input[type="email"],
.content.narrow input[type="date"],
.content.narrow select,
.content.narrow textarea {
  display: block;

  width: 100%;
  max-width: 100%;

  margin: 0;
  padding: 10px 12px;

  border: 1px solid #aebbb5;
  border-radius: 5px;

  background: #ffffff;
  color: #202925;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 14px;
  line-height: 1.4;

  box-shadow: none;

  -webkit-appearance: none;
  appearance: none;
}

.content.narrow input[type="text"],
.content.narrow input[type="email"],
.content.narrow input[type="date"],
.content.narrow select {
  min-height: 43px;
}

.content.narrow textarea {
  min-height: 115px;
  resize: vertical;
}

.content.narrow input:focus,
.content.narrow select:focus,
.content.narrow textarea:focus {
  border-color: #347863;

  outline: 2px solid rgba(23, 109, 82, 0.13);
  outline-offset: 1px;
}


/* Restore practical native date control */

.content.narrow input[type="date"] {
  -webkit-appearance: auto;
  appearance: auto;
}


/* ---------- Select ---------- */

.content.narrow select {
  -webkit-appearance: auto;
  appearance: auto;
}


/* ---------- Checkbox rows ---------- */

.content.narrow .check {
  display: flex;
  align-items: flex-start;
  gap: 9px;

  margin: 17px 0 0;

  color: #34403a;

  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;

  cursor: pointer;
}

.content.narrow .check input[type="checkbox"] {
  width: 17px;
  height: 17px;

  min-width: 17px;

  margin: 2px 0 0;

  accent-color: #176d52;
}

.content.narrow .sensitive-check {
  margin-top: 20px;
}


/* ---------- Location buttons ---------- */

.content.narrow .location-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 16px;
}

.content.narrow .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;

  padding: 9px 16px;

  border: 1px solid #176d52;
  border-radius: 6px;

  background: #176d52;
  color: #ffffff;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;

  cursor: pointer;

  -webkit-appearance: none;
  appearance: none;
}

.content.narrow .button:hover {
  background: #125d46;
}

.content.narrow .secondary-button {
  background: #ffffff;
  color: #176d52;
}

.content.narrow .secondary-button:hover {
  background: #f2f7f4;
}


/* ---------- Location map ---------- */

.content.narrow #map-picker {
  margin-top: 16px;
}

.content.narrow #location-map {
  width: 100%;
  height: 350px;

  border: 1px solid #d5ddd9;
  border-radius: 7px;

  overflow: hidden;
}


/* ---------- Status ---------- */

.content.narrow .status {
  min-height: 0;

  margin: 9px 0 0;

  color: #53615b;

  font-size: 12px;
}


/* ---------- Privacy ---------- */

.content.narrow .privacy {
  margin: 15px 0 0;
  padding: 12px 14px;

  border: 0;
  border-radius: 6px;

  background: #edf5f1;
  color: #52635c;

  font-size: 12px;
  line-height: 1.5;
}


/* ---------- Errors and notices ---------- */

.content.narrow .field-error {
  margin: 6px 0 0;

  color: #a92f2a;

  font-size: 12px;
  font-weight: 650;
}

.content.narrow .error,
.content.narrow .notice {
  margin: 0 0 18px;
  padding: 12px 14px;

  border-radius: 6px;

  font-size: 13px;
  line-height: 1.5;
}

.content.narrow .error {
  border: 1px solid #e7b7b4;

  background: #fff3f2;
  color: #872d29;
}

.content.narrow .notice {
  border: 1px solid #bddccc;

  background: #edf7f1;
  color: #225b47;
}


/* ---------- Submit ---------- */

.content.narrow .submit-section {
  margin-top: 4px;
  padding: 18px 20px;

  border: 1px solid #d7dfda;
  border-radius: 8px;

  background: #f5f8f6;
}

.content.narrow .submit-help {
  margin: 0 0 13px;

  color: #55615c;

  font-size: 12px;
  line-height: 1.5;
}

.content.narrow .submit-section .button {
  min-width: 150px;
}


/* =========================================================
   PUBLIC MAP
   ========================================================= */

#public-map {
  height: 460px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.signal-marker-wrap {
  background: transparent;
  border: 0;
}

.signal-marker {
  position: relative;
  width: 26px;
  height: 26px;
}

.signal-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  margin-top: -6px;
  background: #0f7a5a;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(15, 122, 90, 0.18);
  z-index: 3;
}

.signal-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(15, 122, 90, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.signal-ring.ring-1 {
  width: 20px;
  height: 20px;
}

.signal-ring.ring-2 {
  width: 30px;
  height: 30px;
  border-color: rgba(15, 122, 90, 0.25);
}

.map-popup {
  min-width: 180px;
  font-size: 14px;
  line-height: 1.45;
}


/* =========================================================
   RESPONSIVE NAVIGATION
   ========================================================= */

@media (max-width: 720px) {

  .topnav {
    width: calc(100% - 28px);
    min-height: 66px;

    gap: 14px;
  }

  .brand-mark {
    width: 40px !important;
    height: 40px !important;

    min-width: 40px !important;
    max-width: 40px !important;

    min-height: 40px !important;
    max-height: 40px !important;

    flex: 0 0 40px !important;
  }

  .brand-mark img {
    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    max-width: 28px !important;

    min-height: 28px !important;
    max-height: 28px !important;
  }

  .brand-text {
    font-size: 13px;
  }

  .nav-links {
    gap: 11px;
  }

  .nav-links a {
    font-size: 12px;
  }
}


/* =========================================================
   RESPONSIVE FORM
   ========================================================= */

@media (max-width: 600px) {

  .topnav {
    align-items: flex-start;
    flex-direction: column;

    padding-top: 10px;
    padding-bottom: 11px;
  }

  .nav-links {
    width: 100%;

    justify-content: flex-start;

    overflow-x: auto;
  }

  .content.narrow {
    width: calc(100% - 28px);

    padding-top: 22px;
  }

  .content.narrow .observation-intro h1 {
    font-size: 25px;
  }

  .content.narrow .form-section {
    padding: 16px;
  }

  .content.narrow .location-buttons {
    flex-direction: column;
  }

  .content.narrow .location-buttons .button {
    width: 100%;
  }

  .content.narrow .submit-section {
    padding: 16px;
  }

  .content.narrow .submit-section .button {
    width: 100%;
  }
}