/* ══════════════════════════════════════════════════
   MM Product Inquiry — Popup Styles
   ══════════════════════════════════════════════════ */

/* ── OVERLAY ── */
.mm-inq-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0, 10, 30, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mmInqFadeIn .22s ease;
}
.mm-inq-overlay.open { display: flex; }

@keyframes mmInqFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes mmInqSlideUp { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }

/* ── MODAL ── */
.mm-inq-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 93vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(0,61,165,.08);
  animation: mmInqSlideUp .3s cubic-bezier(.2,0,.2,1);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.mm-inq-modal::-webkit-scrollbar { width: 5px; }
.mm-inq-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── HEADER ── */
.mm-inq-header {
  background: linear-gradient(135deg, #003DA5 0%, #1a56c4 100%);
  padding: 26px 28px 22px;
  border-radius: 18px 18px 0 0;
  position: relative;
}
.mm-inq-header-icon {
  width: 48px; height: 48px;
  background: rgba(255,224,0,.18);
  border: 1.5px solid rgba(255,224,0,.35);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 13px;
}
.mm-inq-header h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: #FFE000;
  line-height: 1.25;
}
.mm-inq-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  font-family: Arial, sans-serif;
}
.mm-inq-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.24);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s;
  line-height: 1;
  font-family: Arial, sans-serif;
}
.mm-inq-close:hover { background: rgba(255,255,255,.28); }

/* ── PRODUCT CHIP ── */
.mm-inq-product-chip {
  margin: 0 28px;
  background: #e8eef8;
  border: 1.5px solid #c7d6f0;
  border-radius: 10px;
  padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(-18px);
  margin-bottom: -6px;
}
.mm-inq-product-chip .chip-icon { font-size: 20px; flex-shrink: 0; }
.chip-label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-family: Arial, sans-serif;
  margin-bottom: 3px;
}
.chip-name {
  font-size: 13px;
  font-weight: 700;
  color: #003DA5;
  font-family: Georgia, serif;
  line-height: 1.35;
}

/* ── FORM WRAP ── */
.mm-inq-form-wrap {
  padding: 12px 28px 28px;
}

/* ── ROWS ── */
.mm-inq-row {
  margin-bottom: 14px;
}
.mm-inq-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── FIELDS ── */
.mm-inq-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mm-inq-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #374151;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.mm-inq-field .req {
  color: #e53935;
  margin-left: 2px;
}
.mm-inq-field input,
.mm-inq-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 9px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #1a1a2e;
  background: #f9fafb;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
  box-sizing: border-box;
  resize: none;
}
.mm-inq-field input:focus,
.mm-inq-field textarea:focus {
  border-color: #003DA5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,61,165,.1);
}
.mm-inq-field input.error,
.mm-inq-field textarea.error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,.1);
}
.mm-inq-field textarea { min-height: 112px; }

/* Product title field — distinct styling */
.mm-inq-product-input {
  color: #003DA5 !important;
  font-weight: 600 !important;
  background: #eef2fb !important;
  border-color: #c7d6f0 !important;
}

/* ── ERROR BANNER ── */
.mm-inq-error {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  color: #dc2626;
  font-family: Arial, sans-serif;
  margin-bottom: 14px;
  line-height: 1.5;
}
.mm-inq-error.visible { display: block; }

/* ── SUBMIT BUTTON ── */
.mm-inq-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #1a56c4, #003DA5);
  color: #FFE000;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  letter-spacing: .3px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 18px rgba(0,61,165,.28);
  transition: transform .18s, box-shadow .18s, opacity .2s;
  margin-top: 18px;
}
.mm-inq-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,61,165,.38);
}
.mm-inq-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── SUCCESS ── */
.mm-inq-success {
  display: none;
  padding: 40px 28px;
  text-align: center;
}
.mm-inq-success.visible { display: block; }
.mm-inq-success-icon {
  width: 74px; height: 74px;
  background: #e6f4ec;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  margin: 0 auto 20px;
  animation: mmSuccessPop .4s cubic-bezier(.2,0,.2,1);
}
@keyframes mmSuccessPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mm-inq-success h4 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1b8a3e;
  margin: 0 0 10px;
}
.mm-inq-success p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.65;
  margin: 0 0 24px;
}
.mm-inq-success-close {
  display: inline-block;
  padding: 12px 36px;
  background: #003DA5;
  color: #FFE000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: Arial, sans-serif;
  cursor: pointer;
  transition: background .2s;
}
.mm-inq-success-close:hover { background: #1a56c4; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .mm-inq-row.two-col { grid-template-columns: 1fr; }
  .mm-inq-header      { padding: 22px 20px 18px; }
  .mm-inq-product-chip { margin: 0 16px; }
  .mm-inq-form-wrap   { padding: 10px 16px 24px; }
  .mm-inq-success     { padding: 32px 16px; }
}
