:root {
  --lf-blue: #0675a9;
  --lf-blue-dark: #006a9f;
  --lf-coral: #c9473f;
  --lf-red: #c92f35;
  --lf-ink: #183447;
  --lf-muted: #587080;
  --lf-cream: #f8f3eb;
  --lf-paper: #fffdfa;
  --lf-soft-blue: #e9f7fc;
  --lf-line: rgba(24, 52, 71, 0.14);
  --lf-shadow: 0 18px 46px rgba(24, 52, 71, 0.12);
}

html {
  scroll-behavior: smooth;
  background: var(--lf-cream);
}

body.lf-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--lf-ink);
  background: var(--lf-cream);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

body.lf-page::selection {
  color: #fff;
  background: var(--lf-blue);
}

.lf-page :focus-visible {
  outline: 3px solid rgba(0, 139, 207, 0.46);
  outline-offset: 3px;
}

.lf-topbar {
  position: relative;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(24px, 6vw, 112px);
  background: rgba(255, 253, 250, 0.97);
  box-shadow: 0 1px 0 var(--lf-line);
}

.lf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lf-blue);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.lf-brand:hover { color: var(--lf-blue-dark); }

.lf-brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--lf-blue);
  border-radius: 12px 12px 12px 4px;
}

.lf-tagline {
  margin: 0;
  color: var(--lf-muted);
  font-size: 0.88rem;
}

.lf-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lf-top-actions > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--lf-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.lf-top-actions > a:hover {
  color: var(--lf-blue-dark);
  background: var(--lf-soft-blue);
}

.lf-language-slot { margin-left: 4px; }

.lf-language-slot .lfi-lang-switch {
  margin: 0;
  flex-wrap: nowrap;
  gap: 4px;
}

.lf-language-slot .lfi-lang-switch a {
  min-width: 40px;
  min-height: 40px;
  padding: 0 8px;
  border-radius: 10px;
  border-color: transparent;
  color: var(--lf-muted);
  background: transparent;
  font-size: 0.78rem;
}

.lf-language-slot .lfi-lang-switch a:hover { background: var(--lf-soft-blue); }

.lf-language-slot .lfi-lang-switch a.is-active {
  color: #fff;
  border-color: var(--lf-blue-dark);
  background: var(--lf-blue-dark);
}

.lf-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.lf-hero picture,
.lf-hero-image,
.lf-hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lf-hero picture { z-index: -2; }

.lf-hero-image {
  object-fit: cover;
  object-position: center;
}

.lf-hero-scrim {
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 35, 50, 0.79) 0%, rgba(12, 35, 50, 0.66) 36%, rgba(12, 35, 50, 0.08) 67%);
}

.lf-hero-content {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: 58px 0 62px;
}

.lf-hero-copy { max-width: 610px; }

