/* Contact page: compact hero, secure CRM inquiry form, and a sidebar of
   contact options. Layout follows the aliratherapy.com contact page.
   Every rule is scoped to .tim-contact so the Divi theme is untouched. */
.tim-contact {
  --tc-navy: #073f7c;
  --tc-blue: #0b4f98;
  --tc-link: #0a5aaf;
  --tc-sky: #b3dfff;
  --tc-ink: #152233;
  --tc-body: #46546a;
  --tc-paper: #f8fbff;
  --tc-orange: #e98c00;
  --tc-orange-dark: #c45500;
  --tc-sun-soft: #fbeecb;
  --tc-shadow-sm: 0 4px 14px rgba(7, 63, 124, 0.07);
  --tc-shadow-md: 0 12px 32px rgba(7, 63, 124, 0.1);
  --tc-ease: cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--tc-paper);
  color: var(--tc-body);
  font-size: 17px;
  line-height: 1.65;
}
.tim-contact *,
.tim-contact *::before,
.tim-contact *::after { box-sizing: border-box; }
.tim-contact h1,
.tim-contact h2,
.tim-contact p,
.tim-contact ul { margin: 0; padding: 0; }
.tim-contact a { color: var(--tc-link); text-decoration: none; }
.tim-contact a:hover { color: var(--tc-blue); }
.tim-contact-container {
  width: min(72rem, calc(100% - 3rem));
  margin-inline: auto;
}

/* Hero */
.tim-contact-hero {
  background:
    radial-gradient(38rem 24rem at 85% -10%, rgba(120, 190, 255, 0.24), transparent 60%),
    linear-gradient(180deg, #e1edfa, var(--tc-paper));
  padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
}
.tim-contact-hero h1 {
  color: var(--tc-ink);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  padding: 0;
}
.tim-contact-lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  max-width: 38rem;
  margin: 0.75rem auto 0 !important;
}
.tim-contact-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  list-style: none !important;
  margin: 1.25rem 0 0 !important;
  padding: 0 !important;
}
.tim-contact-quick li { list-style: none; padding: 0; margin: 0; }
.tim-contact .tim-contact-quick a {
  background: #fff;
  border: 1px solid rgba(7, 63, 124, 0.14);
  border-radius: 999px;
  color: var(--tc-ink);
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s, border-color 0.2s;
}
.tim-contact .tim-contact-quick a:hover {
  background: #bfe0ff;
  border-color: #bfe0ff;
  color: var(--tc-navy);
}

/* Form and sidebar */
.tim-contact-section {
  padding: clamp(1rem, 2.5vw, 1.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.tim-contact-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.tim-contact-form {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: var(--tc-shadow-md);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
/* Starting height only: iframe-resizer sets the real height inline. */
.tim-contact-form iframe[data-crm-form] { height: 52rem; }
.tim-contact-form [data-crm-form-fallback] {
  text-align: center;
  padding: 1.25rem 1rem 0.5rem;
}
.tim-contact-form [data-crm-form-fallback] a { font-weight: 700; }

.tim-contact-aside h2 {
  color: var(--tc-ink);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  padding: 0;
}
.tim-contact-aside p { font-size: 0.95rem; padding: 0; }
.tim-contact-aside p + p { margin-top: 0.75rem; }
.tim-contact-block {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: var(--tc-shadow-sm);
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
}
.tim-contact-block--feature {
  background: var(--tc-blue);
  color: rgba(255, 255, 255, 0.85);
}
.tim-contact-block--feature h2 { color: #fff; }
.tim-contact-block--feature p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1rem; }
.tim-contact .tim-contact-block--feature .tim-contact-direct { font-size: 0.9rem; margin: 1rem 0 0; }
.tim-contact .tim-contact-block--feature .tim-contact-direct a { color: var(--tc-sky); font-weight: 700; }
.tim-contact-person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.tim-contact-person img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6);
}
.tim-contact-person span { font-size: 0.85rem; line-height: 1.4; color: rgba(255, 255, 255, 0.75); }
.tim-contact .tim-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  background: var(--tc-orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s var(--tc-ease), background-color 0.2s ease;
}
.tim-contact .tim-contact-btn:hover {
  background: var(--tc-orange-dark);
  color: #fff;
  transform: translateY(-2px);
}
.tim-contact-crisis {
  background: var(--tc-sun-soft);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.1rem;
}
.tim-contact-crisis h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.tim-contact-crisis p { font-size: 0.93rem; }
.tim-contact .tim-contact-crisis a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 60rem) {
  .tim-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .tim-contact-container { width: calc(100% - 2rem); }
  .tim-contact-quick { gap: 0.4rem; }
  .tim-contact .tim-contact-quick a { font-size: 0.85rem; padding: 0.45rem 0.8rem; }
  .tim-contact-form { padding: 0.5rem; border-radius: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tim-contact .tim-contact-btn { transition: none; }
  .tim-contact .tim-contact-btn:hover { transform: none; }
}
