/* ==========================================================================
   Contact page and the page shown after a form is sent.
   Loaded alongside theme.css and service.css, which supply the hero panel,
   the buttons and the hours rows reused here.
   ========================================================================== */

.ct-main { padding-top: 56px; }

/* ---------------- form ---------------- */
.ct-form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 32px;
}
@media (max-width: 575.98px) { .ct-form-card { padding: 26px 20px; } }

.ct-form-card h2 {
  font-family: var(--display); font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 .5rem;
}
.ct-note { font-size: .84rem; color: var(--body); margin-bottom: 1.6rem; }

.ct-field { margin-bottom: 1.1rem; }
.ct-field label {
  display: block; font-family: var(--display); font-size: .82rem;
  font-weight: 600; color: var(--ink); margin-bottom: .4rem;
}
.ct-field label span { color: var(--brand); }
.ct-field input, .ct-field textarea {
  width: 100%; font-family: var(--text); font-size: .92rem; color: var(--ink);
  background: var(--brand-soft); border: 1.5px solid transparent;
  border-radius: var(--r-md); padding: .8rem 1rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-field input:focus, .ct-field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand);
}
.ct-field input[aria-invalid="true"] { border-color: #c0392b; background: #fdf3f2; }

.ct-error { display: block; font-size: .78rem; color: #c0392b; margin-top: .35rem; }
.ct-error-top {
  background: #fdf3f2; border: 1px solid #f0c8c3; border-radius: var(--r-md);
  padding: .8rem 1rem; font-size: .85rem; color: #c0392b; margin-bottom: 1.2rem;
}

/* The honeypot must stay in the page for a bot to find, and out of sight and
   out of the tab order for everyone else. */
.ct-trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* ---------------- details beside it ---------------- */
.ct-side { display: grid; gap: 1rem; align-content: start; }

.ct-info, .ct-hours {
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--r-lg); padding: 26px 24px;
}
.ct-info h2, .ct-hours h2 {
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand-dk);
  margin: 0 0 1rem;
}
.ct-address {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .88rem; line-height: 1.7; margin-bottom: 1.1rem;
}
.ct-address i { color: var(--brand); margin-top: .25rem; }

.ct-links { display: grid; gap: .5rem; }
.ct-links a {
  display: flex; align-items: center; gap: .6rem;
  background: #fff; border-radius: 40px; padding: .6rem 1rem;
  font-size: .86rem; color: var(--ink-2);
}
.ct-links a i { color: var(--brand); width: 1rem; }
.ct-links a:hover { color: var(--brand-dk); }

/* Styled here rather than borrowed from the home page, which does not load
   its stylesheet on this page. */
.ct-hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--brand-line); font-size: .85rem;
}
.ct-hours-row:last-of-type { border-bottom: 0; }
.ct-hours-row span:first-child { font-family: var(--display); font-weight: 600; color: var(--ink); }
.ct-hours-row.closed span { color: var(--brand-dk); }
.ct-hours .ct-note { margin: .9rem 0 0; font-style: italic; }

/* ---------------- map ---------------- */
.ct-map { margin-top: 1rem; }
.ct-map iframe {
  display: block; width: 100%; height: 420px; border: 0;
  filter: grayscale(.2);
}
@media (max-width: 767.98px) { .ct-map iframe { height: 320px; } }

/* ---------------- after sending ---------------- */
.ty-page { padding-top: 70px; }
.ty-card {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: var(--r-xl); padding: 54px 40px;
}
@media (max-width: 575.98px) { .ty-card { padding: 36px 22px; } }
.ty-tick {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 1.5rem; margin: 0 auto 1.4rem;
}
.ty-card h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.ty-card p { font-size: .95rem; margin-bottom: 1.8rem; }
.ty-actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
