/* ======================================================
   Popup Overlay
====================================================== */

.pbd-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* ======================================================
   Popup Container
====================================================== */

.pbd-popup-content {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  animation: pbdFadeIn 0.25s ease;
  box-sizing: border-box;
}

/* Scrollbar */

.pbd-popup-content::-webkit-scrollbar {
  width: 8px;
}

.pbd-popup-content::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 20px;
}

.pbd-popup-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ======================================================
   Close Button
====================================================== */

.pbd-popup-close {
  position: absolute;

  top: 16px;
  right: 16px;

  width: 38px;
  height: 38px;

  display: flex;
  justify-content: center;
  align-items: center;

  border: none;
  border-radius: 50%;

  background: #f3f4f6;

  color: #555;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition: all 0.25s ease;

  padding: 0;
}

.pbd-popup-close:hover {
  background: #3b2082;

  color: #fff;

  transform: rotate(90deg);
}

/* ======================================================
   Heading
====================================================== */

.pbd-popup h2 {
  margin: 0 0 10px;

  padding-right: 45px;

  font-size: 30px;

  font-weight: 700;

  line-height: 1.3;

  color: #1f2937;
}

.pbd-popup-description {
  margin: 0 0 24px;

  font-size: 15px;

  line-height: 1.6;

  color: #6b7280;
}

/* ======================================================
   Messages
====================================================== */

.pbd-message {
  display: none;

  margin-bottom: 20px;

  padding: 14px 16px;

  border-radius: 8px;

  font-size: 15px;

  font-weight: 500;
}

.pbd-success {
  display: block;

  background: #ecfdf3;

  border: 1px solid #22c55e;

  color: #166534;
}

.pbd-error {
  display: block;

  background: #fef2f2;

  border: 1px solid #ef4444;

  color: #991b1b;
}

/* ======================================================
   Form
====================================================== */

.pbd-form-group {
  margin-bottom: 18px;
}

.pbd-form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 15px;

  font-weight: 600;

  color: #374151;
}

.pbd-form-group label span {
  color: #ef4444;
}

.pbd-form-group input {
  width: 100%;

  height: 48px;

  padding: 0 14px;

  border: 1px solid #d1d5db;

  border-radius: 8px;

  font-size: 15px;

  transition: 0.25s;

  box-sizing: border-box;
}

.pbd-form-group input:focus {
  outline: none;

  border-color: #3b2082;

  box-shadow: 0 0 0 3px rgba(59, 32, 130, 0.12);
}

/* ======================================================
   Submit Button
====================================================== */

#pbd-submit-btn {
  width: 100%;

  height: 50px;

  border: none;

  border-radius: 8px;

  background: #3b2082;

  color: #fff;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.25s;
}

#pbd-submit-btn:hover {
  background: #7437a3;
}

#pbd-submit-btn:disabled {
  opacity: 0.7;

  cursor: not-allowed;
}

/* ======================================================
   Privacy Note
====================================================== */

.pbd-note {
  display: block;

  margin-top: 14px;

  text-align: center;

  font-size: 13px;

  line-height: 1.6;

  color: #6b7280;
}

/* ======================================================
   Animation
====================================================== */

@keyframes pbdFadeIn {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

/* ======================================================
   Responsive
====================================================== */

@media (max-width: 768px) {
  .pbd-popup {
    padding: 15px;
  }

  .pbd-popup-content {
    max-width: 100%;

    max-height: 92vh;

    padding: 24px;
  }

  .pbd-popup h2 {
    font-size: 24px;

    padding-right: 40px;
  }

  .pbd-popup-description {
    font-size: 14px;
  }

  .pbd-form-group {
    margin-bottom: 16px;
  }

  .pbd-form-group label {
    font-size: 14px;
  }

  .pbd-form-group input {
    height: 46px;

    font-size: 14px;
  }

  #pbd-submit-btn {
    height: 48px;

    font-size: 15px;
  }

  .pbd-popup-close {
    width: 34px;
    height: 34px;

    font-size: 24px;

    top: 12px;
    right: 12px;
  }
}

/* ==========================================
   Download Brochure Button
========================================== */

.pbd-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 35px 9px 35px;

  min-width: 240px;
  height: 52px;

  background: #ffffff;

  color: #3b2082;

  border: none;
  border-radius: 8px;

  font-size: 18px;
  font-weight: 600;

  text-decoration: none;

  cursor: pointer;

  transition: all 0.3s ease;
}

.pbd-download-button:hover {
  background: #7437a3;

  color: #ffffff;

  transform: translateY(-2px);
}

.pbd-download-button:focus {
  outline: none;

  box-shadow: 0 0 0 3px rgba(59, 32, 130, 0.2);
}

/* ==========================================
   Mobile Responsive
========================================== */

@media (max-width: 768px) {
  .pbd-download-button {
    display: flex;

    width: 100%;

    min-width: 100%;

    height: 50px;

    padding: 0 50px;

    font-size: 15px;
  }
}
