/* Popup Modal Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  overflow: hidden;
}

.popup-overlay.show {
  display: flex;
  opacity: 1;
}

.popup-modal {
  background: white;
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  max-height: 96vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0 auto;
}

.popup-overlay.show .popup-modal {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.popup-close:hover {
  background: var(--burnt-orange);
  transform: rotate(90deg);
}

.popup-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--charcoal);
  transition: stroke 0.3s ease;
}

.popup-close:hover svg {
  stroke: white;
}

.popup-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.popup-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.8), rgba(217, 93, 57, 0.6));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.popup-image-overlay h2 {
  color: white;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-image-overlay p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: none;
}

.popup-image-overlay .price-tag {
  background: white;
  color: var(--burnt-orange);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 1.75rem;
  font-weight: 900;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.popup-content {
  padding: 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  max-height: 96vh;
}

.popup-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.popup-content .subtitle {
  color: var(--slate-grey-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.popup-content .form-group {
  margin-bottom: 0.6rem;
}

.popup-content label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.popup-content input,
.popup-content textarea {
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}

.popup-content textarea {
  rows: 2;
  min-height: 60px;
  max-height: 80px;
  resize: none;
}

.popup-content .submit-button {
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.error-message {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error .phone-input-container {
  border-color: #DC2626;
}

.success-message {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .popup-overlay {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .popup-modal {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    margin: 0;
    border-radius: 16px;
  }
  
  .popup-image {
    min-height: 200px;
    order: -1;
  }
  
  .popup-image-overlay {
    padding: 1.5rem;
  }
  
  .popup-image-overlay h2 {
    font-size: 1.75rem;
  }
  
  .popup-image-overlay p {
    font-size: 1rem;
  }
  
  .popup-content {
    padding: 1.5rem 2rem 2rem;
    max-height: none;
  }
  
  .popup-close {
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .popup-overlay {
    padding: 0.5rem;
    padding-top: 1rem;
  }
  
  .popup-modal {
    border-radius: 12px;
  }
  
  .popup-content {
    padding: 1.25rem 1.5rem 1.5rem;
  }
  
  .popup-image-overlay {
    padding: 1rem;
  }
  
  .popup-image-overlay h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .popup-image-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .price-tag {
    font-size: 1.5rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}
