:root {
  --primary: #0B2A4A;
  --accent: #E11B22;
  --success: #16883B;
  --page-bg: #EDF1F4;
  --text: #18202A;
  --muted: #68717C;
  --line: #D7DEE5;
  --card: #FFFFFF;
  --shadow: 0 8px 24px rgba(11,42,74,.10);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { background: var(--page-bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.22;
}
button, input, textarea { font: inherit; }
.site-header {
  height: 54px;
  background: var(--primary);
  color: #fff;
  padding: max(7px, env(safe-area-inset-top)) 14px 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.header-inner {
  max-width: 620px;
  height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo {
  width: 140px;
  max-height: 37px;
  object-fit: contain;
  object-position: center;
}
.page-shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 8px 9px max(8px, env(safe-area-inset-bottom));
}
.compact-panel {
  background: var(--card);
  border: 1px solid rgba(11,42,74,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 11px;
}
.intro-block {
  text-align: center;
  padding: 0 4px 8px;
}
.intro-block h1 {
  margin: 0;
  color: var(--primary);
  font-size: 1.12rem;
  line-height: 1.15;
}
.intro-block p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .75rem;
}
.asset-summary {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FAFBFC;
}
.asset-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg,#f8fafb,#e9edf1);
  border: 1px solid var(--line);
}
.asset-icon { width: 48px; height: 48px; object-fit: contain; }
.mini-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .56rem;
  font-weight: 700;
}
.asset-description {
  margin: 3px 0 2px;
  color: var(--text);
  font-weight: 800;
  font-size: .84rem;
  line-height: 1.18;
}
.asset-number-line {
  margin: 0;
  color: var(--muted);
  font-size: .7rem;
}
.asset-number-line strong { color: var(--accent); font-size: .86rem; }
.location-section {
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--line);
}
h2 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: .86rem;
}
.button {
  width: 100%;
  min-height: 41px;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform .12s ease, opacity .12s ease;
}
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .52; cursor: not-allowed; }
.button-primary { color: #fff; background: var(--primary); }
.button-icon {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: inline-grid;
  place-items: center;
  font-size: 0;
}
.button-icon::after {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.button-whatsapp { color: #fff; background: #128C4A; margin-top: 8px; }
.wa-mark {
  width: 24px;
  height: 24px;
  border: 2px solid white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .52rem;
}
.location-result {
  margin-top: 6px;
  padding: 7px 9px;
  border-radius: 9px;
  background: #EAF7ED;
  border: 1px solid #B9DFC2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
}
.location-copy { display: grid; gap: 1px; min-width: 0; }
.location-result strong { color: var(--success); }
.location-result span { overflow-wrap: anywhere; color: var(--muted); }
.location-result a { color: var(--primary); font-weight: 700; white-space: nowrap; }
.text-button {
  display: block;
  width: 100%;
  padding: 5px 2px 0;
  background: transparent;
  border: 0;
  color: var(--primary);
  font-size: .68rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.manual-location { margin-top: 5px; }
.details-form { padding-top: 8px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.field-group label,
.manual-location label {
  display: block;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 3px;
  font-size: .67rem;
}
.required { color: var(--accent); }
.optional { color: var(--muted); font-weight: 400; }
input, textarea {
  width: 100%;
  border: 1px solid #BCC6D0;
  border-radius: 9px;
  padding: 8px 9px;
  color: var(--text);
  background: white;
  outline: none;
  resize: none;
  font-size: .77rem;
  line-height: 1.2;
}
input { height: 37px; }
textarea { min-height: 41px; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(11,42,74,.10); }
[aria-invalid="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(225,27,34,.10); }
.instructions-field { margin-top: 7px; }
.field-error { color: #B21017; font-size: .61rem; margin: 2px 0 0; }
.whatsapp-help {
  margin: 5px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .61rem;
}
.privacy-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .6rem;
  text-align: center;
}
.banner {
  border-radius: 9px;
  padding: 7px 9px;
  margin-bottom: 7px;
  font-size: .69rem;
  font-weight: 700;
}
.banner-info { background: #EAF1F8; color: var(--primary); border: 1px solid #C8D8E8; }
.banner-error { background: #FDEBEC; color: #9A1117; border: 1px solid #F2BEC1; }
.banner-success { background: #EAF7ED; color: #126B30; border: 1px solid #B9DFC2; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
noscript { display: block; max-width: 620px; margin: 10px auto; padding: 10px; background: #FDEBEC; }

@media (max-width: 350px) {
  .brand-logo { width: 124px; }
  .form-grid { grid-template-columns: 1fr; gap: 6px; }
  .intro-block h1 { font-size: 1rem; }
}

@media (min-height: 850px) and (min-width: 390px) {
  .page-shell { padding-top: 10px; }
  .compact-panel { padding: 13px; }
}
