/* KJNR Contact page — FA + EN */

.kjnr-contact {
  --kc-red: #e30613;
  --kc-red-deep: #b81e1e;
  --kc-ink: #16163f;
  --kc-muted: #5b5b7a;
  --kc-line: rgba(22, 22, 63, 0.12);
  --kc-soft: #f3f4f8;
  --kc-panel: #ffffff;
  --kc-max: 1200px;
  --kc-radius: 18px;
  color: var(--kc-ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(227, 6, 19, 0.08), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(22, 22, 63, 0.06), transparent 50%),
    linear-gradient(180deg, #fafafb 0%, #f4f5f8 42%, #ffffff 100%);
  overflow: clip;
  width: 100%;
}

/* Break out of Hello Elementor .site-main max-width on contact pages */
body.page-id-768,
body.page-id-2749 {
  overflow-x: clip;
}
body.page-id-768 .site-main,
body.page-id-2749 .site-main {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.page-id-768 .page-content,
body.page-id-2749 .page-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
body.page-id-768 .site-main > .page-header,
body.page-id-2749 .site-main > .page-header {
  display: none !important;
}

html[lang="en-US"] .kjnr-contact {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  direction: ltr;
  text-align: left;
}
html:not([lang="en-US"]) .kjnr-contact {
  font-family: Abar, Vazirmatn, Tahoma, sans-serif;
  direction: rtl;
  text-align: right;
}

.kjnr-contact *,
.kjnr-contact *::before,
.kjnr-contact *::after {
  box-sizing: border-box;
}

.kjnr-contact__wrap {
  max-width: var(--kc-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  /* Physical L/R so RTL logical props cannot skew gutters */
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

/* ===== Hero ===== */
.kjnr-contact__hero {
  position: relative;
  padding: 56px 0 28px;
}
.kjnr-contact__hero::after {
  content: "";
  position: absolute;
  inset-inline-end: -80px;
  top: 10px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(227, 6, 19, 0.18);
  pointer-events: none;
  animation: kjnr-contact-orbit 18s linear infinite;
}
.kjnr-contact__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--kc-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kjnr-contact__brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kc-red);
  box-shadow: 0 0 0 6px rgba(227, 6, 19, 0.12);
}
.kjnr-contact__title {
  margin: 0 0 12px;
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--kc-ink);
}
html:not([lang="en-US"]) .kjnr-contact__title {
  max-width: min(42ch, 100%);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.3;
}
html[lang="en-US"] .kjnr-contact__title {
  max-width: 18ch;
}
.kjnr-contact__lead {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--kc-muted);
}
html:not([lang="en-US"]) .kjnr-contact__lead {
  max-width: min(62ch, 100%);
}
html[lang="en-US"] .kjnr-contact__lead {
  max-width: 52ch;
}

/* ===== Main grid ===== */
.kjnr-contact__main {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
  padding: 12px 0 48px;
}

.kjnr-contact__info {
  display: grid;
  gap: 14px;
}

.kjnr-contact__card {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px;
  border-radius: var(--kc-radius);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--kc-line);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: kjnr-contact-rise 0.7s ease both;
}
.kjnr-contact__card:nth-child(1) { animation-delay: 0.05s; }
.kjnr-contact__card:nth-child(2) { animation-delay: 0.12s; }
.kjnr-contact__card:nth-child(3) { animation-delay: 0.19s; }
.kjnr-contact__card:nth-child(4) { animation-delay: 0.26s; }
.kjnr-contact__card:nth-child(5) { animation-delay: 0.33s; }

a.kjnr-contact__card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: 0 16px 40px rgba(22, 22, 63, 0.08);
}

.kjnr-contact__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, rgba(227, 6, 19, 0.12), rgba(227, 6, 19, 0.04));
  color: var(--kc-red);
}
.kjnr-contact__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.kjnr-contact__card-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--kc-muted);
  letter-spacing: 0.02em;
}
.kjnr-contact__card-value {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--kc-ink);
}
.kjnr-contact__card-note {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--kc-muted);
  line-height: 1.55;
}

.kjnr-contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.kjnr-contact__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kc-line);
  background: #fff;
  color: var(--kc-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.kjnr-contact__social a:hover {
  background: var(--kc-red);
  border-color: var(--kc-red);
  color: #fff;
  transform: translateY(-2px);
}
.kjnr-contact__social svg {
  width: 16px;
  height: 16px;
}

/* ===== Form panel ===== */
.kjnr-contact__form-panel {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--kc-line);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(22, 22, 63, 0.08);
  animation: kjnr-contact-rise 0.8s ease 0.1s both;
  width: 100%;
  max-width: 100%;
}

.kjnr-contact__form-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--kc-red);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kjnr-contact__form-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.2;
}
.kjnr-contact__form-note {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--kc-muted);
  line-height: 1.6;
}

