:root {
  --bg: #e8eef5;
  --panel: #ffffff;
  --ink: #0b1220;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --accent: #0b1220;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Syne", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

/* Theme scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #e8eef5;
}

html::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

html::-webkit-scrollbar-track {
  background: #e8eef5;
}

html::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
  border: 3px solid #e8eef5;
}

html::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

html::-webkit-scrollbar-corner {
  background: #e8eef5;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.75), transparent 55%),
    linear-gradient(180deg, #dce5f0 0%, var(--bg) 40%, #d7e0ec 100%);
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
}

.contact-section {
  width: min(640px, 100%);
  padding: 28px 28px 32px;
  border-radius: 22px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand span {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.contact-hero {
  margin-bottom: 24px;
}

.contact-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.contact-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.field input,
.field textarea,
.phone-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.phone-box {
  height: 46px;
  padding: 0 14px;
}

.field textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

.field input:focus,
.field textarea:focus,
.phone-box:focus-within {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.phone-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  padding-right: 0;
}

.phone-box select {
  border: 0;
  background: transparent;
  font: 600 0.85rem var(--font);
  color: var(--ink);
  padding-right: 4px;
}

.phone-box input {
  border: 0;
  height: 44px;
  flex: 1;
  padding-left: 4px;
  box-shadow: none;
}

.phone-box input:focus {
  box-shadow: none;
}

.services-label {
  margin: 6px 0 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-bottom: 22px;
}

.service {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
}

.service input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: 700 0.95rem var(--font);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.submit:hover {
  opacity: 0.92;
}

.submit:active {
  transform: translateY(1px);
}

.email-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.email-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-msg {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-size: 0.86rem;
  color: #15803d;
  text-align: center;
}

.form-msg.is-error {
  color: #b91c1c;
}

@media (max-width: 720px) {
  .page {
    padding: 16px 12px 28px;
  }

  .contact-section {
    padding: 22px 16px 26px;
    border-radius: 18px;
  }

  .contact-hero h1 {
    font-size: 1.4rem;
  }

  .contact-hero p {
    font-size: 0.88rem;
  }

  .field input,
  .field textarea,
  .phone-box,
  .phone-box input,
  .phone-box select {
    font-size: 16px; /* avoids iOS zoom */
  }
}

@media (max-width: 520px) {
  .row,
  .services {
    grid-template-columns: 1fr;
  }

  .brand {
    margin-bottom: 18px;
    font-size: 1.05rem;
  }

  .contact-hero {
    margin-bottom: 20px;
  }

  .contact-hero h1 {
    font-size: 1.28rem;
  }

  .field {
    margin-bottom: 14px;
  }

  .services {
    gap: 12px;
    margin-bottom: 18px;
  }

  .submit {
    height: 48px;
  }
}

.legal-strip {
  width: min(640px, calc(100% - 32px));
  margin: 0 auto 20px;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  font-size: 0.82rem;
}

.legal-strip a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.legal-strip a:hover {
  color: var(--ink);
}
