/* ═══════════════════════════════════════════════════════════
   Contact Module — public page styles
   Uses CSS custom properties defined in the main layout.
   ═══════════════════════════════════════════════════════════ */

/* ── Two-column layout ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── Form wrapper card ── */
.contact-form {
  background: var(--color-surface, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ── Company info methods ── */
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: 0.875rem;
  background: var(--color-surface, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.18s ease;
}

.contact-method:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.contact-method-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, var(--color-primary, #6366f1), var(--color-secondary, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.contact-method-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.5;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-method-value {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

/* ── Google Maps embed ── */
.contact-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 1.5rem;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── Success / error states ── */
.contact-success {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 1.25rem;
  animation: contactFadeIn 0.35s ease;
}

.contact-success .success-icon {
  font-size: 3.25rem;
  margin-bottom: 0.875rem;
  display: block;
  animation: contactBounce 0.5s ease;
}

.contact-success h3 {
  color: #4ade80;
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-success p {
  opacity: 0.75;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Keyframe animations ── */
@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes contactBounce {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile show info column first */
  .contact-layout > :first-child {
    order: 2;
  }

  .contact-layout > :last-child {
    order: 1;
  }
}

@media (max-width: 480px) {
  .contact-form {
    padding: 1.25rem;
  }

  .contact-success {
    padding: 2rem 1.25rem;
  }
}