/* CF7 restyle */
.kjnr-contact .wpcf7 {
  margin: 0;
}
.kjnr-contact .wpcf7 form {
  display: grid;
  gap: 14px;
}
.kjnr-contact .wpcf7 form > p,
.kjnr-contact .wpcf7 form > div {
  margin: 0;
}
.kjnr-contact .wpcf7 label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--kc-ink);
}
.kjnr-contact .wpcf7 input[type="text"],
.kjnr-contact .wpcf7 input[type="email"],
.kjnr-contact .wpcf7 input[type="tel"],
.kjnr-contact .wpcf7 input[type="url"],
.kjnr-contact .wpcf7 textarea {
  width: 100%;
  border: 1px solid var(--kc-line);
  border-radius: 12px;
  background: #fbfbfc;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--kc-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.kjnr-contact .wpcf7 textarea {
  min-height: 128px;
  resize: vertical;
}
.kjnr-contact .wpcf7 input:focus,
.kjnr-contact .wpcf7 textarea:focus {
  border-color: rgba(227, 6, 19, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.1);
}
.kjnr-contact .wpcf7 input.wpcf7-submit,
.kjnr-contact .wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--kc-red) 0%, var(--kc-red-deep) 100%);
  color: #fff !important;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 12px 28px rgba(227, 6, 19, 0.28);
}
.kjnr-contact .wpcf7 input.wpcf7-submit:hover,
.kjnr-contact .wpcf7 .wpcf7-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.kjnr-contact .wpcf7-response-output {
  margin: 8px 0 0 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-weight: 700;
}
.kjnr-contact .g-recaptcha-wrap {
  display: block !important;
  width: 100% !important;
  margin: 0.35rem 0 1.5rem !important;
  padding: 0 !important;
  clear: both;
}
.kjnr-contact .wpcf7 form > p:has(.wpcf7-submit),
.kjnr-contact .wpcf7 form p:has(input.wpcf7-submit) {
  display: block !important;
  width: 100% !important;
  margin: 0.25rem 0 0 !important;
  clear: both;
}
.kjnr-contact .wpcf7 .wpcf7-form-control-wrap[data-name="aiowps-captcha"] {
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
}

/* ===== Map ===== */
.kjnr-contact__map {
  padding: 0 0 64px;
  animation: kjnr-contact-rise 0.8s ease 0.18s both;
}
.kjnr-contact__map-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--kc-line);
  background: #e9ebf1;
  box-shadow: 0 18px 50px rgba(22, 22, 63, 0.08);
  min-height: 340px;
}
.kjnr-contact__map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}
.kjnr-contact__map-badge {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: min(360px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--kc-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(22, 22, 63, 0.12);
}
.kjnr-contact__map-badge strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
}
.kjnr-contact__map-badge span {
  font-size: 13px;
  font-weight: 600;
  color: var(--kc-muted);
  line-height: 1.5;
}

@keyframes kjnr-contact-rise {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes kjnr-contact-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .kjnr-contact__main {
    grid-template-columns: 1fr;
    justify-items: stretch;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
  }
  .kjnr-contact__info,
  .kjnr-contact__form-panel,
  .kjnr-contact__card,
  .kjnr-contact__map {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .kjnr-contact__hero {
    padding-top: 40px;
    text-align: center;
  }
  .kjnr-contact__brand,
  .kjnr-contact__title,
  .kjnr-contact__lead {
    margin-left: auto;
    margin-right: auto;
    max-width: none;
  }
  .kjnr-contact__title {
    max-width: none;
  }
  .kjnr-contact__social {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .kjnr-contact__wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    box-sizing: border-box !important;
    overflow-x: clip;
  }
  .kjnr-contact__main,
  .kjnr-contact__info,
  .kjnr-contact__form-panel,
  .kjnr-contact__card,
  .kjnr-contact__map {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* prevent reCAPTCHA/content from expanding grid column */
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none;
    overflow-x: clip;
  }
  /* Google reCAPTCHA is fixed ~304px and loads ~1s later; without this it
     widens the RTL grid and cards/form appear to jump left. */
  .kjnr-contact .g-recaptcha-wrap {
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0.35rem 0 1.5rem !important;
  }
  .kjnr-contact .g-recaptcha {
    max-width: 100% !important;
    overflow: hidden !important;
    transform: scale(0.92);
    transform-origin: center center;
  }
  .kjnr-contact .g-recaptcha > div,
  .kjnr-contact .g-recaptcha iframe {
    max-width: 100% !important;
  }
  .kjnr-contact__main {
    max-width: 100%;
    width: 100%;
    padding-bottom: 36px;
    gap: 18px;
    margin-left: 0;
    margin-right: 0;
  }
  .kjnr-contact__info,
  .kjnr-contact__form-panel {
    width: 100%;
    max-width: 100%;
  }
  .kjnr-contact__card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .kjnr-contact__form-panel {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .kjnr-contact__form-title,
  .kjnr-contact__form-kicker,
  .kjnr-contact__form-note {
    text-align: center;
  }
  .kjnr-contact .wpcf7,
  .kjnr-contact .wpcf7 form {
    width: 100%;
    max-width: 100%;
  }
  .kjnr-contact .wpcf7 input[type="text"],
  .kjnr-contact .wpcf7 input[type="email"],
  .kjnr-contact .wpcf7 input[type="tel"],
  .kjnr-contact .wpcf7 input[type="url"],
  .kjnr-contact .wpcf7 textarea,
  .kjnr-contact .wpcf7 input.wpcf7-submit,
  .kjnr-contact .wpcf7 .wpcf7-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .kjnr-contact .wpcf7 input.wpcf7-submit,
  .kjnr-contact .wpcf7 .wpcf7-submit {
    display: flex;
    margin-left: auto;
    margin-right: auto;
  }
  .kjnr-contact__map-frame iframe {
    height: 280px;
  }
  /* Decorative orbit can bias the visual frame on small screens */
  .kjnr-contact__hero::after {
    display: none;
  }
}


@media (max-width: 640px) {
  .kjnr-contact__card,
  .kjnr-contact__form-panel,
  .kjnr-contact__map {
    animation: none !important;
  }
}

@media (max-width: 360px) {
  .kjnr-contact .g-recaptcha {
    transform: scale(0.82);
    transform-origin: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kjnr-contact__card,
  .kjnr-contact__form-panel,
  .kjnr-contact__map,
  .kjnr-contact__hero::after {
    animation: none !important;
  }
}
