/**
 * assets/css/pages/contact.css
 * Page styles for the Contact page (contact.php).
 *
 * Linked from the page body, directly after the shell header, at the position where the first of four
 * inline style blocks used to be. The rules keep the order they had in the page:
 *   1. horizontal overflow guard for html and body
 *   2. form validation states (.cf-*) used by assets/js/pages/contact.js
 *   3. success toast animation, used only when the enquiry was saved (see contact-toast.js)
 *   4. pulse ring behind the floating WhatsApp button (#whatsappBtn)
 * Keep these rules page specific: the class names are not shared with other pages.
 */

/* 1. Horizontal overflow guard */
html,body{
overflow-x:hidden;
}

/* 2. Form validation states */
.cf-error {
  display: block;
  min-height: 16px;
  font-size: 11.5px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 4px;
}
.cf-invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.cf-valid {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08) !important;
}
.cf-invalid-wrapper {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important;
}
.cf-valid-wrapper {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08) !important;
}
#phone_wrapper:focus-within {
  border-color: var(--brand-primary, #16a34a);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.08);
}

/* 3. Success toast animation */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.animate-slideIn { animation: slideIn 0.3s ease-out; }
.fade-out { transition: opacity 0.3s ease-out, transform 0.3s ease-out; }

/* 4. Pulse ring behind the floating WhatsApp button */
#whatsappBtn::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: waPulse 2s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
