:root {
  --blue: #135cf2;
  --blue-2: #0f48d8;
  --blue-3: #2a7cff;
  --navy: #071b45;
  --text: #253858;
  --muted: #667799;
  --line: #dfe8f7;
  --soft: #f5f8fd;
  --soft-2: #eef4fb;
  --white: #ffffff;
  --green: #19b95f;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 24px 70px rgba(8, 30, 76, .12);
  --shadow-sm: 0 14px 40px rgba(8, 30, 76, .08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(19, 92, 242, .10), transparent 34rem),
    radial-gradient(circle at 100% 10%, rgba(42, 124, 255, .10), transparent 32rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 42%, #fff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
}

.container {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223, 232, 247, .85);
}

.nav-wrap {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  color: var(--blue);
  letter-spacing: -.04em;
  font-size: 28px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}

.nav a:not(.btn) {
  opacity: .85;
  transition: .2s ease;
}

.nav a:not(.btn):hover {
  color: var(--blue);
  opacity: 1;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.mobile-menu span {
  display: block;
  height: 2px;
  border-radius: 5px;
  background: var(--navy);
  margin: 5px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: .2s ease;
  box-shadow: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-3));
  box-shadow: 0 14px 32px rgba(19, 92, 242, .25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(19, 92, 242, .32);
}

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: rgba(19, 92, 242, .35);
}

.btn-secondary:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--blue);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
}

