/* =====================================================
   HERO POPUP
===================================================== */

#hero-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease, visibility .5s ease;
  animation: fadeIn .35s ease;
}

#hero-popup.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =====================================================
   POPUP CARD
===================================================== */

#hero-popup .content {
  position: relative;
  width: min(90%,820px);
  background: #fff;
  border-radius: 22px;
  padding: 34px 34px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.18);
  animation: popupScale .35s ease;
}

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

#close-popup {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #ececec;
  color: #444;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .3s;
}

#close-popup:hover {
  background: #e53935;
  color: #fff;
  transform: rotate(90deg);
}

/* =====================================================
   TITLE
===================================================== */

#popup-title {
  margin: 0 60px 18px 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: #222;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: .4px;
}

/* =====================================================
   DESCRIPTION
===================================================== */

#popup-desc {
  font-size: 18px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 30px;
}

/* =====================================================
   BUTTON ROW
===================================================== */

.top-buttons {
  display: flex;
  gap: 18px;
  margin-bottom: 30px;
}

.top-buttons a {
  flex: 1;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  transition: .3s;
}

/* Call Button */

.call-now {
  background: transparent;
  color: #fff;
  border-color: white;
}

.call-now:hover {
  background: #2fad46;
  transform: translateY(-3px);
}

/* Fax Button */

.fax-link {
  background: transparent;
  color: #fff;
  border-color: white;
}

.fax-link:hover {
  background: #2fad46;
  transform: translateY(-3px);
}

/* =====================================================
   APPLY BUTTON
===================================================== */

.apply-now {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  background: #000000;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: .3s;
  margin-bottom: 18px;
}

.apply-now:hover {
  background: #5c0a0a;
  transform: translateY(-2px);
}

/* =====================================================
   ADDRESS
===================================================== */

.contact-info {
  margin: 0;
  font-size: 17px;
  color: #666;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupScale {
  from {
    opacity: 0;
    transform: translateY(25px) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width:768px) {
  #hero-popup {
    padding: 16px;
  }
}

@media (max-width:768px) {
  #hero-popup .content {
    width: 100%;
    padding: 28px 22px;
    border-radius: 18px;
  }
}

@media (max-width:768px) {
  #popup-title {
    font-size: 1.7rem;
    margin-right: 55px;
  }
}

@media (max-width:768px) {
  #popup-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
}

@media (max-width:768px) {
  .top-buttons {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width:768px) {
  .top-buttons a {
    width: 100%;
    height: 54px;
    font-size: 16px;
  }
}

@media (max-width:768px) {
  .apply-now {
    height: 56px;
    font-size: 18px;
  }
}

@media (max-width:768px) {
  .contact-info {
    font-size: 15px;
    text-align: center;
  }
}

@media (max-width:768px) {
  #close-popup {
    width: 42px;
    height: 42px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width:480px) {
  #hero-popup .content {
    padding: 24px 18px;
  }
}

@media (max-width:480px) {
  #popup-title {
    font-size: 1.4rem;
  }
}

@media (max-width:480px) {
  #popup-desc {
    font-size: 14px;
  }
}

@media (max-width:480px) {
  .top-buttons a {
    font-size: 15px;
    height: 50px;
  }
}

@media (max-width:480px) {
  .apply-now {
    font-size: 17px;
    height: 52px;
  }
}

@media (max-width:480px) {
  .contact-info {
    font-size: 14px;
  }
}