.lf-hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lf-hero p {
  max-width: 52ch;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.lf-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.lf-status-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  color: #fff;
  background: rgba(16, 46, 69, 0.56);
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.lf-status-action:hover,
.lf-status-action.is-active {
  color: #fff;
  border-color: var(--lf-coral);
  background: var(--lf-coral);
}

.lf-status-action:active,
.lf-submit:active,
.lf-reset:active { transform: translateY(1px); }

.lf-main {
  width: min(100% - 40px, 1320px);
  margin: 0 auto;
  padding: 50px 0 70px;
}

.lf-intro {
  max-width: 760px;
  margin: 0 0 30px;
}

.lf-intro h2 {
  margin: 0;
  color: var(--lf-ink);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.lf-intro .text-muted {
  margin: 10px 0 0;
  color: var(--lf-muted) !important;
  line-height: 1.65;
}

.lf-intro .text-muted:first-of-type { font-size: 1.08rem; }

.lf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

.lf-form-shell {
  padding: clamp(22px, 4vw, 44px);
  border-radius: 16px;
  background: var(--lf-paper);
  box-shadow: var(--lf-shadow);
}

.lf-form-section + .lf-form-section {
  margin-top: 42px;
  padding-top: 38px;
  border-top: 1px solid var(--lf-line);
}

.lf-section-heading {
  margin: 0 0 20px;
  color: var(--lf-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lf-page .form-label {
  margin-bottom: 7px;
  color: var(--lf-ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.lf-page .form-control,
.lf-page .form-select {
  min-height: 48px;
  border: 1px solid rgba(24, 52, 71, 0.22);
  border-radius: 10px;
  color: var(--lf-ink);
  background-color: #fff;
  box-shadow: none;
}

.lf-page textarea.form-control { min-height: 126px; }

.lf-page .form-control::placeholder { color: #587080; }

.lf-page .form-control:focus,
.lf-page .form-select:focus {
  border-color: var(--lf-blue);
  box-shadow: 0 0 0 4px rgba(0, 139, 207, 0.14);
}

.required::after { content: " *"; color: var(--lf-red); }

#lf-map {
  height: 330px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--lf-soft-blue);
}

.lf-geo-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.lf-page #btn-use-geo {
  min-width: 48px;
  min-height: 48px;
  color: var(--lf-blue-dark);
  border-color: rgba(0, 139, 207, 0.45);
  white-space: nowrap;
}

.lf-page #btn-use-geo:hover {
  color: #fff;
  background: var(--lf-blue);
}

.lf-upload {
  padding: 17px;
  border-radius: 12px;
  background: var(--lf-soft-blue);
}

.lf-page .form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.12rem;
  border-color: rgba(24, 52, 71, 0.42);
}

.lf-page .form-check-input:checked {
  border-color: var(--lf-blue);
  background-color: var(--lf-blue);
}

.lf-page .form-check-label {
  padding-left: 4px;
  color: var(--lf-muted);
  line-height: 1.55;
}

.lf-page .form-check-label a { color: var(--lf-blue-dark); font-weight: 750; }

.lf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.lf-submit,
.lf-reset {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.lf-submit {
  border-color: var(--lf-blue-dark);
  color: #fff;
  background: var(--lf-blue-dark);
}

.lf-submit:hover,
.lf-submit:focus { border-color: var(--lf-blue-dark); color: #fff; background: var(--lf-blue-dark); }

.lf-reset { color: var(--lf-ink); border-color: var(--lf-line); background: transparent; }
.lf-reset:hover { color: var(--lf-ink); border-color: rgba(24, 52, 71, 0.3); background: #f3f8fa; }

.lf-field-error {
  display: none;
  width: 100%;
  margin-top: 0.35rem;
  color: var(--lf-red);
  font-size: 0.875rem;
}

.is-invalid ~ .lf-field-error { display: block; }

.lf-page .alert { border: 0; border-radius: 12px; }

.lf-guide {
  position: sticky;
  top: 22px;
  padding: 25px;
  border-radius: 16px;
  color: var(--lf-ink);
  background: #dff3fa;
}

.lf-guide h3 {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 800;
}

.lf-guide p {
  margin: 10px 0 0;
  color: var(--lf-muted);
  line-height: 1.55;
}

.lf-guide ul {
  display: grid;
  gap: 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.lf-guide li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--lf-ink);
  font-size: 0.93rem;
  line-height: 1.45;
}

.lf-guide li i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--lf-blue-dark);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 9px;
}

@media (max-width: 1050px) {
  .lf-tagline,
  .lf-top-actions > a { display: none; }
  .lf-layout { grid-template-columns: 1fr; }
  .lf-guide { position: static; order: -1; }
  .lf-guide ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .lf-topbar { min-height: 60px; padding: 0 14px; }
  .lf-brand { font-size: 1.35rem; }
  .lf-brand-mark { width: 31px; height: 31px; border-radius: 10px 10px 10px 4px; }
  .lf-language-slot { margin-left: auto; max-width: 205px; overflow-x: auto; scrollbar-width: none; }
  .lf-language-slot::-webkit-scrollbar { display: none; }
  .lf-language-slot .lfi-lang-switch a { min-width: 38px; min-height: 38px; }
  .lf-hero { min-height: 430px; align-items: end; }
  .lf-hero-image { object-position: 65% center; }
  .lf-hero-scrim { background: linear-gradient(180deg, rgba(12, 35, 50, 0.1) 18%, rgba(12, 35, 50, 0.86) 76%); }
  .lf-hero-content { width: min(100% - 28px, 1320px); padding: 138px 0 32px; }
  .lf-hero h1 { max-width: 12ch; font-size: clamp(2.25rem, 11vw, 3.3rem); }
  .lf-hero p { max-width: 36ch; font-size: 1rem; }
  .lf-status-action { flex: 1 1 145px; padding: 0 14px; }
  .lf-main { width: min(100% - 24px, 1320px); padding: 34px 0 50px; }
  .lf-form-shell { padding: 22px 16px; }
  .lf-form-section + .lf-form-section { margin-top: 34px; padding-top: 30px; }
  .lf-geo-row { grid-template-columns: 1fr; }
  .lf-guide ul { grid-template-columns: 1fr; }
  #lf-map { height: 290px; }
  .lf-actions { display: grid; grid-template-columns: 1fr; }
  .lf-submit, .lf-reset { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lf-page *, .lf-page *::before, .lf-page *::after { transition: none !important; }
}
