/**
 * Guidebook Popup - Portfolio Page
 * Styling to match Bradford Custom Homes design
 */

.guidebook-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guidebook-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.guidebook-popup {
  position: relative;
  background: #fff;
  padding: 30px;
  max-width: 480px;
  width: calc(100% - 20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.guidebook-popup-brand {
  max-width: 260px;
}

.guidebook-popup-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background-color: #A3855F;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.guidebook-popup-close:hover {
  color: #a3855f;
}


.guidebook-popup-title {
  font-family: "Alegreya", serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #17283a;
  margin:28px 0;
}


.guidebook-error {
  font-size: 12px;
  color: #c00;
  margin-top: 4px;
  min-height: 16px;
}

.guidebook-error.visible {
  display: block;
}

.guidebook-popup-submit {
  width: 100%;
  padding: 14px 24px;
  background: #17283a;
  color: #fff;
  border: none;
  font-family: "Alegreya Sans", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  cursor: pointer;
  background-color: #A3855F;
}

.guidebook-popup-submit:hover:not(:disabled) {
  background: #15302b;
}

.guidebook-popup-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.guidebook-popup-message {
  margin-top: 16px;
  font-family: "Alegreya Sans", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  min-height: 20px;
}

.guidebook-popup-message.success {
  color: #0a7;
}

.guidebook-popup-message.error {
  color: #c00;
}

@media screen and (max-width: 767px) {
  .guidebook-popup-close {
    top: 15px;
    right: 15px;
  }
  .guidebook-popup-title {
    font-size: 26px;
  }
}
