/* Reservation Modal Styles */
.reservation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

/* Glassmorphic Modal Buttons */
.modal-btn {
  position: relative;
  padding: 12px 24px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.1), 
      rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 107, 53, 0.6);
  color: var(--accent-orange);
  box-shadow: 
      0 8px 32px rgba(255, 107, 53, 0.2),
      0 2px 8px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  transition: all 0.4s ease;
  z-index: -1;
}

.modal-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.modal-btn:hover {
  background: linear-gradient(135deg, 
      rgba(255, 107, 53, 0.8), 
      rgba(210, 57, 26, 0.7));
  color: white;
  border-color: rgba(255, 107, 53, 0.8);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.4),
      0 4px 12px rgba(255, 107, 53, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-btn:hover::after {
  opacity: 1;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.15), 
      rgba(255, 255, 255, 0.08));
}

/* Primary Modal Button */
.modal-btn.primary {
  background: linear-gradient(135deg, 
      rgba(255, 107, 53, 0.9), 
      rgba(210, 57, 26, 0.8));
  border: 1px solid rgba(255, 107, 53, 0.4);
  box-shadow: 
      0 8px 32px rgba(255, 107, 53, 0.4),
      0 2px 8px rgba(255, 107, 53, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-btn.primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.5),
      0 4px 12px rgba(255, 107, 53, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.modal-btn.primary::after {
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0.1));
}

.modal-btn.primary:hover::after {
  opacity: 1;
}

/* Payment Button */
.payment-btn {
  position: relative;
  padding: 16px 32px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 16px;
  transition: all 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform-style: preserve-3d;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  background: linear-gradient(135deg, 
      rgba(255, 107, 53, 0.9), 
      rgba(210, 57, 26, 0.8));
  border: 1px solid rgba(255, 107, 53, 0.4);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 
      0 12px 40px rgba(255, 107, 53, 0.4),
      0 4px 12px rgba(255, 107, 53, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  width: 100%;
  margin-top: 1rem;
}

.payment-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  border-radius: 16px;
  transition: all 0.4s ease;
  z-index: -1;
}

.payment-btn::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background: linear-gradient(135deg, 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0.1));
  border-radius: 15px;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: -1;
}

.payment-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
      0 16px 50px rgba(255, 107, 53, 0.5),
      0 6px 16px rgba(255, 107, 53, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.4),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.payment-btn:hover::after {
  opacity: 1;
}

.payment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: 
      0 8px 25px rgba(255, 107, 53, 0.2),
      0 2px 8px rgba(255, 107, 53, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.reservation-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.reservation-modal {
  background: var(--bg-secondary);
  border-radius: 15px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 107, 53, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.reservation-modal-overlay.show .reservation-modal {
  transform: scale(1);
}

.modal-header {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-dark));
  color: white;
  padding: 20px 30px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 30px;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bg-primary);
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--bg-primary);
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.step-label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
}

.step.active .step-label {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Step Content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Puppy Selection */
.selected-puppy-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.puppy-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.puppy-details h3 {
  color: var(--accent-orange);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 10px;
}

.puppy-info {
  color: var(--text-light);
  margin-bottom: 5px;
}

.pricing {
  margin-top: 20px;
  padding: 15px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.pricing div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-light);
}

.total-price strong,
.deposit-amount strong {
  color: var(--accent-orange);
}

/* Form Styles */
.form-section {
  margin-bottom: 30px;
}

.form-section h3 {
  color: var(--accent-orange);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-light);
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.form-group input.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 2px rgba(255, 68, 68, 0.2);
}

/* Contract Section */
.contract-content {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.contract-terms h4 {
  color: var(--accent-orange);
  margin-bottom: 10px;
  font-family: 'Orbitron', sans-serif;
}

.contract-terms ul {
  list-style: none;
  padding: 0;
}

.contract-terms li {
  color: var(--text-light);
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
}

.contract-terms li::before {
  content: '•';
  color: var(--accent-orange);
  position: absolute;
  left: 0;
}

.agreement-checkboxes {
  margin-top: 20px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  cursor: pointer;
  color: var(--text-light);
}

.checkbox-container input {
  width: auto;
  margin-right: 10px;
}

/* Payment Section */
.payment-summary {
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.summary-item.total {
  border-top: 2px solid var(--accent-orange);
  border-bottom: none;
  margin-top: 10px;
  font-size: 1.1rem;
}

.summary-item .highlight {
  color: var(--accent-orange);
  font-weight: 700;
}

.summary-note {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
}

#payment-element {
  margin-bottom: 20px;
}

.security-note {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
}

.security-note i {
  color: var(--accent-orange);
  margin-right: 8px;
}

/* Step Actions */
.step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-next,
.btn-back,
.btn-pay {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-next,
.btn-pay {
  background: var(--accent-orange);
  color: white;
}

.btn-next:hover,
.btn-pay:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-back {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-next:disabled,
.btn-pay:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Success Modal */
.success-modal .modal-body {
  text-align: center;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
}

.success-content h3 {
  color: var(--accent-orange);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 15px;
}

.next-steps {
  text-align: left;
  margin: 30px 0;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 10px;
}

.next-steps h4 {
  color: var(--accent-orange);
  margin-bottom: 15px;
}

.next-steps ol {
  color: var(--text-light);
  padding-left: 20px;
}

.next-steps li {
  margin-bottom: 8px;
}

.contact-info {
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 5px;
}

.modal-actions {
  padding: 20px 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Error Message */
.error-message {
  background: #ff4444;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .reservation-modal {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
  
  .selected-puppy-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .progress-steps {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .step {
    flex: none;
    width: calc(50% - 5px);
  }
  
  .step-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .payment-actions {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .modal-body {
    padding: 20px;
  }
  
  .step {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .step-label {
    font-size: 0.8rem;
  }
}