/* Contact - j2delectricco.help / j2d47 / split-left + compact phone */

.j2d47-ct-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: clip;
}

.j2d47-ct-page h1,
.j2d47-ct-page h2 {
  margin: 0;
  text-wrap: balance;
}

.j2d47-ct-page p {
  margin: 0;
  text-wrap: pretty;
}

.j2d47-ct-kicker {
  margin: 0;
  color: var(--j2d47-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.j2d47-ct-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--j2d47-line);
  color: var(--j2d47-ink);
  font: 700 0.8rem/1 "Chivo", sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.j2d47-ct-ghost:hover {
  border-color: var(--j2d47-accent);
  color: var(--j2d47-accent);
}

.j2d47-ct-intro {
  padding: clamp(2rem, 5vw, 3.4rem) 0 clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--j2d47-line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--j2d47-accent) 14%, transparent) 0%, transparent 55%),
    var(--j2d47-surface);
}

.j2d47-ct-intro-inner {
  display: grid;
  gap: 0.8rem;
  max-width: 38rem;
  justify-items: start;
  text-align: left;
}

.j2d47-ct-intro-inner > * { margin: 0; }

.j2d47-ct-intro h1 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.15;
  max-width: 14ch;
}

.j2d47-ct-lead {
  color: var(--j2d47-muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

.j2d47-ct-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  align-items: center;
}

/* split-left: contacts left, compact booking right */
.j2d47-ct-band {
  padding: clamp(1.8rem, 4.5vw, 3.2rem) 0 clamp(2.4rem, 5.5vw, 4rem);
}

.j2d47-ct-page [data-contact-root] {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  align-items: start;
}

.j2d47-ct-info {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  text-align: left;
}

.j2d47-ct-info > * { margin: 0; }

.j2d47-ct-info h2 {
  font-size: clamp(1.28rem, 2.4vw, 1.7rem);
  max-width: 18ch;
}

.j2d47-ct-info-lead {
  color: var(--j2d47-muted);
  font-size: 0.96rem;
  max-width: 40ch;
}

.j2d47-ct-facts {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.j2d47-ct-facts li {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.22rem;
  align-content: start;
  margin: 0;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-left: 2px solid var(--j2d47-accent);
  background: color-mix(in srgb, var(--j2d47-surface) 88%, var(--j2d47-bg));
  text-align: left;
}

.j2d47-ct-lbl {
  color: var(--j2d47-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.j2d47-ct-val {
  color: var(--j2d47-ink);
  font-size: 0.96rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.j2d47-ct-val a {
  color: var(--j2d47-ink);
  font-weight: 650;
  text-decoration: none;
}

.j2d47-ct-val a:hover { color: var(--j2d47-accent-2); }

/* Compact one-field callback */
.j2d47-ct-book {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.55rem);
  border: 1px solid var(--j2d47-line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--j2d47-accent) 10%, var(--j2d47-surface)), var(--j2d47-surface));
  text-align: left;
}

.j2d47-ct-form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.j2d47-ct-form > * { margin: 0; }

.j2d47-ct-book h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  max-width: 16ch;
}

.j2d47-ct-book-lead {
  color: var(--j2d47-muted);
  font-size: 0.92rem;
  max-width: 38ch;
}

.j2d47-ct-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
}

.j2d47-ct-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.j2d47-ct-field label {
  color: var(--j2d47-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.j2d47-ct-form input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--j2d47-line);
  background: var(--j2d47-bg);
  color: var(--j2d47-ink);
  font: 1rem/1.3 "Inter", sans-serif;
}

.j2d47-ct-form input[type="tel"]::placeholder {
  color: color-mix(in srgb, var(--j2d47-muted) 72%, transparent);
}

.j2d47-ct-form input[type="tel"]:focus {
  outline: 3px solid color-mix(in srgb, var(--j2d47-accent) 35%, transparent);
  outline-offset: 1px;
  border-color: var(--j2d47-accent);
}

.j2d47-ct-form input[type="tel"].is-invalid,
.j2d47-ct-form input[type="tel"][aria-invalid="true"] {
  border-color: #c98a7a;
}

.j2d47-ct-form .j2d47-cta {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  justify-self: start;
}

.j2d47-ct-msg {
  font-weight: 650;
  font-size: 0.95rem;
}

.j2d47-ct-msg.is-err { color: #e8b4a0; }
.j2d47-ct-msg.is-ok { color: var(--j2d47-accent-2); }
.j2d47-ct-msg[hidden] { display: none; }

.j2d47-ct-form.is-done .j2d47-ct-compact {
  display: none;
}

.j2d47-ct-book--done {
  align-content: start;
}

@media (max-width: 960px) {
  .j2d47-ct-page [data-contact-root] {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .j2d47-ct-acts {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .j2d47-ct-acts .j2d47-cta,
  .j2d47-ct-acts .j2d47-ct-ghost {
    width: 100%;
    justify-content: center;
  }

  .j2d47-ct-compact {
    grid-template-columns: 1fr;
  }

  .j2d47-ct-form .j2d47-cta {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 390px) {
  .j2d47-ct-intro h1 {
    font-size: clamp(1.5rem, 8vw, 1.9rem);
  }

  .j2d47-ct-facts li {
    padding: 0.75rem 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .j2d47-ct-page * {
    transition: none !important;
  }
}
