/* ============================================================
   contact.css — DN Exposer
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.contact-hero{
  padding: calc(var(--nav-h) + 56px) 0 48px;
  background: var(--cream-mid);
  text-align: center;
}
.contact-hero h1{ margin-bottom: 14px; }


/* ── Layout : info + form ──────────────────────────────────── */
.contact-layout{
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: start;
}


/* ── Info column ───────────────────────────────────────────── */
.contact-info{
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: calc(var(--nav-h) + 32px);
}

.contact-info__card{
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--sh-card);
  display: flex; flex-direction: column; gap: 6px;
}
.contact-info__icon{
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--rose);
  margin-bottom: 4px;
}
.contact-info__card h3{
  font-size: 1rem; margin: 0;
}
.contact-info__value{
  font-size: .92rem; color: var(--muted);
  line-height: 1.5;
}
a.contact-info__value{
  color: var(--teal); font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(42,157,143,.3);
}
a.contact-info__value:hover{
  color: var(--rose);
  text-decoration-color: var(--rose);
}

.contact-info__services{
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  box-shadow: var(--sh-card);
}
.contact-info__services h4{
  font-size: .9rem; margin-bottom: 14px;
}
.contact-info__services ul{
  list-style: none; margin: 0; padding: 0;
}
.contact-info__services li{
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: .88rem; color: var(--muted);
  border-bottom: 1px solid var(--cream-mid);
  line-height: 1.5;
}
.contact-info__services li:last-child{ border-bottom: none; }
.contact-info__services li::before{
  content: '→';
  position: absolute; left: 0;
  color: var(--rose); font-weight: 600;
}


/* ── Form ──────────────────────────────────────────────────── */
.contact-form-wrap{
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--sh-md);
}

.contact-field{ margin-bottom: 20px; }
.contact-label{
  display: block;
  font-size: .82rem; font-weight: 600;
  color: var(--slate); margin-bottom: 8px;
  letter-spacing: .2px;
}
.contact-req{ color: var(--rose); }

.contact-input{
  width: 100%; padding: 14px 18px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text); font-size: .94rem;
  outline: none;
  transition: border-color var(--tr-md), box-shadow var(--tr-md), background var(--tr-md);
}
.contact-input::placeholder{ color: var(--light); }
.contact-input:focus{
  border-color: var(--rose);
  box-shadow: 0 0 0 4px var(--rose-glow);
  background: var(--white);
}

.contact-textarea{
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}

/* Validation states */
.contact-field.is-valid .contact-input{
  border-color: var(--teal);
}
.contact-field.is-invalid .contact-input{
  border-color: var(--rose);
  background: var(--rose-light);
}

.contact-error{
  font-size: .78rem; color: var(--rose);
  margin-top: 6px; min-height: 18px;
  line-height: 1.4;
}

.contact-field__bottom{
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
.contact-counter{
  font-size: .74rem; color: var(--light);
  flex-shrink: 0; margin-top: 6px;
  white-space: nowrap;
}
.contact-counter.is-near{ color: var(--rose); font-weight: 600; }


/* ── Feedback ──────────────────────────────────────────────── */
.contact-feedback{
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: .92rem;
  line-height: 1.6;
  text-align: center;
}
.contact-feedback[hidden]{ display: none; }
.contact-feedback--ok{
  background: #edf9f0; color: #1a6b35;
  border: 1px solid #b8e6c8;
}
.contact-feedback--err{
  background: var(--rose-light); color: var(--rose);
  border: 1px solid rgba(229,52,91,.2);
}


/* ── Privacy note ──────────────────────────────────────────── */
.contact-privacy{
  font-size: .74rem; color: var(--light);
  margin-top: 16px; line-height: 1.6;
  text-align: center;
}
.contact-privacy a{
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-privacy a:hover{ color: var(--rose); }


/* ── Submit spinner ─────────────────────────────────────────── */
.contact-spinner{
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spin .6s linear infinite;
}
@keyframes contact-spin{
  to{ transform: rotate(360deg); }
}


/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px){
  .contact-layout{
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info{
    position: static;
    flex-direction: row; flex-wrap: wrap;
    gap: 16px;
  }
  .contact-info__card{ flex: 1; min-width: 200px; }
  .contact-info__services{ flex: 1 1 100%; }
}
@media (max-width: 768px){
  .contact-form-wrap{ padding: 32px 24px; }
  .contact-info__card{ min-width: unset; flex: 1 1 100%; }
}