/* ==========================================
   Modal Overlay
========================================== */

.pv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition: 0.35s ease;

  z-index: 99999;

  padding: 20px;
}

/* Open */

.pv-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================
   Modal Box
========================================== */

.pv-modal-content {
  width: 100%;
  max-width: 650px;

  background: #ffffff;

  border-radius: 20px;

  padding: 40px;

  position: relative;

  transform: translateY(30px);

  transition: 0.35s ease;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pv-modal.active .pv-modal-content {
  transform: translateY(0);
}

/* ==========================================
   Close Button
========================================== */

.pv-modal-close {
  position: absolute;

  top: 15px;

  right: 18px;

  width: 40px;

  height: 40px;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  font-size: 28px;

  background: #f5f5f5;

  transition: 0.3s;
  transform: translateY(-1px);
  line-height: 1;
}

.pv-modal-close:hover {
  background: #ffd400;
}

/* ==========================================
   Heading
========================================== */

.pv-modal-header {
  margin-bottom: 30px;
}

.pv-modal-header h2 {
  margin-bottom: 10px;
  font-size: 38px;
}

.pv-modal-header p {
  color: #666;
}

/* ==========================================
   Form
========================================== */

.pv-form-group {
  margin-bottom: 18px;
}

.pv-form-group input,
.pv-form-group select,
.pv-form-group textarea {
  width: 100%;

  padding: 14px 18px;

  border: 1px solid #ddd;

  border-radius: 12px;

  outline: none;

  transition: 0.3s;

  font-size: 16px;
}

.pv-form-group input:focus,
.pv-form-group select:focus,
.pv-form-group textarea:focus {
  border-color: #ffd400;
}

/* ==========================================
   Button
========================================== */

.pv-btn {
  width: 100%;

  padding: 16px;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  font-size: 16px;

  font-weight: 600;

  background: var(--yellow-hover);

  transition: 0.3s;
}

.pv-btn:hover {
  transform: translateY(-2px);
}

/* ==========================================
   Mobile
========================================== */

@media (max-width: 768px) {
  .pv-modal-content {
    padding: 25px;

    border-radius: 16px;
  }
}

/* ==========================================
   Success Message
========================================== */

.pv-form-success {
  display: none;

  text-align: center;

  padding: 30px 20px;
}

.pv-form-success h3 {
  margin-bottom: 15px;

  color: #22c55e;
}

.pv-form-success p {
  color: #666;

  line-height: 1.7;
}

/* ==========================================
   SEO Audit Report Modal
========================================== */

.pv-report-modal-content {
  max-width: 1000px;
  width: 95%;
  padding: 30px;
}

.pv-pdf-viewer {
  width: 100%;
  height: 75vh;
  overflow: hidden;
  border-radius: 10px;
}

.pv-pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ==========================================
   SEO Audit Report - Mobile
========================================== */

@media (max-width: 768px) {
  .pv-report-modal-content {
    width: 95%;
    max-width: 95%;
    padding: 20px;
  }

  .pv-pdf-viewer {
    height: 75vh;
  }
}
