/* =========================
   Contact Page – FULL CSS
   Fix gap between banner & section
   ========================= */

/* ---------- Theme tokens ---------- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --secondary: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Section background (keep colors in sync with your design) */
}

/* Make sure page background never flashes white behind parallax */
html, body {
  background: linear-gradient(135deg, var(--section-bg-start) 0%, var(--section-bg-end) 100%);
}

.page-breadcrumb svg{ width:16px; height:16px; opacity:.8 }

/* ---------- BANNER ---------- */
.page-banner {
  position: relative;
  height: 300px;
  /* Solid color below the image to avoid any visible gap while scrolling */
  background-color: var(--section-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}

/* Background image layer */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: -2;
}

/* Overlay that fades into the section color to ensure seamless join */
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0, calc(var(--banner-overlay, 0.35) + 0.15)) 0%,
    rgba(0,0,0, var(--banner-overlay, 0.35)) 55%,
    #0a7446 100%
  );
  z-index: -1;
}

.banner-content { z-index: 1; animation: slideInUp 0.8s ease-out; }
.banner-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
.breadcrumb {
  display: flex; gap: .5rem; justify-content: center; align-items: center;
  font-size: 1rem; opacity: .95;
}
.breadcrumb a { color: #fff; text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- LAYOUT ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Removed the negative margin that caused the white gap */
.contact-section {
  padding: 4rem 0;
  /* background: linear-gradient(135deg, #8ac14e 0%, #0a7446 100%); */
  min-height: 100vh;
}

/* Two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}

/* ---------- CARD ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease-out;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-title { font-size: 1.5rem; font-weight: 600; margin-bottom: .5rem; color: var(--text); }
.card-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---------- FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { font-weight: 500; margin-bottom: .5rem; color: var(--text); }
.form-input {
  padding: .75rem 1rem; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; transition: var(--transition); background: #fff; font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ---------- BUTTON ---------- */
.submit-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; padding: .875rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: .5rem; margin-top: 1rem;
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(37,99,235,.4); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.loading-spinner {
  width: 18px; height: 18px; border: 2px solid transparent; border-top: 2px solid #fff;
  border-radius: 50%; animation: spin 1s linear infinite;
}

/* ---------- ALERT ---------- */
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: none; animation: slideInDown .3s ease-out; }
.alert.success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: var(--success); }
.alert.error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: var(--error); }

/* ---------- INFO LIST ---------- */
.info-card { margin-bottom: 1.5rem; }
.info-list { list-style: none; margin-bottom: 1.5rem; padding: 0; }
.info-item { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; padding: .5rem 0; }
.info-icon { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.info-link { color: var(--primary); text-decoration: none; transition: var(--transition); }
.info-link:hover { text-decoration: underline; }

/* ---------- SOCIAL ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-btn {
  background: var(--secondary); color: var(--text); padding: .5rem 1rem; border-radius: var(--radius);
  text-decoration: none; font-size: .875rem; font-weight: 500; transition: var(--transition);
  border: 1px solid var(--border); display: inline-flex; align-items: center;
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.social-ico { width: 18px; height: 18px; margin-right: .5rem; flex-shrink: 0; }

/* Brand hovers */
.social-btn--facebook:hover { background:#1877F2; border-color:#1877F2; color:#fff; }
.social-btn--instagram:hover { background:#E1306C; border-color:#E1306C; color:#fff; }
.social-btn--linkedin:hover { background:#0A66C2; border-color:#0A66C2; color:#fff; }
.social-btn--youtube:hover { background:#FF0000; border-color:#FF0000; color:#fff; }
.social-btn--tiktok:hover { background:#111; border-color:#111; color:#fff; }
.social-btn--whatsapp:hover { background:#25D366; border-color:#25D366; color:#fff; }

/* ---------- MAP ---------- */
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 300px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ---------- UTILS ---------- */
.honeypot { display: none !important; }

/* ---------- ANIMATIONS ---------- */
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 968px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 768px) {
  .page-banner { height: 240px; }
  .form-grid { grid-template-columns: 1fr; }
  .social-links { justify-content: center; }
  .card { padding: 1.5rem; }
  .contact-section { padding: 2rem 0; }
}
@media (max-width: 480px) {
  .card { padding: 1rem; }
  .form-input { padding: .625rem .875rem; }
  .submit-btn { padding: .75rem 1.5rem; }
}

@media (max-width: 768px) {
    .page-banner { --banner-image: url('{{ $bannerMobile }}'); }
  }
  
  