/* WZOCX Enquiry Modal & Bottom Sheet styles (Port 9990 Engineering Minimalist) */
.wzocx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.wzocx-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Light Mode Defaults */
.wzocx-modal-panel {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  max-height: 90dvh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-sizing: border-box;
}

.wzocx-modal-backdrop.is-open .wzocx-modal-panel {
  transform: translateY(0) scale(1);
}

/* Dark Mode Modal Panel */
.dark .wzocx-modal-panel,
html.dark .wzocx-modal-panel {
  background: #0B0F17;
  color: #F9FAFB;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

.wzocx-modal-drag-handle {
  display: none;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.18);
  margin: 0 auto 16px auto;
}

.dark .wzocx-modal-drag-handle,
html.dark .wzocx-modal-drag-handle {
  background: rgba(255, 255, 255, 0.2);
}

.wzocx-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111827;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
}

.dark .wzocx-modal-close,
html.dark .wzocx-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.wzocx-modal-close:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.dark .wzocx-modal-close:hover,
html.dark .wzocx-modal-close:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.wzocx-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 12px;
}

.dark .wzocx-modal-badge,
html.dark .wzocx-modal-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94A3B8;
}

.wzocx-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F5B700;
}

#wzocx-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #0F172A;
  margin: 0 0 6px 0;
  padding-right: 36px;
}

.dark #wzocx-modal-title,
html.dark #wzocx-modal-title {
  color: #FFFFFF;
}

.wzocx-modal-intro {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #64748B;
  margin: 0 0 18px 0;
  padding-right: 36px;
}

.dark .wzocx-modal-intro,
html.dark .wzocx-modal-intro {
  color: #94A3B8;
}

/* Selected Product Summary Chips */
.wzocx-chips-summary {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 0 18px 0 !important;
  padding: 10px 14px !important;
  background: rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.dark .wzocx-chips-summary,
html.dark .wzocx-chips-summary {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.wzocx-chip {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: #334155 !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  flex-shrink: 0 !important;
}

.dark .wzocx-chip,
html.dark .wzocx-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.wzocx-chip.wzocx-chip-product {
  background: rgba(245, 183, 0, 0.12) !important;
  border-color: rgba(245, 183, 0, 0.45) !important;
  color: #B48300 !important;
  font-weight: 800 !important;
}

.dark .wzocx-chip.wzocx-chip-product,
html.dark .wzocx-chip.wzocx-chip-product {
  background: rgba(245, 183, 0, 0.2) !important;
  border-color: rgba(245, 183, 0, 0.5) !important;
  color: #F5B700 !important;
}

/* Two-column responsive row */
.wzocx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 520px) {
  .wzocx-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.wzocx-form-group {
  margin-bottom: 14px;
  text-align: left;
}

.wzocx-form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  margin-bottom: 5px;
}

.dark .wzocx-form-group label,
html.dark .wzocx-form-group label {
  color: #94A3B8;
}

.wzocx-input, .wzocx-textarea {
  width: 100%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #0F172A;
  height: 46px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.dark .wzocx-input,
.dark .wzocx-textarea,
html.dark .wzocx-input,
html.dark .wzocx-textarea {
  background: #0F1520;
  border-color: rgba(255, 255, 255, 0.14);
  color: #F8FAFC;
}

.wzocx-textarea {
  height: auto;
  padding: 10px 14px;
  resize: vertical;
  min-height: 70px;
}

.wzocx-input:focus, .wzocx-textarea:focus {
  outline: none;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.dark .wzocx-input:focus,
.dark .wzocx-textarea:focus,
html.dark .wzocx-input:focus,
html.dark .wzocx-textarea:focus {
  border-color: #F5B700;
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.2);
}

.wzocx-submit-button {
  width: 100%;
  height: 50px;
  border-radius: 9999px;
  background: #000000;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dark .wzocx-submit-button,
html.dark .wzocx-submit-button {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.wzocx-submit-button:hover {
  background: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dark .wzocx-submit-button:hover,
html.dark .wzocx-submit-button:hover {
  background: #E2E8F0;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.25);
}

.wzocx-submit-button:active {
  transform: translateY(0);
}

.wzocx-submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wzocx-privacy-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: #64748B;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 0;
}

.dark .wzocx-privacy-note,
html.dark .wzocx-privacy-note {
  color: #64748B;
}

.wzocx-alert-error {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #DC2626;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  margin-bottom: 14px;
  text-align: left;
}

.dark .wzocx-alert-error,
html.dark .wzocx-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.wzocx-success-panel {
  text-align: center;
  padding: 24px 0 12px 0;
}

.wzocx-success-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #10B981;
  color: #10B981;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  background: rgba(16, 185, 129, 0.08);
}

.wzocx-success-panel h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 8px 0;
  color: #0F172A;
}

.dark .wzocx-success-panel h4,
html.dark .wzocx-success-panel h4 {
  color: #FFFFFF;
}

#wzocx-success-msg {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 16px 0;
}

.dark #wzocx-success-msg,
html.dark #wzocx-success-msg {
  color: #94A3B8;
}

.wzocx-tagline-muted {
  font-size: 11px;
  color: #94A3B8;
  font-style: italic;
  margin-top: 14px;
  margin-bottom: 16px;
}

.dark .wzocx-tagline-muted,
html.dark .wzocx-tagline-muted {
  color: #64748B;
}

.wzocx-modal-done-btn {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 9999px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark .wzocx-modal-done-btn,
html.dark .wzocx-modal-done-btn {
  background: #FFFFFF;
  color: #000000;
}

.wzocx-modal-done-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Mobile Bottom Sheet Adaptation */
@media (max-width: 767px) {
  .wzocx-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .wzocx-modal-panel {
    max-height: 92dvh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateY(100%);
    padding: 24px 20px 28px 20px;
  }
  .wzocx-modal-drag-handle {
    display: block;
  }
}
