/**
 * Quick Enquiry slide panel — scoped under .qe-panel
 */

.qe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 21, 61, 0.55);
  z-index: 9998;
}

body.qe-open {
  overflow: hidden;
}

/* Slide panel */
.menu.qe-panel {
  width: 400px;
  right: -400px;
  padding: 0;
  z-index: 10000;
  background: linear-gradient(165deg, #00153d 0%, #0c2d5e 55%, #123a6b 100%);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.menu.qe-panel.qe-open {
  right: 0;
}

.qe-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qe-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qe-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}

.qe-brand strong {
  display: block;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.qe-brand strong em {
  color: #f26522;
  font-style: normal;
}

.qe-brand span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}

.qe-panel .close-menu {
  float: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.qe-panel .close-menu:hover {
  background: rgba(242, 101, 34, 0.25);
  border-color: #f26522;
}

.qe-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 20px;
}

.qe-panel-body h3 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
}

.qe-panel-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 22px;
  line-height: 1.5;
}

.qe-panel .form-group {
  margin-bottom: 14px;
}

.qe-panel .form-control {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #1a2332;
  background: #fff;
  box-shadow: none;
  height: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qe-panel .form-control:focus {
  border-color: #f26522;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.2);
  outline: none;
}

.qe-panel .form-control::placeholder {
  color: #9ca3af;
}

.qe-panel textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.qe-panel span[style*="Red"],
.qe-panel .red,
.qe-panel label[style*="Red"] {
  font-size: 11px !important;
  margin-top: 4px;
  display: block;
}

.qe-panel-actions {
  margin-top: 8px;
}

.qe-panel .qe-submit,
.qe-panel input.qe-submit {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f26522, #d95518);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.35);
}

.qe-panel .qe-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(242, 101, 34, 0.45);
}

.qe-panel-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.qe-panel-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.qe-panel-footer a i {
  color: #f26522;
}

.qe-panel-footer a:hover {
  color: #fff;
}

/* Floating trigger button */
#quick-enquiry {
  position: fixed;
  z-index: 1000;
  bottom: 20px;
  right: 20px;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

body.qe-open #quick-enquiry {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

#quick-enquiry .menu-ham {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 148px;
  height: 48px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #f26522, #d95518);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: none;
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

#quick-enquiry .menu-ham:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(242, 101, 34, 0.5);
}

#quick-enquiry .menu-ham::before {
  content: "\f0e0";
  font-family: FontAwesome;
  font-size: 14px;
}

@media (max-width: 480px) {
  .menu.qe-panel {
    width: 100%;
    right: -100%;
  }

  #quick-enquiry {
    right: 12px;
    bottom: 12px;
  }

  #quick-enquiry .menu-ham {
    min-width: 130px;
    height: 44px;
    font-size: 12px;
  }
}
