/* ================================
   CONTACT POPUP — 8JJ THEME MATCH
   (aligns with site.css scales/colors)
   ================================ */

/* Palette & scales come from site.css:
   - Root rem is tied to --body-max-width
   - Primary brand blue: #1B9EDF
   - Body font: Roboto
*/




.contact-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.popup-content {
  position: relative;
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  z-index: 1001;
}

.popup-title {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.popup-btn img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.popup-btn img:hover {
  transform: scale(1.05);
}









.contact-popup{
  position: fixed;
  inset: 0;
  display: none;                 /* toggled with .active */
  place-items: center;
  z-index: 9999;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.contact-popup.active{ display: grid; }

/* Overlay */
.contact-popup .popup-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}

/* Card */
.contact-popup .popup-content{
  position: relative;
  background: #fff;
  border-radius: .14rem;                                /* matches rounding style */
  width: 90%;
  max-width: 6rem;                                    /* ~ desktop-friendly */
  padding: .18rem .12rem .22rem;
  text-align: center;
  box-shadow: 0 .08rem .24rem rgba(0,0,0,.25);          /* same character as site */
  animation: popupShow .25s ease-out;
}

/* Title (top center) */
.contact-popup .popup-content .popup-title{
  display: block;
  color: #1B9EDF;
  font-weight: 800;
  font-size: .4rem;                                    /* close to section titles */
  letter-spacing: .006rem;  
  margin-bottom: .12rem;
}

/* Buttons row (icons only) */
.contact-popup .popup-buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .16rem;
  flex-wrap: wrap;
}

/* Each icon as a link (no card bg to stay light like site) */
.contact-popup .popup-btn{
  display: inline-grid;
  place-items: center;
  border-radius: .12rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-popup .popup-btn img{
  width: 2rem;                                          /* aligns with site icon scale */
  height: 2rem;
  border-radius: .12rem;
  object-fit: cover;
}

.contact-popup .popup-btn:hover{
  transform: translateY(-.02rem);
  box-shadow: 0 .06rem .16rem rgba(27,158,223,.25);      /* brand-tinted hover */
}

/* Close button (top-right) */
.contact-popup .popup-close{
  position: absolute;
  top: .06rem;
  right: .2rem;
  background: none;
  border: none;
  color: #1B9EDF;
  cursor: pointer;
  line-height: 1;
  font-weight: 900;
  font-size: .5rem;                                     /* readable on all viewports */
  transition: color .2s ease, transform .2s ease;
}
.contact-popup .popup-close:hover{
  color: #ff5252;
  transform: scale(1.06);
}

/* Animation */
@keyframes popupShow{
  from{ transform: scale(.96); opacity: 0; }
  to  { transform: scale(1);   opacity: 1; }
}

/* =======================
   RESPONSIVE ADJUSTMENTS
   ======================= */
@media (max-width: 420px){
  .contact-popup .popup-content{
    max-width: 6rem;
    max-height: 7rem;
    padding: .16rem .1rem .2rem;
  }
  .contact-popup .popup-content .popup-title{
    font-size: .40rem;
    margin-bottom: .1rem;
  }
  .contact-popup .popup-btn img{
    width: 2rem;
    height: 2rem;
    border-radius: .1rem;
  }
  .contact-popup .popup-close{
    font-size: .40rem;
    top: .06rem;
    right: .17rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .contact-popup .popup-content{ animation: none; }
}
