/* === Popup Overlay === */
.popup-overlay {
  display: none; /* hide by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* === Popup Box === */
.popup-box {
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 16px;
  max-width: 380px;
  width: 90%;
  padding: 24px;
  position: relative;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  text-align: left;
  animation: fadeInScale 0.4s ease-in-out;
}

/* === Close Button === */
.close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: 0.2s;
}
.close-btn:hover {
  transform: scale(1.1);
  color: #ffeb3b;
}

/* === Header === */
.popup-header {
  background: #0044ff;
  color: #fff;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0, 68, 255, 0.4);
}
.popup-header small {
  display: block;
  font-weight: 500;
  color: #fff;
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.95;
}

/* === Form Layout === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* === Form Inputs === */
.popup-content input,
.popup-content select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: #000;
  transition: all 0.3s ease;
}
.popup-content input:focus,
.popup-content select:focus {
  border-color: #0044ff;
  box-shadow: 0 0 8px rgba(0, 68, 255, 0.2);
}

/* === Autofill Fix (Chrome) === */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
  transition: background-color 9999s ease-in-out 0s !important;
}

/* === Privacy Text === */
.privacy {
  font-size: 12px;
  color: #555;
  margin: 10px 0 12px;
  line-height: 1.4;
}
.privacy a {
  color: #0044ff;
  text-decoration: underline;
}

/* === Submit Button === */
.submit-btn {
  display: inline-block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  background: #0044ff;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 68, 255, 0.2);
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background: #0038d6;
  box-shadow: 0 6px 16px rgba(0, 68, 255, 0.3);
}

/* === Animation === */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
