.book-demo-form-wrapper {
  max-width: 800px;
  margin: 0;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-demo-form-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.book-demo-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.book-demo-form .form-group {
  display: flex;
  flex-direction: column;
}

.book-demo-form .form-group.full-width {
  grid-column: 1 / -1;
}

.book-demo-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.book-demo-form input,
.book-demo-form select,
.book-demo-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.book-demo-form input:focus,
.book-demo-form select:focus,
.book-demo-form textarea:focus {
  outline: none;
  border-color: #0073aa;
}

.book-demo-form .submit-btn {
  background: #0073aa;
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.book-demo-form .submit-btn:hover {
  background: #005a87;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mt-4 {
  margin-top: 1.2rem;
}

/* Your theme's style.css or Additional CSS */

.my-custom-button {
  background: #ff6b6b;
  color: white;
  padding: 18px 45px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.my-custom-button:hover {
  background: #ff5252;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

/* Change modal overlay */
.demo-modal-overlay {
  background: rgba(0, 0, 0, 0.9); /* Darker overlay */
}

/* Change modal background */
.demo-modal-container {
  background: #f8f9fa; /* Light gray background */
}

/* Change form button color */
.book-demo-form .submit-btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.demo-modal-container {
  max-width: 1200px; /* Wider modal */
}

.demo-modal-overlay {
  transition: all 0.5s ease; /* Slower animation */
}

.demo-modal-container {
  animation: slideUp 0.6s ease;
}

.demo-modal-overlay {
  backdrop-filter: none;
}

@media (max-width: 768px) {
  .book-demo-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Book Demo Button - Default Gradient */
.book-demo-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  display: inline-block;
}

.book-demo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Button Style 2: Solid Blue */
.book-demo-btn-blue {
  background: #2196f3;
  color: #fff;
  border: none;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  display: inline-block;
}

.book-demo-btn-blue:hover {
  background: #1976d2;
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.5);
}

/* Button Style 3: Outline */
.book-demo-btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 13px 38px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.book-demo-btn-outline:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

/* Button Style 4: Large CTA */
.book-demo-btn-large {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 20px 50px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.book-demo-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Button Style 5: Minimal */
.book-demo-btn-minimal {
  background: transparent;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.book-demo-btn-minimal:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* Modal Overlay */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.demo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.demo-modal-container {
  background: #fff;
  border-radius: 20px;
  max-width: 625px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modal Close Button */
.demo-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

/* Form Wrapper inside Modal */
.demo-modal-container .book-demo-form-wrapper {
  margin: 0;
  padding: 15px 20px;
  box-shadow: none;
  border-radius: 0;
}

.book-demo-form-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.book-demo-form-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.book-demo-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 8px;
}

.book-demo-form .form-group {
  display: flex;
  flex-direction: column;
}

.book-demo-form .form-group.full-width {
  grid-column: 1 / -1;
}

.book-demo-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #555;
}

.book-demo-form input,
.book-demo-form select,
.book-demo-form textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
  color: #000;
}

.book-demo-form input:focus,
.book-demo-form select:focus,
.book-demo-form textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.book-demo-form .submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}

.book-demo-form .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.book-demo-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 768px) {
  .book-demo-form .form-row {
    grid-template-columns: 1fr;
  }

  .demo-modal-container {
    margin: 20px;
    max-height: 95vh;
  }

  .demo-modal-container .book-demo-form-wrapper {
    padding: 30px 20px;
  }

  .demo-modal-close {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
}

/* Custom Scrollbar for Modal */
.demo-modal-container::-webkit-scrollbar {
  width: 8px;
}

.demo-modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.demo-modal-container::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.demo-modal-container::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}
