/* =========================================================
CONTACT PAGE CSS (SCOPED)
This file should ONLY style contact.html.
Global site styling (navbar/footer/buttons/etc.) stays in style.css
========================================================= */

/* IMPORTANT:
   Already load Josefin Sans + Droid Serif in the page head.
   Avoid importing extra fonts here (performance). */

/* Prevent horizontal scroll issues on Contact page only */
.contact-page,
.contact-page body {
  overflow-x: hidden;
}

/* Safer: scope box-sizing to contact page only (won’t affect other pages) */
.contact-page *,
.contact-page *::before,
.contact-page *::after {
  box-sizing: border-box;
}

/* =========================================================
ACCESSIBILITY (SAFE + LIGHT)
========================================================= */

.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-page .btn:focus-visible,
.contact-page input:focus-visible,
.contact-page textarea:focus-visible,
.contact-page select:focus-visible {
  outline: 2px solid rgba(249, 167, 67, 0.85);
  outline-offset: 2px;
}

/* Remove Bootstrap focus glow only on Contact page */
.contact-page .btn:focus,
.contact-page .btn:active:focus {
  box-shadow: none;
}

/* =========================================================
OPTIONAL PRELOADER (ONLY IF contact.html HAS IT)
========================================================= */

.contact-page .preloader {
  position: fixed;
  inset: 0;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page .preloader::after {
  content: "";
  width: 46px;
  height: 46px;
  border: 5px solid #cccccc;
  border-top-color: #f9a743;
  border-radius: 50%;
  animation: contactSpin 1s linear infinite;
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
CONTACT HERO / HEADER (SCOPED)
========================================================= */

.contact-page .contact-hero h1 {
  letter-spacing: 0.5px;
}

.contact-page .contact-hero p {
  font-style: italic;
}

.contact-page .header-green {
  color: #699969;
}

/* =========================================================
CONTACT LAYOUT HELPERS
========================================================= */

/* Your HTML uses .border-start on the form header line.
   Don’t style global Bootstrap utilities broadly.
   Scoped fallback only on contact page: */
.contact-page .contact-section .border-start {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 12px 14px;
}

/* Keep ONE contact icon color */
.contact-page .contact-icon {
  color: #69af66;
}

/* =========================================================
PHONE LINK OVERRIDE (CONTACT PAGE ONLY)
========================================================= */

.contact-page a[href^="tel:"] {
  color: #000 !important;
  text-decoration: none;
}

.contact-page a[href^="tel:"]:hover,
.contact-page a[href^="tel:"]:focus-visible {
  color: #000 !important;
  text-decoration: underline;
}

/* =========================================================
CONTACT LIST (only if used)
========================================================= */

.contact-page .contact-list li,
.contact-page .contact-list a {
  color: #282828;
  font-size: 18px;
}

/* =========================================================
FORMS (CONTACT PAGE ONLY)
Works for both your old “detailed” form and the new BASIC form.
========================================================= */

/* Base control styling */
.contact-page .contact-section .form-control,
.contact-page .contact-section .form-select {
  border: 1px solid #dadada;
  border-radius: 18px;
  min-height: 50px;
  padding-left: 16px;
  padding-right: 16px;
}

/* “Pill” inputs (inputs only; textarea/select keep normal radius) */
.contact-page .contact-section input.form-control {
  border-radius: 35px;
}

/* Focus */
.contact-page .contact-section .form-control:focus,
.contact-page .contact-section .form-select:focus {
  border-color: #f9a743;
  box-shadow: none;
}

/* Placeholder */
.contact-page .contact-section .form-control::placeholder {
  font-size: 0.85rem;
}

/* Textarea */
.contact-page .contact-section textarea.form-control {
  min-height: 150px;
  padding-top: 12px;
  border-radius: 18px;
  resize: vertical;
}

/* Checkboxes (only if present) */
.contact-page .contact-section .form-check {
  margin-bottom: 0;
}

.contact-page .contact-section .form-check-input {
  border-color: #cfcfcf;
}

.contact-page .contact-section .form-check-input:focus {
  box-shadow: none;
  border-color: #f9a743;
}

/* Labels */
.contact-page .contact-section .form-label {
  font-weight: 600;
  color: #222;
}

/* Validation feedback spacing */
.contact-page .contact-section .invalid-feedback {
  margin-top: 0.25rem;
}

/* Optional: make the form “card” feel nicer without touching global Bootstrap cards */
.contact-page .contact-section form {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 18px;
}
