/* Jorge Balbino Advogados — Tailwind CDN Companion */

html { scroll-behavior: smooth; }

h1, h2, h3, h4, .serif {
  font-family: 'Cormorant Garamond', serif;
}

/* ── SiteCraft Form Embed Overrides ──────────────────────── */
/* Override the dark zinc theme to match the light legal aesthetic */
/* Using double class + !important to beat Tailwind CDN specificity */

.jb-form [data-sitecraft-form] form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

/* Labels */
.jb-form [data-sitecraft-form] label > span {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  color: #1e293b !important;
}

/* Checkbox label */
.jb-form [data-sitecraft-form] label.flex {
  color: #475569 !important;
  font-size: 0.875rem !important;
}

/* All form controls — override bg-zinc-950, border-zinc-700, text-zinc-100, rounded-lg */
.jb-form input.rounded-lg,
.jb-form textarea.rounded-lg,
.jb-form select.rounded-lg,
.jb-form [data-sitecraft-form] input:not([type="checkbox"]):not([type="file"]),
.jb-form [data-sitecraft-form] textarea,
.jb-form [data-sitecraft-form] select {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  color: #1e293b !important;
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  transition: border-color 0.2s !important;
}

.jb-form [data-sitecraft-form] input:focus,
.jb-form [data-sitecraft-form] textarea:focus,
.jb-form [data-sitecraft-form] select:focus {
  outline: none !important;
  border-color: #c1a35f !important;
  box-shadow: none !important;
}

/* Placeholder */
.jb-form [data-sitecraft-form] input::placeholder,
.jb-form [data-sitecraft-form] textarea::placeholder {
  color: #94a3b8 !important;
}

/* Submit button — override bg-indigo-600, rounded-lg */
.jb-form [data-sitecraft-form] button[type="submit"],
.jb-form button.rounded-lg {
  width: 100% !important;
  background-color: #003049 !important;
  background: #003049 !important;
  color: #ffffff !important;
  padding: 1rem 2rem !important;
  border-radius: 0 !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  transition: background 0.2s !important;
}

.jb-form [data-sitecraft-form] button[type="submit"]:hover,
.jb-form button.rounded-lg:hover {
  background: #1e293b !important;
}

/* Messages */
.jb-form [data-sitecraft-form] .js-msg {
  font-size: 0.875rem !important;
}

.jb-form .text-emerald-300 { color: #047857 !important; }
.jb-form .text-red-300 { color: #dc2626 !important; }
.jb-form .text-zinc-400 { color: #64748b !important; }

/* File input */
.jb-form [data-sitecraft-form] input[type="file"] {
  color: #475569 !important;
}

/* Checkbox accent */
.jb-form [data-sitecraft-form] input[type="checkbox"] {
  accent-color: #003049 !important;
}

/* Loading text */
.jb-form [data-sitecraft-form] > p {
  color: #64748b !important;
}

/* Override any remaining zinc backgrounds inside the form */
.jb-form .bg-zinc-950,
.jb-form .bg-zinc-800,
.jb-form .bg-zinc-700 {
  background: #ffffff !important;
}

.jb-form .border-zinc-700,
.jb-form .border-zinc-600 {
  border-color: #e2e8f0 !important;
}

.jb-form .text-zinc-100,
.jb-form .text-zinc-300 {
  color: #1e293b !important;
}

.jb-form .text-zinc-500,
.jb-form .text-zinc-600 {
  color: #64748b !important;
}

/* Print */
@media print {
  nav, footer { display: none !important; }
}