:root{
  --contact-bg: #f5f7fb;
  --contact-card-bg: rgba(255, 255, 255, 0.82);
  --contact-border: rgba(15, 23, 42, 0.1);
}

.contact-hero{
  margin-top: calc(var(--nav-h) + 40px);
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 2rem;
  text-align: center;
  background: linear-gradient(160deg, #e7ebf5 0%, #f7f9fc 62%, #ffffff 100%);
}

.contact-hero__inner{
  width: min(var(--container-w), 88vw);
  margin: 0 auto;
}

.contact-hero h1{
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin-bottom: 0.6rem;
}

.contact-hero p{
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  opacity: 0.8;
  max-width: 680px;
  margin: 0.5rem auto 0;
}

.contact-section{
  background: var(--contact-bg);
  padding: clamp(2rem, 6vw, 3.5rem) 1rem 4rem;
}

.contact-card{
  width: min(var(--container-w), 88vw);
  margin: 0 auto;
  background: var(--contact-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--contact-border);
  border-radius: 18px;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.form-grid{
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field{
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label{
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field textarea{
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255,255,255,0.95);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.field textarea{
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus{
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  outline: none;
}

.field-error{
  font-size: 0.9rem;
  color: #c2410c;
}

.field-error.non-field{
  margin-top: 1rem;
}

.contact-success{
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #14532d;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.contact-submit{
  margin-top: 1.8rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #1f3a8a, #1d4ed8);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-submit:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(30, 64, 175, 0.25);
}

.contact-submit:active{
  transform: translateY(0);
}
