/* =========================================
   CONTACT POPUP — OVERLAY
========================================= */

.jns-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  background: rgba(10, 12, 5, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.jns-contact-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================
   POPUP CONTAINER
========================================= */

.jns-contact-popup {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow: hidden;

  border-radius: 24px;
  border: 1.5px solid #A0AE76;
  background: #F6F2EA;
  box-shadow: 0 16px 32px 0 rgba(31, 39, 15, 0.25);

  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.28s ease;
}

.jns-contact-overlay.is-open .jns-contact-popup {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.jns-contact-popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jns-contact-popup__close:hover {
  transform: rotate(90deg);
  opacity: 0.75;
}

/* =========================================
   LEFT PANEL
========================================= */

.jns-contact-popup__left {
  display: flex;
  width: 400px;
  flex-shrink: 0;
  align-self: stretch;
  padding: 48px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: #1F270F;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: none;
}

.jns-contact-popup__left::-webkit-scrollbar {
  display: none;
}

/* Logo */
.jns-contact-popup__logo {
  margin-bottom: 0;
}

.jns-contact-popup__logo img {
  display: block;
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.jns-popup-site-name {
  display: block;
  color: #ffffff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1.5px solid rgba(160, 174, 118, 0.5);
  border-radius: 6px;
}

/* Heading Area */
.jns-contact-popup__heading-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 20px;
}

.jns-contact-popup__connect-label {
  display: block;
  margin-bottom: 10px;
  color: #D6EB12;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.jns-contact-popup__heading {
  margin: 0;
  color: #ffffff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
}

/* Offices */
.jns-contact-popup__offices {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 28px;
}

.jns-contact-popup__office-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.jns-contact-popup__office-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jns-contact-popup__office-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #EFECE4;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.jns-popup-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(160, 174, 118, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.jns-popup-icon svg {
  width: 16px;
  height: 16px;
}

.jns-contact-popup__office-list a {
  color: #EFECE4;
  text-decoration: none;
  transition: color 0.15s ease;
}

.jns-contact-popup__office-list a:hover {
  color: #A0AE76;
}

/* Tagline */
.jns-contact-popup__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.40);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* =========================================
   RIGHT PANEL
========================================= */

.jns-contact-popup__right {
  display: flex;
  flex: 1;
  padding: 48px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  box-sizing: border-box;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #A0AE76 transparent;
  gap: 24px;
}

.jns-contact-popup__right::-webkit-scrollbar {
  width: 4px;
}

.jns-contact-popup__right::-webkit-scrollbar-track {
  background: transparent;
}

.jns-contact-popup__right::-webkit-scrollbar-thumb {
  background: #A0AE76;
  border-radius: 2px;
}

/* Form Header */
.jns-contact-popup__form-header {
  width: 100%;
}

