/* Without this, elements with the `hidden` attribute can get overridden by
   later rules like `.aifas-popup-actions { display: flex }` below, which is
   exactly what caused every panel (yes/no, phone, custom) to show at once. */
[hidden] { display: none !important; }

.aifas-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'DM Sans', sans-serif;
}
.aifas-popup-overlay[hidden] { display: none; }

.aifas-popup-box {
  position: relative;
  background: #fff;
  max-width: 420px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: aifas-pop-in .25s ease;
}
@keyframes aifas-pop-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.aifas-popup-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.aifas-popup-content { padding: 1.8rem 1.6rem; }

.aifas-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #0a1628;
  margin-bottom: .6rem;
  line-height: 1.3;
}

.aifas-popup-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  font-weight: 300;
  margin-bottom: 1.3rem;
}

.aifas-popup-actions { display: flex; gap: .8rem; }

.aifas-btn {
  flex: 1;
  border: none;
  padding: .75rem 1rem;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity .2s;
  font-family: inherit;
}
.aifas-btn:hover { opacity: .85; }

.aifas-btn-primary { background: #c9a84c; color: #0a1628; }
.aifas-btn-secondary { background: #0a1628; color: #fff; }

.aifas-popup-phone-form { display: flex; gap: .6rem; }

.aifas-popup-input {
  flex: 1;
  padding: .7rem .8rem;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 14px;
  font-family: inherit;
}
.aifas-popup-input:focus { outline: none; border-color: #c9a84c; }

.aifas-popup-thanks {
  text-align: center;
  color: #0a1628;
  font-weight: 500;
  font-size: 14px;
}

@media (max-width: 480px) {
  .aifas-popup-box { max-width: 100%; }
}
