/* contact.avisence.com, same design system as verify.avisence.com / new avisence.com (navy / sky / red, Montserrat) */
:root {
  --navy: #07131f; --navy-mid: #0b1e30; --navy-dark: #050e18;
  --red: #C8102E; --sky: #5BC8E8; --white: #fff;
  --border-dark: rgba(91,200,232,0.18);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--navy); }
body {
  font-family: 'Montserrat', sans-serif; background: var(--navy); color: var(--white);
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--sky); }

/* ═══ Texture + glows ═══ */
.tex-dark {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(91,200,232,0.22) 1.5px, transparent 1.5px),
    repeating-linear-gradient(-50deg, transparent, transparent 35px, rgba(91,200,232,0.06) 35px, rgba(91,200,232,0.06) 36px);
  background-size: 26px 26px, 100% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 100%);
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-1 { top: -220px; right: -160px; width: 750px; height: 750px; background: radial-gradient(circle, rgba(91,200,232,0.09) 0%, transparent 65%); }
.glow-2 { bottom: -220px; left: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 65%); }

/* ═══ Navbar ═══ */
.topbar {
  position: sticky; top: 0; z-index: 50; height: 66px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 44px; background: rgba(5,14,24,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
}
.brand-link { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.nav-logo { height: 40px; width: auto; flex: none; display: block; }
.nav-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); padding-left: 14px; border-left: 1px solid var(--border-dark); white-space: nowrap;
}
.btn-account {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 2px solid var(--sky); border-radius: 5px; color: var(--sky); text-decoration: none;
  font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-account:hover { background: var(--sky); color: var(--navy); }

/* ═══ Shared type + buttons ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--sky); }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 12px;
}
.sec-label::before { content: ''; width: 22px; height: 2px; background: var(--sky); }
h1 em { font-style: italic; color: var(--sky); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; background: var(--red); color: #fff; border: 0; border-radius: 5px;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #a50d25; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px;
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); border-radius: 5px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--sky); color: var(--sky); }
.btn-primary svg, .btn-outline svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.wide { width: 100%; }

/* ═══ Hero / page section ═══ */
.hero {
  position: relative; overflow: hidden; flex: 1;
  padding: 72px 44px 88px;
  background: linear-gradient(140deg, #030c15 0%, #07131f 50%, #0a1a2e 100%);
}
.hero-grid, .card-grid, .solo, .back-link { position: relative; z-index: 2; }
.hero-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: start;
}
.hero-copy { padding-top: 24px; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; font-style: italic;
  line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 14px;
}
.hero-slogan { font-size: 15px; font-weight: 700; font-style: italic; color: rgba(91,200,232,0.75); letter-spacing: 0.04em; margin-bottom: 20px; }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.78; max-width: 540px; margin-bottom: 32px; }

.panel {
  position: relative; background: rgba(11,30,48,0.86); border: 1px solid var(--border-dark);
  border-radius: 12px; padding: 38px 34px 30px; backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.38);
}
.panel::before { content: ''; position: absolute; top: 0; left: 34px; right: 34px; height: 3px; background: linear-gradient(90deg, var(--red) 0 46%, var(--sky) 46% 100%); }
.panel h2 { font-size: 28px; font-weight: 900; margin-bottom: 18px; }
.panel-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.6; }

