/*
 * Everrow Owner Overview popup — styles
 */

.ev-popup[hidden] {
  display: none !important;
}

.ev-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ev-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}

.ev-popup__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 280px 1fr;
  overflow: hidden;
  font-family: inherit;
  animation: ev-popup-in 240ms ease-out;
  max-height: calc(100vh - 32px);
}

@keyframes ev-popup-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ev-popup__media {
  background: linear-gradient(180deg, #f6f4ef 0%, #e9e6dc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow: hidden;
}
.ev-popup__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.22));
}

.ev-popup__content {
  padding: 36px 32px 28px;
  overflow-y: auto;
}

.ev-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #1d2b2a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.ev-popup__close:hover { background: #ffffff; }

.ev-popup__title {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #1d2b2a;
  font-weight: 700;
}

.ev-popup__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #4a5a5e;
}

.ev-popup__form {
  margin-bottom: 12px;
}

.ev-popup__fineprint {
  margin: 14px 0 0;
  font-size: 12px;
  color: #8a979a;
  text-align: center;
}

/* HubSpot embed overrides — scoped to inside the popup */
#ev-owner-overview-form .hs-form-field { margin-bottom: 12px; }
#ev-owner-overview-form label { font-size: 13px; color: #33475B; font-weight: 600; display: block; margin-bottom: 4px; }
#ev-owner-overview-form input[type="text"],
#ev-owner-overview-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #cfd6d8;
  border-radius: 6px;
  background: #ffffff;
}
#ev-owner-overview-form input[type="text"]:focus,
#ev-owner-overview-form input[type="email"]:focus {
  outline: none;
  border-color: #2D4A3E;
  box-shadow: 0 0 0 2px rgba(45, 74, 62, 0.18);
}
#ev-owner-overview-form .hs-button,
#ev-owner-overview-form input[type="submit"] {
  width: 100%;
  background: #2D4A3E;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease;
}
#ev-owner-overview-form .hs-button:hover,
#ev-owner-overview-form input[type="submit"]:hover {
  background: #213c30;
}
#ev-owner-overview-form .hs-error-msgs,
#ev-owner-overview-form .hs-error-msg {
  color: #b3261e;
  font-size: 12px;
  margin: 4px 0 0;
  list-style: none;
  padding: 0;
}

@media (max-width: 720px) {
  .ev-popup__card {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .ev-popup__media {
    padding: 20px 24px 8px;
    max-height: 180px;
  }
  .ev-popup__media img {
    max-height: 160px;
  }
  .ev-popup__content { padding: 20px 22px 22px; }
  .ev-popup__title { font-size: 20px; }
  .ev-popup__subtitle { font-size: 13.5px; }
}
