/* ================= SHARED VARS =================
   Mirrors the palette declared in index.html's inline <style> :root block.
   Duplicated intentionally: this file is loaded standalone on blog pages too,
   which don't include index.html's inline styles. Keep these in sync if the
   palette ever changes. */
:root {
  --jc-primary: #6b9e8e;
  --jc-primary-dark: #5a8a7a;
  --jc-primary-light: #e8f2ee;
  --jc-accent: #c4a265;
  --jc-text-dark: #2d3b36;
  --jc-text-medium: #556b63;
  --jc-text-light: #7a8f87;
  --jc-white: #ffffff;
  --jc-error: #b3493f;
  --jc-font-display: "Playfair Display", Georgia, serif;
  --jc-font-body: "Inter", "Segoe UI", sans-serif;
}

/* ================= COOKIE CONSENT BANNER ================= */
.jc-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--jc-text-dark);
  color: rgba(255, 255, 255, 0.92);
  padding: 18px 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--jc-font-body);
  font-size: 0.85rem;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
}

.jc-consent-banner p {
  margin: 0;
  max-width: 700px;
  line-height: 1.6;
}

.jc-consent-banner a {
  color: var(--jc-accent);
  text-decoration: underline;
}

.jc-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.jc-consent-banner .btn {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.jc-consent-banner .btn-outline {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.jc-consent-banner .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--jc-white);
}

@media (max-width: 600px) {
  .jc-consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .jc-consent-actions {
    justify-content: center;
  }
}

/* Smooth in-page scrolling for CTAs that anchor to the form. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ================= AGENDAMENTO (CONTACT FORM) ================= */
.agendamento {
  background-color: var(--jc-primary-light);
  text-align: center;
  /* Keep the heading clear of the sticky header on anchor jumps. */
  scroll-margin-top: 80px;
}

.agendamento h2 {
  font-family: var(--jc-font-display);
  font-size: 2rem;
  color: var(--jc-text-dark);
  margin-bottom: 10px;
}

.agendamento .accent-line {
  width: 60px;
  height: 3px;
  background: var(--jc-accent);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.agendamento .agendamento-intro {
  max-width: 650px;
  margin: 0 auto 35px auto;
  color: var(--jc-text-medium);
  font-weight: 300;
  font-size: 1rem;
}

.agendamento-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
  background: var(--jc-white);
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(107, 158, 142, 0.1);
}

.agendamento-form .jc-field {
  margin-bottom: 20px;
}

.agendamento-form .jc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.agendamento-form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--jc-text-dark);
  margin-bottom: 6px;
}

.agendamento-form input[type="text"],
.agendamento-form select,
.agendamento-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(107, 158, 142, 0.3);
  border-radius: 10px;
  font-family: var(--jc-font-body);
  font-size: 0.95rem;
  color: var(--jc-text-dark);
  background: var(--jc-white);
}

.agendamento-form input[type="text"]:focus,
.agendamento-form select:focus,
.agendamento-form textarea:focus {
  outline: 2px solid var(--jc-primary);
  outline-offset: 1px;
}

.agendamento-form textarea {
  resize: vertical;
  min-height: 80px;
}

.agendamento-form .jc-field-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.agendamento-form .jc-field-consent input {
  margin-top: 4px;
}

.agendamento-form .jc-field-consent label {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--jc-text-medium);
  margin-bottom: 0;
}

.agendamento-form button[type="submit"] {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.jc-field-error {
  color: var(--jc-error);
  font-size: 0.8rem;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .agendamento-form {
    padding: 24px 20px;
  }
  .agendamento-form .jc-field-row {
    grid-template-columns: 1fr;
  }
}