/* ═══ Search ═══ */
.lookup { display: flex; flex-direction: column; gap: 8px; }
.lookup label { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.lookup input {
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  padding: 15px 16px 15px 46px; border-radius: 6px; border: 1.5px solid rgba(91,200,232,0.25);
  background: rgba(5,14,24,0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235BC8E8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 16px center / 18px;
  color: #fff; width: 100%; -webkit-appearance: none; appearance: none;
}
.lookup input::placeholder { color: rgba(255,255,255,0.3); font-weight: 500; }
.lookup input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(91,200,232,0.16); }
.results { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.results:empty { display: none; }
.result {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px;
  border: 1px solid var(--border-dark); border-radius: 8px; background: rgba(5,14,24,0.5);
  transition: border-color .2s, background .2s;
}
.result:hover { border-color: rgba(91,200,232,0.45); background: rgba(91,200,232,0.05); }
.result .mini { width: 44px; height: 44px; font-size: 15px; flex: none; }
.result .who { flex: 1; min-width: 0; color: #fff; text-decoration: none; }
.result .who b { display: block; font-size: 15px; font-weight: 800; }
.result .who span { display: block; font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result .who::after { content: ''; position: absolute; inset: 0; }
.result { position: relative; }
.result .save-mini {
  position: relative; z-index: 1; flex: none; padding: 9px 12px; border-radius: 5px; background: var(--red);
  color: #fff; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.result .save-mini:hover { background: #a50d25; }
.no-match { font-size: 13px; color: rgba(255,255,255,0.55); padding: 6px 2px; }

/* ═══ Avatar ═══ */
.avatar {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover; display: grid; place-items: center;
  background: linear-gradient(140deg, #163a66, #0b1e30); border: 2px solid rgba(91,200,232,0.45);
  font-size: 38px; font-weight: 800; color: #fff; letter-spacing: 0.02em; margin-bottom: 22px;
}

/* ═══ Contact card page ═══ */
.card-grid {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start;
}
.profile h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 900; font-style: italic; line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 8px; }
.profile .eyebrow { margin-bottom: 10px; }
.role { font-size: 15px; font-weight: 600; font-style: italic; color: rgba(255,255,255,0.7); margin-bottom: 26px; }
.save { width: 100%; font-size: 14px; padding: 17px 24px; }
.save-hint { font-size: 12px; color: rgba(255,255,255,0.42); margin: 10px 0 22px; text-align: center; }
.actions { display: grid; border-top: 1px solid var(--border-dark); }
.action {
  display: flex; align-items: center; gap: 16px; padding: 14px 2px;
  color: #fff; text-decoration: none; border-bottom: 1px solid var(--border-dark);
  font-size: 15px; font-weight: 500; transition: color .2s;
}
.action:hover { color: var(--sky); }
.action .icon {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border-dark); background: rgba(91,200,232,0.06);
  display: grid; place-items: center;
}
.action .icon svg { width: 18px; height: 18px; fill: var(--sky); }
.action small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 2px; }
.action .val { min-width: 0; overflow-wrap: anywhere; }

.desktop-save { text-align: center; }
.desktop-save .sec-label { margin-bottom: 18px; }
.qr { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; border-radius: 10px; background: #fff; padding: 6px; }
.desk-note { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-top: 16px; }
.desk-note.small { font-size: 12px; color: rgba(255,255,255,0.42); margin-top: 12px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-dark); }
.back-link { max-width: 1040px; margin: 26px auto 0; font-size: 13px; font-weight: 700; }
.back-link a { text-decoration: none; }

.solo { max-width: 640px; margin: 40px auto; text-align: center; }
.solo .hero-desc { margin: 0 auto 30px; }

/* ═══ Footer ═══ */
.site-foot { background: #030d1a; border-top: 1px solid var(--border-dark); }
.foot-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 44px 28px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-logo { height: 44px; width: auto; display: block; }
.foot-brand p { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.45); max-width: 340px; line-height: 1.7; }
.foot-addr h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.foot-addr p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.75; }
.foot-bottom {
  max-width: 1200px; margin: 0 auto; padding: 18px 44px 28px; border-top: 1px solid rgba(91,200,232,0.1);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.32);
}
.foot-bottom a { color: rgba(255,255,255,0.32); text-decoration: none; }
.foot-bottom a:hover { color: var(--sky); }

/* ═══ Responsive ═══ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy { padding-top: 0; }
  .card-grid { grid-template-columns: 1fr; max-width: 520px; }
  .desktop-save { display: none; }   /* on a phone the Save button is all you need */
  .back-link { max-width: 520px; text-align: center; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; height: 60px; }
  .nav-logo { height: 32px; }
  .btn-account { padding: 7px 12px; font-size: 11px; }
  .hero { padding: 32px 16px 56px; }
  .hero .hero-desc { margin-bottom: 0; }
  .panel { padding: 30px 20px 22px; }
  .panel::before { left: 20px; right: 20px; }
  .profile { text-align: center; }
  .avatar { margin: 0 auto 18px; width: 104px; height: 104px; }
  .profile .eyebrow::before { display: none; }
  .action { text-align: left; }
  .foot-wrap { padding: 36px 16px 22px; }
  .foot-bottom { padding: 16px 16px 24px; }
}
@media (max-width: 400px) {
  .nav-tag { display: none; }
}
