:root {
  --nefa-blue: #0b5fff;
  --nefa-dark: #10213f;
  --bg: #f2f5fb;
  --card-bg: #ffffff;
  --text: #10213f;
  --muted: #6b7688;
  --error: #d92d20;
  --success: #12875a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
}

.brand { position: relative; text-align: center; margin-bottom: 20px; }
.brand-logo-img { height: 40px; width: auto; }
.brand-sub { font-size: 14px; color: var(--muted); margin-top: 8px; padding: 0 70px; }

.support-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d9dee8;
  background: var(--card-bg);
  color: var(--nefa-blue);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
}
.support-btn:hover { background: #eef4ff; }

.support-menu {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 30;
  width: 240px;
  background: var(--card-bg);
  border: 1px solid #d9dee8;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16, 33, 63, 0.12);
  padding: 6px;
  text-align: left;
}

.support-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
}
.support-option:hover { background: #eef4ff; }
.support-option svg { flex-shrink: 0; color: var(--nefa-blue); }

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 6px 24px rgba(16, 33, 63, 0.08);
}

.lead { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
.req { color: var(--error); }

input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  background: white;
  font-family: inherit;
  color: var(--text);
}
input:focus, select:focus { border-color: var(--nefa-blue); }
select:invalid { color: var(--muted); }

.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.autocomplete-wrap { position: relative; }

.suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: white;
  border: 1px solid #d9dee8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 33, 63, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.suggestions li {
  padding: 10px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.suggestions li:hover,
.suggestions li.active {
  background: #eef4ff;
}
.suggestions li .sug-name { color: var(--text); }
.suggestions li .sug-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.suggestions li.empty { color: var(--muted); cursor: default; }
.suggestions li.empty:hover { background: none; }

button#submit-btn {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  background: var(--nefa-blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
button#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
button#submit-btn:active:not(:disabled) { transform: translateY(1px); }

.error {
  margin-top: 12px;
  color: var(--error);
  background: #fef1f0;
  border: 1px solid #fbd5d1;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e7f7ef;
  color: var(--success);
  font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

#success-view h2 { text-align: center; margin: 0 0 20px; }

.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.result-table td { padding: 8px 0; border-bottom: 1px solid #eef1f6; }
.result-table td:first-child { color: var(--muted); width: 45%; }
.result-table td.strong { font-weight: 700; color: var(--nefa-blue); }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 24px; }
