/* Fixed Side Tab */
.side-tab {
  position: fixed;
  top: 50%;
  right: 0;
  background: linear-gradient(135deg, #ffcb05, #f4b400);
  color: #1A2C53;
  padding: 14px 10px;
  border-radius: 8px 0 0 8px;
  transform: translateY(-50%);
  cursor: pointer;
  writing-mode: vertical-rl;
  text-align: center;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  z-index: 10000;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.side-tab:hover {
  transform: translateY(-50%) scale(1.05);
}
.side-tab i {
  font-size: 20px;
  margin-bottom: 6px;
  color: #1A2C53;
}

/* Slide-out Panel Form */
.side-form {
  position: fixed;
  top: 100px;
  right: -400px;
  width: 360px;
  background: #fff;
  box-shadow: -6px 0 20px rgba(0,0,0,0.15);
  transition: right 0.5s ease;
  padding: 30px 25px;
  font-family: 'Poppins', sans-serif;
  z-index: 9999;
  overflow: hidden;
  border-left: 4px solid #F4B730;
  border-radius: 18px 0 0 18px;
  height: auto;
}

.side-form.open {
  right: 0;
}

/* Close Button */
.closeBtn {
  position: absolute;
  top: 0;
  right: 0;
  background: #F4B730;
  border: none;
  font-size: 24px;
  color: #1A2C53;
  padding: 10px 16px;
  font-weight: bold;
  cursor: pointer;
  border-bottom-left-radius: 14px;
  transition: background 0.3s ease;
}
.closeBtn:hover {
  background: #f7c746;
}

/* Form Heading */
.side-form h3 {
  margin: 20px 0 25px;
  color: #1A2C53;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  position: relative;
}

.side-form h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #F4B730;
  margin: 10px auto 0;
  border-radius: 4px;
}

/* Inputs and Textarea */
.side-form input,
.side-form textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background: #fefefe;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.side-form input:focus,
.side-form textarea:focus {
  border-color: #F4B730;
  box-shadow: 0 0 0 3px rgba(244, 183, 48, 0.2);
}

/* Submit Button */
.side-form button[type="submit"] {
  background: linear-gradient(to right, #F4B730, #ffd740);
  color: #1A2C53;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.side-form button[type="submit"]:hover {
  background: linear-gradient(to right, #f7c746, #ffe082);
  transform: scale(1.03);
}

/* Hide tab when open */
.side-form.open + .side-tab {
  display: none;
}
.side-form input::placeholder,
.side-form textarea::placeholder {
  color: #999;
  
}
.side-form {
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}
@media (max-width: 480px) {
  .side-form {
    width: 90%;
    max-width: 340px;
    right: -100%;
    top: 100px;
    height: auto;
    border-radius: 14px 0 0 14px;
    padding: 25px 20px;
  }

  .side-form.open {
    right: 0;
  }

  .side-form h3 {
    font-size: 20px;
  }

  .side-form input,
  .side-form textarea {
    font-size: 14px;
    padding: 10px 12px;
  }

  .side-form button[type="submit"] {
    font-size: 15px;
    padding: 12px;
  }

  .closeBtn {
    font-size: 24px;
    padding: 10px 16px;
  }
}
.success-modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(21, 44, 83, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.success-box {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  animation: zoomIn 0.4s ease-in-out;
}

.success-box i {
  color: #f8b615;
  font-size: 48px;
  margin-bottom: 15px;
}

@keyframes zoomIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
