/**
 * Pre-order Modal Styles
 * Consistent styling for the pre-order book modal across all pages
 */

/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal Content */
#preorderModal .modal-content {
  background: linear-gradient(145deg, #1a1a1a, #262626);
  margin: 8% auto;
  padding: 2.5rem;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 1rem;
  width: 90%;
  max-width: 480px;
  position: relative;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(212, 175, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: preorderModalFadeIn 0.3s ease;
}

@keyframes preorderModalFadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-30px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

/* Close Button */
#preorderModal .close {
  color: rgba(255, 255, 255, 0.5);
  float: right;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

#preorderModal .close:hover {
  color: #D4AF37;
  background: rgba(212, 175, 55, 0.1);
}

/* Modal Header */
#preorderModal .modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
  padding-top: 0.5rem;
}

#preorderModal .modal-header h2 {
  font-family: 'Playfair Display', serif;
  color: #F9F1D8;
  font-size: 1.75rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Book Price Display */
#preorderModal .book-price {
  text-align: center;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
}

#preorderModal .book-price span {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #D4AF37;
  font-family: 'Playfair Display', serif;
  margin-top: 0.5rem;
}

/* Modal Body */
#preorderModal .modal-body {
  margin-bottom: 1.5rem;
}

#preorderModal .modal-body > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Form Styles */
#preorderModal .form-group {
  margin-bottom: 1.5rem;
}

#preorderModal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #F9F1D8;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

#preorderModal .form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#preorderModal .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#preorderModal .form-group input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

/* Submit Button */
#preorderModal .btn-primary {
  background: linear-gradient(135deg, #D4AF37, #B8962E);
  color: #000;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

#preorderModal .btn-primary:hover {
  background: linear-gradient(135deg, #E6C04C, #D4AF37);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

#preorderModal .btn-primary:active {
  transform: translateY(0);
}

#preorderModal .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Modal Footer */
#preorderModal .modal-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.5rem;
}

#preorderModal .modal-footer p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#preorderModal .modal-footer p::before {
  content: '🔒';
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  #preorderModal .modal-content {
    margin: 15% auto;
    padding: 2rem 1.5rem;
    width: 92%;
  }
  
  #preorderModal .modal-header h2 {
    font-size: 1.5rem;
  }
  
  #preorderModal .book-price span {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  #preorderModal .modal-content {
    margin: 10% auto;
    padding: 1.5rem 1rem;
    width: 95%;
    border-radius: 0.75rem;
  }
  
  #preorderModal .modal-header h2 {
    font-size: 1.35rem;
  }
  
  #preorderModal .book-price {
    padding: 1rem;
  }
  
  #preorderModal .book-price span {
    font-size: 1.75rem;
  }
  
  #preorderModal .btn-primary {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}
