.error-msg {
  color: red;
  font-size: 12px;
}

.form-control.error {
  border: 1px solid red;
  padding: 0.375rem 0.75rem;
}
.top-book-demo {
  top: 30px;
  background: white !important;
}

/* Layout */
.demo-wrapper {
  min-height: calc(100vh - 200px);
  background: radial-gradient(circle at top left, #eef2ff, #f8fafc);
  padding: 140px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-grid {
  width: 1200px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

/* Image */
.demo-image {
  position: relative;
}

.demo-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18);
}

.demo-image-card {
  position: absolute;
  bottom: -40px;
  left: 40px;
  background: #fff;
  padding: 26px 32px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  max-width: 360px;
}

.demo-image-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.demo-image-card p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Form */
.demo-form-card {
  background: #fff;
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
}

.demo-form-card h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 6px;
}

.demo-form-card .subtitle {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 34px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-control {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
}

.form-control.error {
  border-color: #ef4444;
}

.error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
  min-height: 14px;
}

/* Button */
.submit-btn {
  margin-top: 10px;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: #4f46e5;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.35);
  transition: transform 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}

/* Modal */
.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 30px 34px;
  border-radius: 18px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.success-modal p {
  font-size: 16px;
  color: #374151;
  margin: 0;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

/* Hidden */
.hiddenModal {
  display: none;
}
/* TABLET */
@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .demo-image img {
    height: 420px;
  }

  .demo-image-card {
    left: 20px;
    bottom: -30px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .demo-wrapper {
    padding: 100px 16px 60px;
  }

  .demo-image img {
    height: 320px;
  }

  .demo-image-card {
    position: static;
    margin-top: 20px;
    box-shadow: none;
  }

  .demo-form-card {
    padding: 30px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .submit-btn {
    width: 100%;
  }
}