.jns-contact-popup__form-title {
  margin: 0 0 8px;
  color: #1F270F;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.jns-contact-popup__form-desc {
  margin: 0;
  color: #67695C;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

/* Form Body */
.jns-contact-popup__form-body {
  width: 100%;
  flex: 1;
}

/* =========================================
   CF7 FORM STYLING INSIDE POPUP
========================================= */

.jns-contact-popup .wpcf7 {
  width: 100%;
}

.jns-contact-popup .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.jns-contact-popup .wpcf7-form p {
  margin: 0 0 16px;
}

/* Form row grid (2 columns) */
.jns-contact-popup .jns-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Field group */
.jns-contact-popup .jns-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jns-contact-popup .jns-field-label {
  display: block;
  color: #1F270F;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* All inputs, selects & textarea */
.jns-contact-popup input[type="text"],
.jns-contact-popup input[type="email"],
.jns-contact-popup input[type="tel"],
.jns-contact-popup input[type="number"],
.jns-contact-popup select,
.jns-contact-popup textarea,
.jns-contact-popup .wpcf7-form-control:not(.wpcf7-submit),
.jns-select-field {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #A0AE76 !important;
  background: #FDFCF8 !important;
  color: #1F270F !important;
  font-family: "Manrope", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  outline: none !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}

/* Select field dropdown icon */
.jns-contact-popup select,
.jns-select-field {
  padding-right: 36px !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml;utf8,<svg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 1.5L6 6.5L11 1.5' stroke='%231F270F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
}

/* Select wrapper */
.jns-select-wrapper {
  position: relative;
  width: 100%;
}

.jns-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.jns-contact-popup input[type="text"]::placeholder,
.jns-contact-popup input[type="email"]::placeholder,
.jns-contact-popup input[type="tel"]::placeholder,
.jns-contact-popup textarea::placeholder,
.jns-contact-popup .wpcf7-form-control::placeholder {
  color: #A8A79D !important;
}

.jns-contact-popup input[type="text"]:focus,
.jns-contact-popup input[type="email"]:focus,
.jns-contact-popup input[type="tel"]:focus,
.jns-contact-popup textarea:focus,
.jns-contact-popup select:focus,
.jns-contact-popup .wpcf7-form-control:focus {
  border-color: #A0AE76 !important;
  box-shadow: 0 0 0 3px rgba(160, 174, 118, 0.25) !important;
}

.jns-contact-popup textarea {
  resize: vertical;
  min-height: 100px;
}

/* Submit button — matches common primary CTA button design system */
/* .jns-contact-popup input[type="submit"],
.jns-contact-popup .wpcf7-submit,
.jns-contact-popup .contact-submit,
.jns-contact-popup button[type="submit"] {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background-color: var(--jns-lime, #c5db2e) !important;
  color: #1f270f !important;
  padding: 0.65rem 1.75rem !important;
  border-radius: 999px !important;
  border: 3px solid var(--jns-olive, #4d5c2a) !important;
  font-family: "Manrope", sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(77, 92, 42, 0.15) !important;
  transform: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease !important;
  width: auto !important;
  margin-top: 8px !important;
}

.jns-contact-popup input[type="submit"]:hover,
.jns-contact-popup .wpcf7-submit:hover,
.jns-contact-popup .contact-submit:hover,
.jns-contact-popup button[type="submit"]:hover {
  background-color: #d9ff00 !important;
  color: #0f1406 !important;
  border-color: #3b471f !important;
  box-shadow: 0 12px 28px -4px rgba(77, 92, 42, 0.45), 0 4px 16px rgba(197, 219, 46, 0.35) !important;
  transform: none !important;
} */

/* Validation */
.jns-contact-popup .wpcf7-not-valid-tip {
  color: #c53030;
  font-size: 12px;
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
}

.jns-contact-popup .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  border: none;
  background: rgba(160, 174, 118, 0.18);
  color: #1F270F;
}

/* CF7 Placeholder hint */
.jns-cf7-placeholder {
  padding: 24px;
  border-radius: 10px;
  background: rgba(160, 174, 118, 0.12);
  border: 1.5px dashed #A0AE76;
  color: #67695C;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

/* =========================================
   PREVENT BODY SCROLL WHEN POPUP OPEN
========================================= */

body.jns-popup-open {
  overflow: hidden;
}

.contact-submit{
  position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 4px 8px 4px 4px !important;
    border-radius: 999px !important;
    background-color: var(--jns-olive, #4d5c2a) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    user-select: none !important;
    overflow: hidden !important;
    isolation: isolate !important;
    box-shadow: 0 4px 14px rgba(77, 92, 42, 0.15)!important;
    transition: box-shadow 0.35s ease, background-color 0.3s ease !important;
}
.contact-submit span:not(.submit-arrow){
  display: inline-block !important;
    background-color: var(--jns-lime, #c5db2e) !important;
    color: var(--jns-text, #1f270f) !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 999px !important;
    font-family: "Manrope", sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}
.contact-submit span.submit-arrow{
  display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: 28px !important;
    height: 36px !important;
    margin-left: 2px !important;
    padding-right: 4px !important;
    background: transparent !important;
    color: var(--jns-lime, #c5db2e) !important;
    font-size: 18px !important;
    font-weight: bold !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}
button.contact-submit:hover{
      box-shadow: rgba(77, 92, 42, 0.45) 0px 12px 28px -4px, rgba(197, 219, 46, 0.35) 0px 4px 16px !important;
    background-color: rgb(59, 71, 31) !important;
}

.contact-submit:before{
  content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-25deg);
    transition: left 0.65s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 5;
}
.contact-submit:hover::before{
  left: 140%;
}
/* =========================================
   TABLET & MOBILE RESPONSIVE
 ========================================= */

@media (max-width: 768px) {
  .jns-contact-overlay {
    padding: 24px 16px;
    align-items: center;
    justify-content: center;
  }

  .jns-contact-popup {
    flex-direction: column;
    border-radius: 20px;
    max-height: calc(100vh - 48px);
    width: 100%;
    margin: auto;
    overflow-y: auto;
  }

  /* Hide left panel on mobile so ONLY contact form is displayed */
  .jns-contact-popup__left {
    display: none !important;
  }

  .jns-contact-popup__right {
    padding: 28px 20px 24px;
    gap: 18px;
    overflow: visible;
  }

  .jns-contact-popup__form-title {
    font-size: 22px;
  }

  .jns-contact-popup__close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  .jns-contact-popup__close svg {
    width: 24px;
    height: 24px;
  }

  .jns-contact-popup input[type="submit"],
  .jns-contact-popup .wpcf7-submit {
    width: 100% !important;
    justify-content: center;
  }
}
