/* ==========================================
   CONTACT POPUP MODAL
   ========================================== */
#pi-contact-popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999999;
  overflow-y: auto;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#pi-contact-popup-overlay.active {
  display: flex;
  opacity: 1;
}

.pi-contact-popup {
  background: linear-gradient(145deg, #fdfcf7, #f8f4ec);
  border-radius: 20px;
  padding: 48px 44px 40px;
  max-width: 520px;
  width: 92%;
  margin: 40px auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(199, 155, 126, 0.15);
  animation: piPopupSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', 'Open Sans', sans-serif;
  box-sizing: border-box;
}

@keyframes piPopupSlideIn {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.pi-contact-popup__close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  color: #999;
}
.pi-contact-popup__close:hover {
  background: rgba(239, 86, 51, 0.1);
  color: #ef5633;
  transform: rotate(90deg);
}
.pi-contact-popup__close svg {
  width: 20px; height: 20px; fill: currentColor;
}

.pi-contact-popup__title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1612;
  margin: 0 0 4px 0;
  text-align: center;
}
.pi-contact-popup__subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c79b7e;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin: 0 0 28px 0;
}

.pi-contact-popup__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pi-contact-popup__row {
  display: flex;
  gap: 16px;
}
.pi-contact-popup__field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pi-contact-popup__label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c79b7e;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pi-contact-popup__input {
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  background: #ffffff;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
  outline: none;
  transition: box-shadow 0.3s ease;
}
.pi-contact-popup__input:focus {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 0 2px rgba(199, 155, 126, 0.4);
}
.pi-contact-popup__input::placeholder {
  color: #bbb;
}
.pi-contact-popup__textarea {
  border-radius: 16px !important;
  resize: none;
  min-height: 80px;
}

.pi-contact-popup__submit {
  margin-top: 6px;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #d4a88c, #c79b7e);
  color: #3d2a1e;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(199, 155, 126, 0.3);
  width: 100%;
}
.pi-contact-popup__submit:hover {
  background: linear-gradient(135deg, #c79b7e, #a37b61);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 155, 126, 0.4);
}

.pi-contact-popup__success {
  display: none;
  text-align: center;
  padding: 30px 0;
}
.pi-contact-popup__success.show {
  display: block;
}
.pi-contact-popup__success svg {
  width: 60px; height: 60px; fill: #4caf50; margin-bottom: 16px;
}
.pi-contact-popup__success p {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

@media (max-width: 575px) {
  .pi-contact-popup {
    padding: 32px 24px 28px;
  }
  .pi-contact-popup__row {
    flex-direction: column;
    gap: 18px;
  }
  .pi-contact-popup__title {
    font-size: 1.6rem;
}

/* Premium Header Let's Connect Button */
.pi-header-btn {
  color: #000000 !important;
  font-weight: 700 !important;
  background-color: #ef5633 !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  margin-left: 15px !important;
  font-size: 13px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}
.pi-header-btn:hover,
.pi-header-btn:active,
.pi-header-btn:focus,
.pi-header-btn:visited:hover {
  background-color: #ff6a4a !important; /* Brighter orange for active hover feedback */
  color: #000000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(239, 86, 51, 0.25) !important;
}
.pi-header-btn:visited {
  color: #000000 !important;
  background-color: #ef5633 !important;
}


