@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

*{
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #5271FF;
  margin: 0;
}

.banner-image{
  width: 900px;
  height: 250px;
  object-fit: cover;
  border: 2px solid white;
  margin-bottom: 10px;
}

.form-container{
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  width: 600px;
}

h2{
  margin-bottom: 20px;
  color: #333333;
  text-align: center;
}

label{
  display: block;
  margin-bottom: 8px;
  color: #555555;
}

#FanLabel,
#datelabel,
#emailLabel,
#cellphoneLabel,
#artistLabel{
  margin-top: 15px;
  display: block;
}

input{
  width: 100%;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  font-size: 14px;
}

button{
  width: 100%;
  padding: 10px;
  background-color: #5271FF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

button:hover{
  background-color: #003bb3;
}

#message{
  margin-top: 10px;
  color: #28a745;
  font-size: 14px;
}

.muted{ color:#64748b; }

/* ===== Suggest wrap ===== */
.suggest-wrap{
  position: relative;
}

/* ===== Suggestions (Aesthetic dropdown) ===== */
.suggestions-container{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 999;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.18);

  overflow: hidden;
  padding: 6px;
  display: none;
  max-height: 150px;
  overflow-y: auto;
}

.suggestions-container.show{ display:block; }

.suggest-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  color: #0f172a;
  transition: transform .08s ease, background .15s ease;
}

.suggest-item:hover{
  background: rgba(82,113,255,0.10);
  transform: translateY(-1px);
}

.suggest-chip{
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(82,113,255,0.14);
  color: #2B3FB8;
  font-weight: 800;
  letter-spacing: .2px;
  flex: 0 0 auto;
}

.suggest-name{
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-empty,
.suggest-loading{
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: #64748b;
}

.suggest-loading{ color:#334155; font-weight: 800; }

#artistName:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(82,113,255,0.18);
  border-color: rgba(82,113,255,0.35);
}

/* ===== Responsive ===== */
@media (max-width: 600px){
  .banner-image{
    width: 380px;
    height: auto;
  }
  .form-container{
    width: 90%;
    padding: 15px;
  }
  h2{ font-size: 18px; }
  input{ font-size: 12px; padding: 8px; }
  button{ font-size: 14px; padding: 8px; }
  .suggestions-container{ max-height: 100px; }
}

@media (max-width: 375px){
  .banner-image{
    width: 365px;
    height: 150px;
  }
  .form-container{
    width: 95%;
    padding: 10px;
  }
  h2{ font-size: 16px; }
  input{ font-size: 12px; padding: 8px; }
  button{ font-size: 14px; padding: 8px; }
  label{ font-size: 12px; }
  .suggestions-container{ max-height: 80px; }
}

/* ===== Popup Modal (CENTER OVERLAY) ===== */
.popup{
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
}

.popup.hidden{ display: none !important; }

.popupBackdrop{
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15,23,42,0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.popupCard{
  position: relative !important;
  width: min(520px, calc(100% - 28px)) !important;
  border-radius: 22px !important;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(15,23,42,0.12) !important;
  box-shadow: 0 28px 90px rgba(15,23,42,0.35) !important;
  overflow: hidden !important;
  z-index: 1 !important;
}

/* ✅ Stop global button rules from affecting popup buttons */
.popup button{
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font: inherit !important;
}

/* header */
.popupHeader{
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 16px 16px 12px !important;
  border-bottom: 1px solid rgba(15,23,42,0.08) !important;
}

.popupHeadText{ flex: 1 !important; }

.popupTitle{
  font-weight: 900 !important;
  font-size: 18px !important;
  color: #0f172a !important;
}

.popupSub{
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* ✅ No emoji: pure CSS icon */
.popupIcon{
  width: 44px !important;
  height: 44px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  background: rgba(82,113,255,0.14) !important;
}

/* triangle */
.popupIcon::before{
  content: "" !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 9px solid transparent !important;
  border-right: 9px solid transparent !important;
  border-bottom: 16px solid #2B3FB8 !important;
  transform: translateY(-1px) !important;
}

/* dot */
.popupIcon::after{
  content: "" !important;
  width: 3px !important;
  height: 7px !important;
  background: #ffffff !important;
  border-radius: 2px !important;
  position: absolute !important;
  top: 18px !important;
}

/* type variants */
.popup.success .popupIcon{ background: rgba(34,197,94,0.16) !important; }
.popup.success .popupIcon::before{ border-bottom-color:#16a34a !important; }

.popup.error .popupIcon{ background: rgba(239,68,68,0.14) !important; }
.popup.error .popupIcon::before{ border-bottom-color:#dc2626 !important; }

.popup.warn .popupIcon{ background: rgba(245,158,11,0.18) !important; }
.popup.warn .popupIcon::before{ border-bottom-color:#b45309 !important; }

/* close */
.popupX{
  cursor: pointer !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  display: grid !important;
  place-items: center !important;
  color: #0f172a !important;
  opacity: 0.65 !important;
}

.popupX:hover{
  opacity: 1 !important;
  background: rgba(15,23,42,0.06) !important;
}

.popupBody{
  padding: 14px 16px 10px !important;
  color: #334155 !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
}

.popupActions{
  padding: 12px 16px 16px !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.popupBtn{
  cursor: pointer !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  background: #5271FF !important;
  color: #fff !important;
}

.popupBtn:hover{ filter: brightness(0.96) !important; }
