/**
 * Demo Request Popup Styles
 */

/* Popup Overlay */
.demo-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup Content */
.demo-popup-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

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

/* Popup Header */
.demo-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #b8860b, #daa520);
  border-radius: 16px 16px 0 0;
}

.demo-popup-header h2 {
  margin: 0;
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.demo-popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.demo-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Popup Body */
.demo-popup-body {
  padding: 32px;
}

.demo-popup-description {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
  font-size: 15px;
}

/* Form Styles */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #b8860b;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-input.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  display: block;
}

/* Submit Button */
.btn-submit {
  background: linear-gradient(135deg, #b8860b, #daa520);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #9caf88, #7a9b6b);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: bold;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-message h3 {
  color: #374151;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px;
}

.success-message p {
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.6;
}

.success-message strong {
  color: #b8860b;
  font-weight: 600;
}

.btn-close-success {
  background: #374151;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 24px;
}

.btn-close-success:hover {
  background: #1f2937;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 640px) {
  .demo-popup-content {
    border-radius: 16px;
    max-height: 95vh;
  }

  .demo-popup-header {
    padding: 20px 24px;
  }

  .demo-popup-header h2 {
    font-size: 20px;
  }

  .demo-popup-body {
    padding: 24px;
  }

  .success-icon {
    width: 64px;
    height: 64px;
    font-size: 36px;
  }
}