@charset "UTF-8";

/* Same fonts on every device. Computers that have Georgia/Arial installed keep
   using them; phones without them (e.g. Android) load Gelasio and Arimo, open
   fonts drawn to the same measurements, so the site looks like the desktop. */
@font-face{font-family:"Georgia";font-style:normal;font-weight:400;font-display:swap;src:local("Georgia"),url("fonts/gelasio-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Georgia";font-style:normal;font-weight:700;font-display:swap;src:local("Georgia Bold"),local("Georgia-Bold"),url("fonts/gelasio-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Arial";font-style:normal;font-weight:400;font-display:swap;src:local("Arial"),local("ArialMT"),url("fonts/arimo-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Arial";font-style:normal;font-weight:700;font-display:swap;src:local("Arial Bold"),local("Arial-BoldMT"),url("fonts/arimo-latin-700-normal.woff2") format("woff2")}

/* Page base */
html, body { margin: 0; padding: 0; background-color: #F1ECE1; }

/* Honeypot field: hidden from people, bots fill it in and Formspree drops the submission */
#case-intake .intake__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#case-intake { min-height: 100vh; }

#case-intake, #case-intake * { box-sizing: border-box; }

#case-intake {
  --ink: #17213A;
  --parchment: #F1ECE1;
  --card: #FBF9F4;
  --line: #D9CFBB;
  --brass: #AA8955;
  --brass-dark: #6E5423;
  --text: #23262B;
  --muted: #6B6558;
  --hot: #2E6B45;
  --hot-bg: #E4EFE6;
  --warm: #8A6413;
  --warm-bg: #F6ECD3;
  --cold: #8C2F2F;
  --cold-bg: #F3E2E0;

  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--parchment);
  padding: 64px 20px;
  color: var(--text);
}

#case-intake .intake__card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 48px clamp(24px, 5vw, 56px);
}

#case-intake .intake__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

/* Logo links home; keep it looking like a plain centered logo */
#case-intake .intake__home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

#case-intake .intake__logo {
  height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 520px) {
  #case-intake .intake__logo { height: 110px; }
}

#case-intake .intake__wordmark {
  display: none; /* shown automatically if the logo image fails to load */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.01em;
}
#case-intake .intake__wordmark span { color: var(--brass); font-weight: 500; }

#case-intake .intake__langbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}
#case-intake .intake__lang-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
}
#case-intake .intake__lang-btn.active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

#case-intake .intake__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass-dark);
  margin: 0 0 8px;
}

#case-intake .intake__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.2;
}

#case-intake .intake__sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 46ch;
}

#case-intake .row { margin-bottom: 22px; }
#case-intake .row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 520px) {
  #case-intake .row--split { grid-template-columns: 1fr; }
}

#case-intake .field { display: flex; flex-direction: column; }

#case-intake label,
#case-intake legend {
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}

#case-intake fieldset.field {
  border: none;
  padding: 0;
  margin: 0 0 22px;
}
#case-intake fieldset.field legend { padding: 0; margin-bottom: 10px; }

#case-intake input[type="text"],
#case-intake input[type="tel"],
#case-intake input[type="email"],
#case-intake select,
#case-intake textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 8px 2px 10px;
  outline: none;
  transition: border-color 0.15s ease;
  width: 100%;
}

#case-intake select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                     linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 8px) 14px, calc(100% - 3px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

#case-intake textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

#case-intake input:focus,
#case-intake select:focus,
#case-intake textarea:focus {
  border-bottom-color: var(--brass);
}

#case-intake .radios { display: flex; flex-direction: column; gap: 10px; }
#case-intake .radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; color: var(--text); font-weight: 400;
  cursor: pointer;
}
#case-intake .radio input { accent-color: var(--brass); width: 16px; height: 16px; }

#case-intake .intake__submit {
  margin-top: 12px;
  width: 100%;
  background: var(--ink);
  color: #F8F6EF;
  border: none;
  padding: 15px 20px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
#case-intake .intake__submit:hover { background: var(--brass-dark); }
#case-intake .intake__submit:disabled { opacity: 0.6; cursor: wait; }

#case-intake .intake__status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  padding: 0;
  display: none;
}
#case-intake .intake__status.show { display: block; }
#case-intake .intake__status.ok {
  color: var(--hot);
  background: var(--hot-bg);
  border-left: 3px solid var(--hot);
  padding: 12px 14px;
}
#case-intake .intake__status.err {
  color: var(--cold);
  background: var(--cold-bg);
  border-left: 3px solid var(--cold);
  padding: 12px 14px;
}

/* Office address under the form */
#case-intake .intake__address {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}
#case-intake .intake__address strong { color: var(--ink); font-weight: 600; }
#case-intake .intake__address a { color: var(--brass-dark); text-decoration: none; }
#case-intake .intake__address a:hover { text-decoration: underline; }

#case-intake .intake__disclaimer-btn {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 4px;
}
#case-intake .intake__disclaimer-btn:hover { color: var(--ink); }

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 58, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.disclaimer-overlay[hidden] { display: none; }

.disclaimer-modal {
  position: relative;
  background: #FBF9F4;
  border: 1px solid #D9CFBB;
  max-width: 620px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 40px clamp(20px, 4vw, 44px);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #23262B;
}

.disclaimer-modal h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: #17213A;
  margin: 0 0 20px;
}

.disclaimer-modal p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 16px;
  color: #3B3E45;
}
.disclaimer-modal p:last-child { margin-bottom: 0; }
.disclaimer-modal strong { color: #17213A; }
.disclaimer-modal a { color: #AA8955; }

.disclaimer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #6B6558;
  cursor: pointer;
}
.disclaimer-close:hover { color: #17213A; }

/* Desktop: heading area centered, form fields left-aligned for easy filling in. */
#case-intake .intake__eyebrow,
#case-intake .intake__title,
#case-intake .intake__sub { text-align: center; }
#case-intake .intake__sub { margin-left: auto; margin-right: auto; }
#case-intake .intake__langbar { justify-content: center; }

/* Phones: everything centered */
@media (max-width: 768px) {
  #case-intake .intake__card { text-align: center; }
  #case-intake .radios { align-items: center; }
  #case-intake .radio { justify-content: center; text-align: center; }
  #case-intake input, #case-intake select, #case-intake textarea { text-align: center; text-align-last: center; }
  #case-intake textarea { text-align: left; text-align-last: auto; }
}
