/* ==========================================================================
   Homeo Care Clinic — Footer Stylesheet
   Covers: appointment form section, FAQ accordion, branch grid, footer bottom
   Depends on the color tokens (--color-primary etc.) defined in style.css —
   load style.css before this file.
   ========================================================================== */

/* ---------- Appointment form ---------- */
.appointment {
  background: var(--color-bg-alt);
  padding: 3rem 1.25rem;
}

.appointment__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.appointment__inner h2 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.appointment__inner > p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.appointment-form {
  text-align: left;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
}

.appointment-form .form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.appointment-form label {
  display: block;
  flex: 1 1 200px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.appointment-form label.label-hidden {
  /* "Last" name field — layout partner to "First", label kept for
       accessibility but visually de-emphasized to match the two-part
       Name row on the live site */
  font-weight: 400;
}

.appointment-form input[type="text"],
.appointment-form input[type="tel"],
.appointment-form input[type="email"],
.appointment-form textarea {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65em 0.75em;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-alt);
}

.appointment-form input:focus,
.appointment-form textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  background: #fff;
}

.appointment-form .field-error {
  border-color: #c0392b;
  outline: 2px solid #c0392b;
  outline-offset: 1px;
}

.appointment-form .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 400;
  font-size: 0.85rem;
}

.appointment-form .captcha-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.appointment-form .btn {
  width: 100%;
  text-align: center;
  border: none;
}

/* ---------- FAQ accordion ---------- */
.faq {
  padding: 3rem 1.25rem;
}

.faq__inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq__inner h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.accordion__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  position: relative;
  padding-right: 2.5rem;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

/* Custom +/- indicator, driven by [open] state — no JS needed for the
   toggle itself, but main-footer.js updates icon state for older browsers
   that don't restyle ::after based on the [open] attribute reliably. */
.accordion__item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-primary);
}

.accordion__item[open] summary::after {
  content: "\2212"; /* minus sign */
}

.accordion__item[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item p {
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ---------- Site footer / branches ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: #fff;
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.branch h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #fff;
}

.branch p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.5rem;
}

.branch a {
  color: rgba(255, 255, 255, 0.9);
}

.branch a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social-links a {
  font-size: 0.8rem;
  padding: 0.3em 0.7em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 1rem 1.25rem;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .appointment-form .form-row {
    flex-direction: column;
    gap: 0;
  }
}
