/* =================================================
   CONTACT PAGE
------------------------------------------------- */

/* Socials row at the top of the contact page: whole-card links with a
   brand-colored icon, one per social channel. Each link borrows the shared
   card surface and lights up in its channel's brand color on hover. */
.social-row {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .social-row {
    grid-template-columns: 1fr 1fr;
  }
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--social-accent, var(--border-hover));
  box-shadow: 0 8px 24px var(--social-glow, rgba(245, 196, 0, 0.15));
}

.social-link--whatsapp  { --social-accent: #25d366; --social-glow: rgba(37, 211, 102, 0.22); }
.social-link--instagram { --social-accent: #e4405f; --social-glow: rgba(228, 64, 95, 0.22); }
.social-link--faq       { --social-accent: #2563eb; --social-glow: rgba(37, 99, 235, 0.22); }
.social-link--events    { --social-accent: #f5c400; --social-glow: rgba(245, 196, 0, 0.28); }

.social-link-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--social-accent, var(--ink));
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover .social-link-icon {
  background: var(--social-accent, var(--yellow));
  color: #fff;
}

.social-link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social-link-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.social-link-text span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Badge row: the question-mark glyph sits beside the "SAY HELLO" badge as a
   small graphic cue that this card is where you ask us things. */
/* Contact page: form card + quick-links rail. One column on mobile (rail stacks
   below the form); on desktop the form takes a fixed readable width and the rail
   fills the space beside it instead of the card sprawling across the viewport. */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-layout .book-card {
  margin-bottom: 0;
}

/* The rail's own list margin is redundant inside the layout grid gap. */
.contact-links {
  margin: 0;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
  }

  /* Rail becomes a single stacked column beside the form. */
  .contact-links {
    grid-template-columns: 1fr;
  }
}

.contact-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-q-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.contact-badge-row .event-type-badge {
  margin-bottom: 0;
}

/* The contact card sits inside .event-card-body, whose align-items:flex-start
   shrinks children to their natural width. Opt the quick-links row and the form
   back into the full card width so the fields aren't a narrow sliver. */
.contact-quick,
.contact-form {
  align-self: stretch;
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 0.4rem 0 1.4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.35);
  transform: translate(-1px, -1px);
}

.contact-status {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a7a3c;
}

/* Turnstile widget sits between the last field and the send button. The widget
   itself is a fixed-size iframe Cloudflare renders; we just give it breathing
   room and stop it overflowing on narrow screens. */
.contact-turnstile {
  margin: 0.4rem 0 0.2rem;
  min-height: 65px;
}

.contact-error {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c0392b;
}
