/* ================= Contact page ================= */
.contact-hero { padding-bottom: 170px; }
.contact-hero h1, .contact-hero .lead { margin-inline: auto; }

.contact-cards-sec { position: relative; z-index: 2; margin-top: -110px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c-card { display: flex; flex-direction: column; box-shadow: var(--shadow-lg); padding: 36px 32px; }
.c-card h3 { margin: 4px 0 10px; }
.c-card p { color: var(--muted); margin-bottom: 20px; line-height: 1.75; }
.c-card .link-arrow { margin-top: auto; }
.c-icon {
  position: relative;
  width: 64px; height: 64px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--primary-50); color: var(--primary); font-size: 1.5rem;
  margin-bottom: 20px;
  transition: transform 0.5s var(--ease-back), background 0.3s, color 0.3s;
}
.c-icon::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid var(--primary-100); opacity: 0; transform: scale(0.8); transition: all 0.4s var(--ease); }
.c-card:hover .c-icon { transform: rotate(-8deg) scale(1.06); background: var(--primary); color: #fff; }
.c-card:hover .c-icon::after { opacity: 1; transform: scale(1); }
.phones { display: grid; gap: 4px; }
.phones a, .email { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.phones a:hover, .email:hover { color: var(--primary); }

.c-card.featured { background: var(--grad); border: 0; color: #e3ebff; }
.c-card.featured h3, .c-card.featured .phones a { color: #fff; }
.c-card.featured .phones a:hover { color: #cfe0ff; }
.c-card.featured .c-icon { background: rgba(255, 255, 255, 0.16); color: #fff; }
.c-card.featured .c-icon::after { border-color: rgba(255, 255, 255, 0.3); }
.c-card.featured .link-arrow { color: #fff; }
.c-card.featured.spotlight::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 45%); }

/* Form & map */
.contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: stretch; }
.form-wrap {
  position: relative;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-wrap h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.muted { color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.select-caret { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.8rem; pointer-events: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.wa-send i { color: #25d366; }
.wa-send:hover { border-color: #25d366; color: #128c7e; }
.form-note { margin: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.form-note i { color: var(--primary); margin-right: 6px; }
.btn.loading { pointer-events: none; opacity: 0.8; }
.btn.loading i { animation: fly 0.8s var(--ease) infinite; }
@keyframes fly { 50% { transform: translate(6px, -6px); opacity: 0; } }

.contact-form { transition: opacity 0.4s, transform 0.5s var(--ease); }
.form-wrap.done .contact-form { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.form-success {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 40px;
  background: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.form-wrap.done .form-success { opacity: 1; visibility: visible; }
.form-success p { color: var(--muted); max-width: 360px; }
.check-anim svg { width: 96px; height: 96px; margin-bottom: 18px; }
.check-anim circle { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; }
.check-anim path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.form-wrap.done .check-anim circle { animation: draw 0.7s var(--ease) 0.2s forwards; }
.form-wrap.done .check-anim path { animation: draw 0.5s var(--ease) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.map-wrap { display: flex; flex-direction: column; gap: 16px; }
.map-frame {
  position: relative;
  flex: 1; min-height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(1.1); }
.map-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-info > div {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px; border-radius: 18px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--muted);
}
.map-info i { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.map-info strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.95rem; }

@media (max-width: 1024px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-cards .c-card:last-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .contact-cards { grid-template-columns: 1fr; }
  .contact-cards .c-card:last-child { grid-column: auto; }
  .form-wrap { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .map-info { grid-template-columns: 1fr; }
  .map-frame { min-height: 300px; }
}
