/* =========================================================
   Contact page only (page template: page-contact.php)
   ========================================================= */

/* Force true full width */
.page-template-page-contact #page,
.page-template-page-contact #content,
.page-template-page-contact main,
.page-template-page-contact .container,
.page-template-page-contact .site,
.page-template-page-contact .site-content,
.page-template-page-contact .wp-site-blocks,
.page-template-page-contact .wp-block-group,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .entry-content,
.page-template-page-contact .content-area {
  max-width: none !important;
  width: 100% !important;
}

/* Kill auto-centering gutters on common wrappers */
.page-template-page-contact .wp-site-blocks,
.page-template-page-contact .wp-block-post-content,
.page-template-page-contact .entry-content {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Make the sections bleed to viewport width even if a parent is centered */
.page-template-page-contact main > section {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Contact page: remove any inherited main top padding */
.page-template-page-contact main,
.page-template-page-contact #zp-contact-main {
  padding-top: 0 !important;
}

/* =========================
   Contact page: decorative layout
   ========================= */

.page-template-page-contact .zp-contact-section {
  position: relative;
}

/* Soft decorative blobs */
.page-template-page-contact .zp-contact-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  z-index: 0;
  pointer-events: none;
}

.page-template-page-contact .zp-contact-blob--top {
  top: 80px;
  right: 0;
  width: 260px;
  height: 260px;
  background: rgba(196, 167, 125, 0.12);
}

.page-template-page-contact .zp-contact-blob--bottom {
  bottom: 80px;
  left: 0;
  width: 320px;
  height: 320px;
  background: rgba(107, 117, 101, 0.12);
}

/* Ensure content sits above blobs */
.page-template-page-contact .zp-contact-section > .max-w-6xl {
  position: relative;
  z-index: 1;
}

/* =========================
   Cards
   ========================= */

.page-template-page-contact .zp-card {
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(232, 220, 200, 0.30);
}

.page-template-page-contact .zp-card--info {
  background: linear-gradient(135deg, #FAF9F6 0%, #F5F4F0 100%);
}

.page-template-page-contact .zp-card--success {
  background: #F5F4F0;
  padding: 48px;
  border: none;
}

.page-template-page-contact .zp-card--online {
  background: linear-gradient(135deg, #6B7565 0%, #5A6454 100%);
  color: #fff;
  border: none;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* =========================
   Icons
   ========================= */

.page-template-page-contact .zp-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-template-page-contact .zp-icon-circle--solid {
  background: #6B7565;
  color: #fff;
}

.page-template-page-contact .zp-icon svg { width: 20px; height: 20px; display: block; }
.page-template-page-contact .zp-icon-sm svg { width: 18px; height: 18px; display: block; }
.page-template-page-contact .zp-icon--accent { color: #6B7565; }

/* Link hover behavior */
.page-template-page-contact .zp-link-row:hover .zp-icon-circle {
  background: #6B7565;
  transition: background-color .15s ease;
}

.page-template-page-contact .zp-link-row:hover .zp-icon--accent {
  color: #fff;
  transition: color .15s ease;
}

.page-template-page-contact .zp-link-strong {
  color: #2C2C2C;
  transition: color .15s ease;
}

.page-template-page-contact .zp-link-row:hover .zp-link-strong {
  color: #6B7565;
}

/* Online links */
.page-template-page-contact .zp-online-link {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color .15s ease;
}

.page-template-page-contact .zp-online-link:hover { color: #fff; }

.page-template-page-contact .zp-online-icon {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Inputs
   ========================= */

.page-template-page-contact .zp-input,
.page-template-page-contact .zp-select,
.page-template-page-contact .zp-textarea {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #fff;
  color: #2C2C2C;
  outline: none;
}

.page-template-page-contact .zp-input,
.page-template-page-contact .zp-select {
  height: 48px;
  padding: 0 16px;
}

.page-template-page-contact .zp-textarea {
  min-height: 180px;
  padding: 12px 16px;
  resize: none;
}

.page-template-page-contact .zp-input:focus,
.page-template-page-contact .zp-textarea:focus {
  border-color: #2C3E2D;
  box-shadow: 0 0 0 3px rgba(44, 62, 45, 0.18);
}

.page-template-page-contact .zp-select:focus {
  border-color: #6B7565;
  box-shadow: 0 0 0 3px rgba(107, 117, 101, 0.18);
}

/* Submit button */
.page-template-page-contact .zp-submit {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 9999px;
  background: #6B7565;
  color: #fff;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .15s ease, opacity .15s ease;
}

.page-template-page-contact .zp-submit:hover { background: #8A8D85; }
.page-template-page-contact .zp-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Spinner */
.page-template-page-contact .zp-spinner {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: zp-spin 1s linear infinite;
}

@keyframes zp-spin { to { transform: rotate(360deg); } }

/* =========================================
   Contact page layout (breakpoint: 870px)
   Desktop: 2 columns (form 2/3, aside 1/3)
   Mobile: stacked
   ========================================= */

.page-template-page-contact .zp-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.page-template-page-contact .zp-contact-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 870px) {
  .page-template-page-contact .zp-contact-grid {
    grid-template-columns: 3fr 2fr; /* ~2/3 + 1/3 */
    gap: 64px;
    align-items: start;
  }

  .page-template-page-contact .zp-contact-aside {
    padding-left: 30px;
  }

  .page-template-page-contact .zp-contact-fields {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-template-page-contact .zp-contact-email {
    grid-column: 1 / -1;
  }
}