.hero {
  padding: 76px 0 44px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(560px, .97fr);
  align-items: center;
  gap: 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(19, 92, 242, .15);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(19, 92, 242, .06);
  font-size: 14px;
  font-weight: 800;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(25, 185, 95, .13);
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

.hero h1 {
  max-width: 580px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5.2vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
  color: var(--navy);
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: #405273;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #536783;
  font-weight: 700;
  font-size: 14px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-badges i {
  width: 18px;
  height: 18px;
  display: inline-flex;
  color: var(--blue);
}

.icon-shield::before { content: "◇"; }
.icon-flash::before { content: "✦"; }
.icon-clock::before { content: "◷"; }

.browser-frame {
  border: 1px solid rgba(188, 203, 226, .85);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-frame {
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transform-origin: center;
}

.browser-top {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #fbfdff, #f1f6fd);
  border-bottom: 1px solid var(--line);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: #d8e2f1;
}

.browser-top span:nth-child(1) { background: #ff6868; }
.browser-top span:nth-child(2) { background: #ffc35a; }
.browser-top span:nth-child(3) { background: #34d17d; }

.browser-top small {
  margin-left: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #8a9ab6;
  font-weight: 700;
  font-size: 12px;
}

.admin-screen {
  min-height: 492px;
  padding: 22px;
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 18px;
  background: linear-gradient(135deg, #fbfdff, #f6f9ff);
}

.admin-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(208, 220, 239, .95);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(8, 30, 76, .06);
}

.user-card {
  padding: 18px;
}

.screen-label,
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-label {
  color: #647899;
  font-size: 12px;
  font-weight: 800;
}

.small-icon,
.shield-mini {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(19,92,242,.08);
}

.user-card h3 {
  margin: 16px 0 4px;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -.03em;
}

.user-card p {
  color: #667799;
  font-size: 13px;
  margin-bottom: 14px;
}

.tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tags b,
.tags em {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.tags b {
  color: var(--blue);
  background: rgba(19,92,242,.10);
}

.tags em {
  color: #058342;
  background: rgba(25,185,95,.14);
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #71819c;
  font-size: 12px;
}

.meta-row strong {
  color: var(--navy);
}

.password-box {
  margin-top: 16px;
}

.password-box label {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}

.input-line {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9aa8bd;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
}

.password-box button {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.action-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
}

.action-grid button {
  height: 34px;
  border-radius: 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.action-grid .warn { border: 1px solid rgba(245,158,11,.5); color: #d97706; }
.action-grid .danger { border: 1px solid rgba(239,68,68,.45); color: #dc2626; }

.domain-card {
  padding: 18px;
  min-width: 0;
}

.section-title h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -.03em;
  font-size: 18px;
}

.section-title p {
  margin: 1px 0 0;
  color: #72829c;
  font-size: 13px;
}

.summary-line {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcff;
  color: #697b96;
  font-size: 12px;
}

.summary-line span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-line strong {
  color: var(--navy);
  font-size: 14px;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr 142px;
  gap: 12px;
  margin-bottom: 14px;
}

.search-row div,
.search-row button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #8a9ab5;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
}

.search-row button {
  justify-content: center;
  color: var(--navy);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.domain-grid label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  font-size: 12px;
}

.domain-grid input {
  accent-color: var(--blue);
}

.domain-grid span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.domain-grid small {
  color: #8190aa;
  font-weight: 700;
}

.screen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: #6d7d96;
  font-size: 12px;
  font-weight: 700;
}

.screen-footer a {
  color: var(--blue);
}

.trust-strip {
  padding: 16px 0 46px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.trust-grid article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.trust-grid article:last-child {
  border-right: 0;
}

.trust-grid h3 {
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 5px;
}

.trust-grid p {
  margin: 0;
  color: #657691;
  font-size: 13px;
}

.line-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(19,92,242,.22);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(19,92,242,.06);
}

.line-icon.server::before { content: "▦"; }
.line-icon.role::before { content: "◇"; }
.line-icon.list::before { content: "☷"; }
.line-icon.lock::before { content: "▣"; }
.line-icon.sync::before { content: "↻"; }

.features,
.screenshots,
.benefits,
.process {
  padding: 58px 0;
}

.section-head {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 720px;
}

.section-head span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.section-head p {
  margin: 0;
  color: #667799;
  font-size: 17px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 205px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 35px rgba(8,30,76,.045);
  transition: .22s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19,92,242,.24);
  box-shadow: var(--shadow-sm);
}

.feature-icon,
.benefit-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  background: rgba(19,92,242,.08);
  border: 1px solid rgba(19,92,242,.16);
  border-radius: 15px;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 18px;
}

.feature-card h3,
.shot-card h3,
.benefit-grid h3,
.step-card h3 {
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -.025em;
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p,
.shot-card p,
.benefit-grid p,
.step-card p {
  color: #667799;
  margin-bottom: 0;
}

.screenshots {
  background: linear-gradient(180deg, #fff, #f5f8fd 55%, #fff);
  border-top: 1px solid rgba(223,232,247,.7);
  border-bottom: 1px solid rgba(223,232,247,.7);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.shot-card {
  padding: 16px 16px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.mini-shot {
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7faff;
  overflow: hidden;
  margin-bottom: 20px;
}

.permissions-shot {
  display: grid;
  grid-template-columns: 38% 62%;
  padding: 14px;
  gap: 12px;
}

.mini-sidebar,
.mini-main {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.mini-sidebar strong {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}

.mini-sidebar small {
  color: #7a89a3;
}

.mini-sidebar span {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(19,92,242,.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.mini-title {
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 12px;
}

.mini-toolbar {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fbff;
  margin-bottom: 12px;
}

.mini-domains {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-domains span {
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.table-shot {
  padding: 16px;
  background: #fff;
}

.table-shot table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: #405273;
}

.table-shot th {
  text-align: left;
  color: #60728f;
  background: #f3f7fc;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}

.table-shot td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-shot td:nth-child(3) {
  color: #0d8b4a;
  font-weight: 800;
}

.groups-shot {
  padding: 18px;
  background: #fff;
}

.group-add {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  margin-bottom: 18px;
}

.group-add span {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #8795ad;
}

.group-add button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.groups-shot h4 {
  color: var(--navy);
  margin-bottom: 10px;
}

.member-row {
  display: grid;
  grid-template-columns: 1fr 72px 56px;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #425370;
  font-size: 12px;
}

.member-row b {
  color: var(--navy);
}

.member-row em {
  font-style: normal;
  color: #058342;
  font-weight: 800;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.benefit-grid article {
  padding: 34px 30px;
  border-right: 1px solid var(--line);
}

.benefit-grid article:last-child {
  border-right: 0;
}

.benefit-icon {
  border-radius: 999px;
}

.process {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  position: relative;
}

.steps article {
  position: relative;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-3));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  margin-bottom: 16px;
  box-shadow: 0 12px 28px rgba(19,92,242,.25);
}

.step-card {
  min-height: 210px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
}

.step-icon {
  display: block;
  color: var(--blue);
  font-size: 34px;
  margin-bottom: 18px;
}

.cta-section {
  padding: 50px 0 70px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0, rgba(255,255,255,.22), transparent 22rem),
    linear-gradient(135deg, #0f4adf, #1e78ff);
  box-shadow: 0 24px 60px rgba(19,92,242,.28);
}

.cta-card h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.04em;
}

.cta-card p {
  margin-bottom: 0;
  color: rgba(255,255,255,.86);
  font-size: 18px;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 46px 0 50px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr .8fr .8fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p,
.site-footer small {
  color: #667799;
}

.site-footer h4 {
  color: var(--navy);
  margin-bottom: 14px;
}

.site-footer a:not(.brand) {
  display: block;
  color: #667799;
  margin: 8px 0;
}

.site-footer a:not(.brand):hover {
  color: var(--blue);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 900px;
  }

  .trust-grid,
  .feature-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid article:nth-child(2n),
  .benefit-grid article:nth-child(2n) {
    border-right: 0;
  }

  .screenshot-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, 1220px);
  }

  .nav-wrap {
    height: 68px;
  }

  .mobile-menu {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .admin-screen {
    grid-template-columns: 1fr;
  }

  .domain-grid,
  .summary-line,
  .search-row {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    transform: none;
  }

  .trust-grid,
  .feature-grid,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article,
  .benefit-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-grid article:last-child,
  .benefit-grid article:last-child {
    border-bottom: 0;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand-mark {
    font-size: 24px;
  }

  .brand-text {
    display: none;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .mini-shot {
    height: auto;
    min-height: 230px;
  }

  .permissions-shot {
    grid-template-columns: 1fr;
  }

  .table-shot {
    overflow-x: auto;
  }

  .table-shot table {
    min-width: 600px;
  }

  .member-row {
    grid-template-columns: 1fr;
  }
}


/* Contact and demo forms */
.contact-section {
  padding: 20px 0 76px;
  background:
    radial-gradient(circle at 10% 10%, rgba(19,92,242,.08), transparent 28rem),
    linear-gradient(180deg, #fff, #f7faff);
}

.form-alert {
  max-width: 900px;
  margin: -8px auto 28px;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  border: 1px solid transparent;
}

.form-alert-success {
  color: #057044;
  background: rgba(25,185,95,.10);
  border-color: rgba(25,185,95,.22);
}

.form-alert-error {
  color: #b42318;
  background: rgba(239,68,68,.09);
  border-color: rgba(239,68,68,.20);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-sm);
}

.form-card-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.form-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--blue);
  background: rgba(19,92,242,.08);
  border: 1px solid rgba(19,92,242,.16);
  font-size: 24px;
  font-weight: 900;
}

.form-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -.03em;
}

.form-card p {
  margin: 0;
  color: #667799;
}

.tmfrx-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tmfrx-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
}

.tmfrx-form label strong {
  color: var(--blue);
}

.tmfrx-form input,
.tmfrx-form select,
.tmfrx-form textarea {
  width: 100%;
  border: 1px solid #cfd9e8;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: .18s ease;
  box-shadow: 0 8px 20px rgba(8,30,76,.03);
}

.tmfrx-form input,
.tmfrx-form select {
  height: 50px;
  padding: 0 15px;
}

.tmfrx-form textarea {
  resize: vertical;
  min-height: 130px;
  padding: 14px 15px;
}

.tmfrx-form input:focus,
.tmfrx-form select:focus,
.tmfrx-form textarea:focus {
  border-color: rgba(19,92,242,.72);
  box-shadow: 0 0 0 4px rgba(19,92,242,.10);
}

.form-submit {
  width: fit-content;
  min-width: 220px;
  margin-top: 4px;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 960px) {
  .form-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit {
    width: 100%;
  }
}

/* Form layout correction */
.contact-section .form-grid {
  align-items: stretch;
}

.tmfrx-form label {
  display: block !important;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}

.tmfrx-form label strong {
  display: inline !important;
  color: var(--blue);
  margin-left: 4px;
}

.tmfrx-form input,
.tmfrx-form select,
.tmfrx-form textarea {
  display: block;
  margin-top: 9px;
}

.tmfrx-form .hp-field {
  margin-top: 0;
}

.form-card {
  overflow: hidden;
}

.form-card-head {
  align-items: center;
}

.form-card-head h3 {
  line-height: 1.15;
}

.tmfrx-form input::placeholder,
.tmfrx-form textarea::placeholder {
  color: #7d899c;
  opacity: 1;
}

.tmfrx-form select {
  appearance: auto;
}

@media (max-width: 960px) {
  .form-card {
    padding: 24px;
  }
}

/* Google reCAPTCHA layout */
.captcha-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
  margin-bottom: 4px;
  min-height: 78px;
  overflow: visible;
}

.captcha-row .g-recaptcha {
  max-width: 100%;
}

@media (max-width: 420px) {
  .captcha-row {
    transform: scale(0.88);
    transform-origin: left center;
    width: 114%;
  }
}
