/* === RESET & BASE === */
.vm-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999998;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.vm-overlay.vm-active {
  display: flex;
  opacity: 1;
}

/* === FLOATING BUTTON === */
.vm-float-btn {
  position: fixed;
  right: 24px;
  bottom: 74px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90d9, #357abd);
  border: none;
  cursor: pointer;
  z-index: 999999;
  box-shadow: 0 4px 15px rgba(74,144,217,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vm-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(74,144,217,0.55);
}
.vm-float-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* === MODAL FORM === */
.vm-modal {
  background: #fff;
  border-radius: 16px;
  width: 94%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.vm-overlay.vm-active .vm-modal {
  transform: translateY(0);
}
.vm-modal-header {
  background: linear-gradient(135deg, #4a90d9, #357abd);
  color: #fff;
  padding: 18px 24px;
  border-radius: 16px 16px 0 0;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vm-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.vm-modal-close:hover {
  background: rgba(255,255,255,0.2);
}
.vm-modal-body {
  padding: 24px;
}
.vm-form-group {
  margin-bottom: 16px;
}
.vm-form-group label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.vm-form-group input,
.vm-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-size: 18px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #f8fafc;
}
.vm-form-group input:focus,
.vm-form-group textarea:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74,144,217,0.15);
  background: #fff;
}
.vm-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* === CAPTCHA === */
.vm-captcha-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f5fa;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.vm-captcha-question {
  font-size: 19px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}
.vm-captcha-input {
  width: 60px;
  padding: 8px 10px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  font-size: 19px;
  text-align: center;
  background: #fff;
}
.vm-captcha-input:focus {
  outline: none;
  border-color: #4a90d9;
}

/* === SUBMIT BUTTON === */
.vm-submit-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #4a90d9, #357abd);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.vm-submit-btn:hover {
  opacity: 0.92;
}
.vm-submit-btn:active {
  transform: scale(0.98);
}
.vm-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === MESSAGES === */
.vm-msg {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}
.vm-msg-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.vm-msg-error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* === RESPONSIVE === */
@media (max-width: 500px) {
  .vm-float-btn {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .vm-float-btn svg {
    width: 24px;
    height: 24px;
  }
  .vm-modal {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 12px;
  }
  .vm-modal-header {
    border-radius: 12px 12px 0 0;
    padding: 14px 18px;
    font-size: 16px;
  }
  .vm-modal-body {
    padding: 18px 16px;
  }
}