:root {
  --contact-bg: #f7f7f7;
  --contact-ink: #0f172a;
  --contact-muted: #475569;
  --contact-border: rgba(15, 23, 42, 0.08);
  --contact-accent: #2563eb;
  --contact-accent-strong: #1d4ed8;
  --contact-accent-soft: #e0ecff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Satoshi", "Inter", system-ui, sans-serif;
  background: var(--contact-bg);
  color: var(--contact-ink);
}

@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-page {
  position: relative;
  padding: 140px 0 120px;
  overflow: hidden;
}

.contact-page::before,
.contact-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.35;
  pointer-events: none;
}

.contact-page::before {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 65%);
}

.contact-page::after {
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
}

.contact-shell {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-hero {
  margin-bottom: 70px;
  animation: contact-rise 0.8s ease both;
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--contact-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--contact-accent-strong);
}

.contact-hero h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin: 18px 0 18px;
}

.contact-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--contact-muted);
  margin: 0 0 22px;
}

.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

.contact-hero-card {
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(145deg, #0f172a, #111827);
  color: #e2e8f0;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.contact-hero-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.contact-hero-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5f5;
}

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

.hero-metric {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-metric strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-metric span {
  font-size: 12px;
  color: #cbd5f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.52fr);
  gap: 28px;
  align-items: start;
}

.contact-flow {
  margin-top: 80px;
  animation: contact-rise 0.8s ease both;
  animation-delay: 0.2s;
}

.contact-flow-header h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.4px;
}

.contact-flow-header p {
  margin: 0 0 26px;
  color: var(--contact-muted);
  line-height: 1.6;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  border: 1px solid var(--contact-border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.flow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 999px;
  background: var(--contact-accent-soft);
  color: var(--contact-accent-strong);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
}

.flow-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.flow-card p {
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.6;
}

.contact-assurance {
  margin-top: 24px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #e2e8f0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.assurance-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.assurance-copy p {
  margin: 0;
  color: #d6e0f8;
  font-size: 14px;
  line-height: 1.7;
}

.assurance-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.assurance-list span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--contact-border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  animation: contact-rise 0.8s ease both;
  animation-delay: 0.06s;
}

.contact-form-card h1,
.contact-form-card h2 {
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}

.contact-form-card p {
  margin: 0 0 24px;
  color: var(--contact-muted);
  line-height: 1.6;
}

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

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.input,
.textinput {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f8fafc;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.textinput {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
.textinput:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background: #ffffff;
}

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
}

.input.is-invalid,
.textinput.is-invalid {
  border-color: #f3b4b4;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.input.is-valid,
.textinput.is-valid {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.form-message {
  display: none;
  width: 100%;
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid transparent;
}

.form-message--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.form-message--error {
  background: #fff7f7;
  color: #7a1f1f;
  border-color: #f3b4b4;
  border-left: 4px solid #ef4444;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  position: relative;
  padding-left: 44px;
}

.form-message--error::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.btn-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 22px;
}

.submit-btn {
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--contact-border);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  animation: contact-rise 0.8s ease both;
  animation-delay: 0.14s;
}

.contact-info-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.contact-info-card p {
  margin: 0 0 20px;
  color: var(--contact-muted);
  line-height: 1.6;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.info-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  color: var(--contact-ink);
  text-decoration: none;
}

.info-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e0ecff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #1d4ed8;
}

.info-text span {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.info-text strong {
  display: block;
  font-size: 14px;
}

.info-highlight {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #e2e8f0;
}

.info-highlight h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.info-highlight p {
  margin: 0;
  font-size: 13px;
  color: #cbd5f5;
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.contact-socials a {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.contact-socials img {
  width: 18px;
  height: 18px;
  display: block;
}

.contact-socials svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: #0f172a;
  transition: fill 0.2s ease;
}

.contact-socials a:hover svg {
  fill: #1d4ed8;
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero,
  .contact-form-card,
  .contact-info-card {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .contact-hero-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-assurance {
    grid-template-columns: 1fr;
  }

  .contact-hero-card {
    order: -1;
  }
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 34px;
  }

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

  .contact-form-card,
  .contact-info-card {
    padding: 24px;
  }

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