/* ══════════════════════════════════════════
   HBE Mailing List Popup — Styles
   Matched to hypnoticbrassensemble.com
   Theme: Kallyas  |  Background: #000  |  Font: Open Sans
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Montserrat:wght@400;600;700&display=swap');

/* ── BACKDROP OVERLAY ── */
.hbe-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99998;
  opacity: 0;
  animation: hbeFadeIn 0.5s ease forwards;
}

/* ── POPUP CONTAINER ── */
.hbe-popup {
  position: fixed;
  z-index: 99999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 90%;
  max-width: 480px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  opacity: 0;
  animation: hbePopIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #ffffff;
  box-sizing: border-box;
}

.hbe-popup *, .hbe-popup *::before, .hbe-popup *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes hbeFadeIn {
  to { opacity: 1; }
}

@keyframes hbePopIn {
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ── WHITE TOP LINE ── */
.hbe-popup-accent {
  height: 2px;
  background: rgba(255, 255, 255, 0.25);
}

/* ── CLOSE BUTTON ── */
.hbe-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  line-height: 1;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.hbe-popup-close:hover {
  border-color: #ffffff;
  color: #ffffff;
}

/* ── BODY ── */
.hbe-popup-body {
  padding: 44px 36px 36px;
  text-align: center;
  position: relative;
}

.hbe-popup-logo {
  width: 100px;
  height: auto;
  margin-bottom: 22px;
  opacity: 0.9;
}

.hbe-popup-title {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 0;
}

.hbe-popup-title span {
  display: block;
  font-size: 26px;
  letter-spacing: 6px;
  color: #ffffff;
  margin-top: 8px;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.hbe-popup-subtitle {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.75;
  margin-top: 18px;
  margin-bottom: 30px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FORM ── */
.hbe-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbe-popup-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  color: #ffffff;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.5px;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.hbe-popup-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
}

.hbe-popup-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.hbe-popup-input.hbe-error {
  border-color: #e74c3c;
}

.hbe-popup-submit {
  width: 100%;
  padding: 14px;
  background: #ffffff;
  border: none;
  border-radius: 0;
  color: #000000;
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.hbe-popup-submit:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hbe-popup-submit:active {
  background: rgba(255, 255, 255, 0.75);
}

.hbe-popup-submit.hbe-loading {
  pointer-events: none;
  opacity: 0.6;
}

/* ── SUCCESS STATE ── */
.hbe-popup-success {
  display: none;
  padding: 48px 36px 40px;
  text-align: center;
}

.hbe-popup-success.show {
  display: block;
  animation: hbeFadeIn 0.4s ease forwards;
}

.hbe-popup-success .hbe-checkmark {
  width: 50px;
  height: 50px;
  border: 2px solid #ffffff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  color: #ffffff;
}

.hbe-popup-success h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.hbe-popup-success p {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* ── FOOTER ── */
.hbe-popup-footer {
  padding: 14px 36px 20px;
  text-align: center;
}

.hbe-popup-footer a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.hbe-popup-footer a:hover {
  color: #ffffff;
}

/* ── HONEYPOT ── */
.hbe-ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ── CLOSE ANIMATIONS ── */
.hbe-popup-overlay.hbe-hide {
  animation: hbeFadeOut 0.35s ease forwards;
}

.hbe-popup.hbe-hide {
  animation: hbePopOut 0.3s ease forwards;
}

@keyframes hbeFadeOut {
  to { opacity: 0; }
}

@keyframes hbePopOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 540px) {
  .hbe-popup {
    width: 94%;
  }
  .hbe-popup-body {
    padding: 36px 22px 28px;
  }
  .hbe-popup-title span {
    font-size: 20px;
    letter-spacing: 4px;
  }
  .hbe-popup-footer {
    padding: 10px 22px 16px;
  }
}
