/* =========================================================
   Contact page — redesigned, web-friendly form
   Dark-first, with [data-theme="light"] overrides.
   Namespaced .ct-* so it doesn't collide with style.css.
   ========================================================= */

.ct-main {
  --ct-fg: #fff;
  --ct-muted: rgba(255, 255, 255, 0.62);
  --ct-faint: rgba(255, 255, 255, 0.4);
  --ct-line: rgba(255, 255, 255, 0.14);
  --ct-field-bg: rgba(255, 255, 255, 0.04);
  --ct-field-bg-focus: rgba(255, 255, 255, 0.07);
  --ct-card-bg: rgba(255, 255, 255, 0.03);
  --ct-accent: #22c55e;
  --ct-accent-tint: rgba(34, 197, 94, 0.14);
  --ct-ring: rgba(34, 197, 94, 0.25);

  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
  color: var(--ct-fg);
  font-family: 'Inter', system-ui, sans-serif;
}

[data-theme="light"] .ct-main {
  --ct-fg: #111;
  --ct-muted: rgba(0, 0, 0, 0.6);
  --ct-faint: rgba(0, 0, 0, 0.42);
  --ct-line: rgba(0, 0, 0, 0.12);
  --ct-field-bg: #fff;
  --ct-field-bg-focus: #fff;
  --ct-card-bg: rgba(0, 0, 0, 0.015);
  --ct-accent: #15803d;
  --ct-accent-tint: rgba(21, 128, 61, 0.1);
  --ct-ring: rgba(21, 128, 61, 0.22);
}

.ct-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.5rem;
  align-items: start;
}

/* ---------- Left: intro ---------- */
.ct-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-faint);
  margin: 0 0 1.25rem 0;
}

.ct-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem 0;
}

.ct-lead {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ct-muted);
  max-width: 40ch;
  margin: 0 0 2.25rem 0;
}

.ct-email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ct-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--ct-line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.ct-email:hover { border-color: var(--ct-accent); }

.ct-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0 0 0;
}
.ct-social {
  font-size: 0.85rem;
  color: var(--ct-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--ct-line);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
}
.ct-social:hover { color: var(--ct-fg); border-color: var(--ct-faint); }

.ct-availability {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--ct-muted);
  margin: 2rem 0 0 0;
}
.ct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ct-accent);
  box-shadow: 0 0 0 4px var(--ct-accent-tint);
  flex: 0 0 auto;
}

/* ---------- Right: form card ---------- */
.ct-form-card {
  background: var(--ct-card-bg);
  border: 1px solid var(--ct-line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.ct-field > label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ct-fg);
}

.ct-req { color: var(--ct-accent); }
.ct-hint { color: var(--ct-faint); font-weight: 400; }

.ct-field input,
.ct-field textarea,
.ct-select select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ct-fg);
  background: var(--ct-field-bg);
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.ct-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--ct-faint); }

.ct-field input:focus,
.ct-field textarea:focus,
.ct-select select:focus {
  border-color: var(--ct-accent);
  background: var(--ct-field-bg-focus);
  box-shadow: 0 0 0 3px var(--ct-ring);
}

/* Native select with custom chevron */
.ct-select { position: relative; }
.ct-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
}
.ct-select select:required:invalid { color: var(--ct-faint); }
.ct-select option { color: #111; }
.ct-select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--ct-faint);
  border-bottom: 2px solid var(--ct-faint);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Service pills (styled checkboxes, no JS) */
.ct-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ct-pill { position: relative; margin: 0; }
.ct-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ct-pill span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  color: var(--ct-muted);
  border: 1px solid var(--ct-line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.ct-pill:hover span { color: var(--ct-fg); border-color: var(--ct-faint); }
.ct-pill input:checked + span {
  color: var(--ct-fg);
  border-color: var(--ct-accent);
  background: var(--ct-accent-tint);
}
.ct-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--ct-ring); }

/* Submit */
.ct-submit {
  align-self: flex-start;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: #000;
  background: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}
.ct-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.ct-submit:disabled { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
[data-theme="light"] .ct-submit { color: #fff; background: #111; }

.ct-formnote {
  font-size: 0.82rem;
  color: var(--ct-faint);
  margin: 0.25rem 0 0 0;
}
.ct-formnote a { color: var(--ct-muted); }

/* Honeypot — off-screen, not display:none so bots still fill it */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Responsive ---------- */
@media (min-width: 881px) {
  .ct-intro { position: sticky; top: 6rem; }
}

@media (max-width: 880px) {
  .ct-main { padding: 4rem 1.25rem 4rem; }
  .ct-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 540px) {
  .ct-row { grid-template-columns: 1fr; }
  .ct-submit { width: 100%; }
}

/* =========================================================
   Thank-you / confirmation page
   ========================================================= */
.ty-main {
  --ct-fg: #fff;
  --ct-muted: rgba(255, 255, 255, 0.62);
  --ct-faint: rgba(255, 255, 255, 0.4);
  --ct-line: rgba(255, 255, 255, 0.14);
  --ct-card-bg: rgba(255, 255, 255, 0.03);
  --ct-accent: #22c55e;
  --ct-accent-tint: rgba(34, 197, 94, 0.14);

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68vh;
  padding: 5rem 1.5rem;
  color: var(--ct-fg);
  font-family: 'Inter', system-ui, sans-serif;
  text-align: center;
}

[data-theme="light"] .ty-main {
  --ct-fg: #111;
  --ct-muted: rgba(0, 0, 0, 0.6);
  --ct-faint: rgba(0, 0, 0, 0.42);
  --ct-line: rgba(0, 0, 0, 0.12);
  --ct-card-bg: rgba(0, 0, 0, 0.015);
  --ct-accent: #15803d;
  --ct-accent-tint: rgba(21, 128, 61, 0.1);
}

.ty-card {
  max-width: 540px;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.25rem);
  background: var(--ct-card-bg);
  border: 1px solid var(--ct-line);
  border-radius: 20px;
  animation: ty-in 0.5s ease both;
}

@keyframes ty-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.ty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ct-accent-tint);
  color: var(--ct-accent);
}
.ty-icon svg { width: 30px; height: 30px; }

.ty-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ct-faint);
  margin: 0 0 0.75rem 0;
}

.ty-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

.ty-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ct-muted);
  max-width: 42ch;
  margin: 0 auto 2rem auto;
}

.ty-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ty-btn,
.ty-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.ty-btn {
  color: #000;
  background: #fff;
  border: 1px solid #fff;
}
.ty-btn:hover { transform: translateY(-1px); }
.ty-btn-ghost {
  color: var(--ct-fg);
  background: transparent;
  border: 1px solid var(--ct-line);
}
.ty-btn-ghost:hover { border-color: var(--ct-faint); }
[data-theme="light"] .ty-btn { color: #fff; background: #111; border-color: #111; }

@media (max-width: 480px) {
  .ty-actions { flex-direction: column; }
  .ty-btn, .ty-btn-ghost { width: 100%; }
}
