/*
 * Contact block — replica of the client's kosh-media-contact.html (includes/contact-block.php),
 * on /contact/ and at the end of every page. Scoped to .kc so the site's global styles don't leak in.
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

/* ══════════ CONTACT — replica of kosh-media-contact.html ══════════ */
.kc {
  --kc-ink: #171513;
  --kc-muted: #65615d;
  --kc-line: #e9e2d9;
  --kc-gold: var(--color-secondary);  /* accent: the site maroon */
  --kc-gold-light: var(--color-secondary-soft);
  --kc-shadow: 0 18px 55px rgba(54, 42, 28, .08);
  color: var(--kc-ink);
  background:
    radial-gradient(ellipse at 13% 30%, rgba(255,255,255,.96), transparent 48%),
    linear-gradient(135deg, #fbf9f5 0%, #f5f0e9 100%);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}
.kc *, .kc *::before, .kc *::after { box-sizing: border-box; }
.kc a { color: inherit; text-decoration: none; }
.kc p { font-family: inherit; }

.kc-page {
  width: min(1370px, 100%);
  margin: 0 auto;
  padding: 48px clamp(24px, 5.5vw, 84px) 70px;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(540px, 1.18fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 80px);
}

.kc .kc-eyebrow {
  margin: 0 0 24px;
  color: var(--kc-gold);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.kc .kc-title {
  margin: 0;
  max-width: 560px;
  font: 500 clamp(54px, 5.6vw, 84px)/.99 "Playfair Display", Georgia, serif;
  letter-spacing: -2.8px;
  color: var(--kc-ink);
}
.kc .kc-title em { color: var(--kc-gold); font-weight: 500; font-style: italic; }
.kc-accent-line {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  margin: 25px 0 23px;
  background: var(--kc-gold);
}
.kc .kc-intro-copy {
  max-width: 450px;
  margin: 0;
  color: #4f4b47;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.kc-contact-grid {
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.kc-contact-item {
  min-width: 0;
  display: flex;
  gap: 13px;
  align-items: center;
}
.kc-contact-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--kc-gold-light);
  color: var(--kc-gold);
}
.kc-contact-icon svg { width: 22px; height: 22px; }
.kc-contact-label {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 2px;
  color: var(--kc-ink);
}
.kc-contact-value {
  display: block;
  color: #34302c;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.kc-map-art {
  position: relative;
  height: 270px;
  margin: 28px -60px 0;
  overflow: hidden;
  opacity: .85;
  background-image: radial-gradient(#d9cbbb 1.35px, transparent 1.5px);
  background-size: 7px 7px;
  mask-image: radial-gradient(ellipse at center, black 32%, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 32%, transparent 74%);
}
.kc-map-art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.kc-map-art svg path { vector-effect: non-scaling-stroke; }
.kc-map-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--kc-gold);
}
.kc-map-dot--hub {
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #171513;
  border: 2px solid #fff;
}
.kc-map-label {
  position: absolute;
  left: 61%;
  top: 52%;
  padding: 9px 14px;
  background: #FFF8F7;
  color: var(--kc-gold);
  border: 1px solid #F3D9D6;
  border-radius: 25px;
  font-size: 12px;
  line-height: 1.3;
  box-shadow: 0 4px 18px rgba(111, 0, 0, .14);
}

.kc-form-card {
  padding: clamp(28px, 3.2vw, 46px);
  background: rgba(255,255,255,.91);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 18px;
  box-shadow: var(--kc-shadow);
}
.kc-form-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.kc .kc-form-topline .kc-eyebrow { margin: 0; font-size: 10px; }
.kc-response-pill {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 30px;
  background: #f5f3ef;
  padding: 9px 13px;
  color: #34302c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}
.kc-response-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #36c96c;
  box-shadow: 0 0 0 4px #dff7e7;
}
.kc .kc-form-title {
  margin: 0 0 9px;
  font: 500 clamp(30px, 3.1vw, 45px)/1.15 "Playfair Display", Georgia, serif;
  letter-spacing: -1px;
  color: var(--kc-ink);
}
.kc .kc-form-title em { font-weight: 500; font-style: italic; color: inherit; }
.kc .kc-form-intro {
  margin: 0 0 30px;
  color: var(--kc-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}
.kc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 27px;
}
.kc-field { min-width: 0; }
.kc-field.kc-full { grid-column: 1 / -1; }
.kc-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  color: var(--kc-ink);
}
.kc-required { color: var(--kc-gold); }
.kc input, .kc select, .kc textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 13px 17px;
  border: 1px solid #dcdad7;
  border-radius: 5px;
  background: #fff;
  color: #292622;
  font: 14px "DM Sans", sans-serif;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.kc input::placeholder, .kc textarea::placeholder { color: #99999e; opacity: 1; }
.kc input:focus, .kc select:focus, .kc textarea:focus {
  border-color: var(--kc-gold);
  box-shadow: 0 0 0 3px rgba(111, 0, 0, .12);
}
.kc select { color: #45413d; cursor: pointer; }
.kc textarea { min-height: 112px; resize: vertical; line-height: 1.6; }
.kc-form-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.kc .kc-submit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #fff;
  background: #151311;
  border: 1px solid #151311;
  border-radius: var(--btn-radius);
  min-height: 48px;
  padding: 17px 25px;
  font: 600 12px "DM Sans", sans-serif;
  letter-spacing: 1.1px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.kc .kc-submit-btn:hover { background: #30271f; transform: translateY(-2px); }
.kc .kc-submit-btn:disabled { opacity: .6; pointer-events: none; }
.kc-privacy-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #77716b;
  font-size: 12px;
  line-height: 1.7;
}
.kc-privacy-note svg { width: 17px; height: 17px; flex: 0 0 auto; color: #a7a4a0; }

/* Sent state (contact.js adds .show) */
.kc-confirm { display: none; padding-top: 8px; }
.kc-confirm.show { display: block; }
.kc-form-card:has(.kc-confirm.show) > :is(.kc-form-title, .kc-form-intro) { display: none; }
.kc .kc-confirm .kc-form-title em { color: var(--kc-gold); }

@media (max-width: 1050px) {
  .kc-page { grid-template-columns: minmax(270px, .8fr) minmax(440px, 1.2fr); gap: 32px; }
  .kc .kc-title { font-size: clamp(52px, 6vw, 70px); }
  .kc-contact-grid { gap: 19px 12px; }
  .kc-contact-item { gap: 9px; }
  .kc-contact-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .kc-form-card { padding: 30px 25px; }
  .kc-response-pill { font-size: 10px; }
  .kc-map-art { margin: 24px -16px 0; }
}
@media (max-width: 800px) {
  .kc-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-top: 42px;
  }
  .kc .kc-title { max-width: 650px; font-size: clamp(54px, 10vw, 76px); }
  .kc .kc-intro-copy { max-width: 600px; }
  .kc-contact-grid { max-width: 600px; }
  .kc-map-art { max-width: 660px; margin: 24px -30px 0; }
  .kc-form-card { padding: clamp(24px, 5vw, 38px); }
}
@media (max-width: 520px) {
  .kc-page { padding: 34px 18px 42px; }
  .kc .kc-title { font-size: 53px; letter-spacing: -1.8px; }
  .kc .kc-intro-copy { font-size: 14px; }
  .kc-contact-grid { grid-template-columns: 1fr; gap: 17px; }
  .kc-contact-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .kc-map-art { height: 190px; margin: 16px -18px 0; }
  .kc-form-card { padding: 24px 18px; border-radius: 13px; }
  .kc-form-topline { align-items: flex-start; flex-direction: column; }
  .kc .kc-form-title { font-size: 33px; }
  .kc .kc-form-intro { font-size: 14px; margin-bottom: 24px; }
  .kc-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .kc-field.kc-full { grid-column: auto; }
  .kc-form-footer { align-items: flex-start; flex-direction: column; gap: 15px; }
  .kc .kc-submit-btn { width: 100%; }
}

/* At the end of other pages (includes/page-end.php): no full-screen height, a hairline on top */
.kc--end { border-top: 1px solid var(--kc-line); }
.kc--end .kc-page { min-height: 0; padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
