/* ========== BASE STYLES ========== */
:root {
  --green: #25d366;
  --blue-gradient: linear-gradient(135deg, #0d6efd, #024ebf);
  --blue-gradient-hover: linear-gradient(135deg, #024ebf, #0d6efd);
}


/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  z-index: 100;
  background-color: var(--green);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  bottom: 40px;
  left: 20px;
}

/* Tidio chat adjustment */
#tidio-chat {
  right: auto !important;
}

/* ========== POPUP OVERLAY ========== */
.popup-form {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  justify-content: center;
  align-items: center;
}

/* ========== POPUP CONTENT ========== */
.popup-form-content {
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  padding: 20px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}

/* ========== HEADER ========== */
.popup-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.popup-form-header h4 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease-in-out;
}

.close-btn:hover {
  color: #ff0000;
}

/* ========== FORM ========== */
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #444;
}

.form-control,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 15px;
}

.form-control:focus,
select:focus {
  border-color: #e60000;
  box-shadow: 0 0 5px rgba(255, 0, 0, 0.2);
  outline: none;
}

/* ========== BUTTONS ========== */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: var(--blue-gradient-hover);
}

/* ========== TRIGGER BUTTONS ========== */
.btn-popup-trigger,
.btn-popup-trigger2 {
  position: fixed;
  left: 0;
  cursor: pointer;
  z-index: 1100;
}

.btn-popup-trigger {
  top: 30%;
  transform: translateY(-30%);
}

.btn-popup-trigger2 {
  top: 45%;
}

/* ========== ANIMATION ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 100px;
    left: 20px;
  }

  #tidio-chat {
    left: 95% !important;
    transform: translateX(-5%) !important;
    right: auto !important;
    bottom: 70px !important;
  }

  .popup-form-content {
    padding: 20px 15px;
  }

  .popup-form-header h4 {
    font-size: 18px;
  }

  .btn-popup-trigger {
    top: auto;
    bottom: 1%;
    left: 20%;
    transform: translateX(-50%) rotate(-90deg);
  }

  .btn-popup-trigger2 {
    top: auto;
    bottom: 1%;
    left: 70%;
    transform: translateX(-50%) rotate(-90deg);
  }
}
