.s-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: #000000; /* no black */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* nice shadow */
}

.s-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}

.header-logo img {
  width: 170px;
  transition: height 0.3s ease;
}

* {
  box-sizing: border-box; /* 🔥 This will fix the issue */
}

body {
  margin: 0;
  padding: 0;
  font-family: "Chivo", sans-serif;
  background-color: #ecf0f0;
  /* #f5f7fa; */
  /* linear-gradient(to right, #bfc0c0, #d9f0f8, #e6f0f5); */
  /* min-height: 100vh; */
  color: #333;
}
.demo-section {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: flex-start;
  gap: 40px;
}

.demo-text {
  flex: 1;
  min-width: 300px;
}

.demo-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.demo-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.demo-text ul {
  list-style: none;
  padding: 0;
}

.demo-text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #444;
}

.demo-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #0078ff;
  font-weight: bold;
}

.form-card {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 320px;
}

.form-card h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #222;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.form-group label .required {
  color: red;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  display: block;
  width: 100% !important;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  border-color: #0078ff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 120, 255, 0.3);
}

.form-group textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  resize: vertical; /* allow vertical resize only */
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: "Chivo", sans-serif; /* match your font */
}

.form-group textarea:focus {
  border-color: #0078ff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 120, 255, 0.3);
}

.consent {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.consent input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
  vertical-align: middle;
}

.consent a {
  color: #0078ff;
  text-decoration: none;
}

.consent a:hover {
  text-decoration: underline;
}

.submit-btn {
  margin-top: 20px;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  background-color: #0078ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  font-family: "Chivo", sans-serif;
}

.submit-btn:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .s-header .row {
    padding: 10px 16px;
  }

  .header-logo img {
    height: 40px; /* shrink logo on small screen */
  }
}
@media (max-width: 900px) {
  .demo-section {
    flex-direction: column;
    margin: 40px auto;
  }
}

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

@media (max-width: 480px) {
  .form-card {
    padding: 25px 20px;
  }
}

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #323232;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 14px;
  position: fixed;
  z-index: 999;
  left: 50%;
  bottom: 30px;
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}

#snackbar.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

/* ===================================================================
 * # preloader 
 *
 * ------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: #121619;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: #5b4f96 transparent #5b4f96 transparent; /* fixed var() */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
