/* Book Demo Page Styles */
.book-demo-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Book Demo specific background */
.book-demo-container.book-demo-bg {
  /* Fallback background - will be overridden by inline style in template */
  background: linear-gradient(
      135deg,
      rgba(6, 17, 40, 0.8),
      rgba(6, 17, 40, 0.6)
    ),
    url("/static/img/bookBG.jpeg") center/cover no-repeat;
}

/* Talk to Expert specific background */
.book-demo-container.talk-to-expert-bg {
  /* You can change this background as needed */
  background: linear-gradient(
      135deg,
      rgba(6, 17, 40, 0.8),
      rgba(6, 17, 40, 0.6)
    ),
    url("/static/img/talkToExpertBG.jpeg") center/cover no-repeat;
}

/* Left side content */
.demo-content-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 40px;
  color: white;
}

.demo-content {
  max-width: 500px;
}

.demo-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: white;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item i {
  color: #f29200;
  font-size: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.feature-item span {
  font-size: 16px;
  line-height: 1.5;
  color: white;
}

/* Right side form */
.demo-form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.demo-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.demo-form .form-group {
  margin-bottom: 20px;
  position: relative;
}

/* Form outline styles from Meet the IRO */
.form-outline {
  position: relative;
  margin-bottom: 1rem;
}

.form-outline .form-control {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 10px 4px 10px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.form-outline .form-control:focus {
  border-color: #f29200;
  box-shadow: 0 0 0 0.2rem rgba(242, 146, 0, 0.25);
  outline: none;
}

.form-outline .form-label {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
  background: white;
  padding: 0 4px;
}

.form-outline .form-control:focus + .form-label,
.form-outline .form-control:not(:placeholder-shown) + .form-label,
.form-outline select.form-control:not([value=""]) + .form-label {
  top: 0;
  font-size: 11px;
  color: #f29200;
  font-weight: 500;
}

.form-control-lg {
  min-height: 45px;
  font-size: 14px;
}

/* Select field specific styling */
.form-outline select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: 40px;
}

/* Textarea specific styling */
.form-outline textarea.form-control {
  resize: vertical;
  min-height: 100px;
  padding-top: 15px;
}

/* Animation for form elements */
.form-outline .form-control:focus {
  animation: focusIn 0.3s ease;
}

@keyframes focusIn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* Button styling */
.demo-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #f29200, #e97727);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.demo-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 146, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
  .book-demo-container.book-demo-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
      url("/static/img/bookBG.jpeg") center/cover no-repeat;
  }

  .book-demo-container.talk-to-expert-bg {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)),
      url("/static/img/talkToExpertBG.jpeg") center/cover no-repeat;
  }

  .demo-content-section {
    padding: 40px 20px;
    text-align: center;
  }

  .demo-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .demo-form-section {
    padding: 40px 20px;
  }

  .demo-form-container {
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .demo-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .feature-item span {
    font-size: 14px;
  }

  .demo-form-container {
    padding: 25px 15px;
  }

  .form-header h3 {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .form-control-lg {
    min-height: 40px;
    font-size: 13px;
  }

  .form-outline .form-label {
    font-size: 13px;
  }
}

/* Success/Error Messages */
.alert {
  border-radius: 8px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Loading state */
.demo-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.demo-submit-btn.loading {
  position: relative;
}

.demo-submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

