/* ==========================================================================
   Air Display - Modern Quote Request Modal
   Location: /assets/css/quote.css
   ========================================================================== */

dialog.qmd {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  background: transparent;
  padding: 0;
  width: min(94vw, 980px);
  max-height: min(92vh, 760px);
  border-radius: 16px;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.75);
  color: #0f172a;
  overflow: hidden;
  z-index: 99999;
}

dialog.qmd::backdrop {
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.qmd-in {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: min(92vh, 760px);
  max-height: min(92vh, 760px);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: left;
}

/* ==========================================================================
   LEFT COLUMN (Dark Side Panel)
   ========================================================================== */
.qmd-side {
  background: radial-gradient(circle at 10% 20%, #200406 0%, #0c0e14 70%);
  padding: 36px 28px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: none !important;
  box-sizing: border-box;
  overflow-y: auto;
}

.qmd-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.qmd-tag-bar {
  width: 16px;
  height: 3px;
  background-color: #e50914;
}

.qmd-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  border: 1px solid rgba(229, 9, 20, 0.6);
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(229, 9, 20, 0.12);
}

.qmd-side h2 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 8px;
}

.qmd-red-dot {
  color: #e50914;
}

.qmd-lead {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #cbd5e1;
  margin: 0 0 16px;
}

/* Display Screen Illustration Box */
.qmd-screen-box {
  width: 100%;
  border-radius: 8px;
  padding: 5px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
  box-sizing: border-box;
}

.qmd-screen-inner {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #0a0e17;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qmd-screen-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Feature Checkmarks List */
.qmd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qmd-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.qmd-chk-bubble {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #e50914;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qmd-chk-bubble svg {
  width: 11px;
  height: 11px;
}

/* ==========================================================================
   RIGHT COLUMN (Scrollable Form Panel)
   ========================================================================== */
.qmd-main {
  padding: 36px 36px 30px;
  background: #ffffff;
  position: relative;
  overflow-y: auto;
  max-height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  border-left: none !important;
}

.qmd-main::-webkit-scrollbar {
  width: 6px;
}
.qmd-main::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.qmd-main::-webkit-scrollbar-track {
  background: #f8fafc;
}

.qmd-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 10;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: -10px;
  margin-right: -10px;
}

.qmd-close:hover {
  background: #fee2e2;
  color: #e50914;
}

.qmd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  clear: both;
}

.qmd-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.qmd-red-ast {
  color: #e50914;
  font-weight: 800;
}

.qmd-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

.qmd-grid input,
.qmd-grid textarea,
.qmd-select-field {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.qmd-select-field {
  cursor: pointer;
  appearance: auto;
}

.qmd-grid input:focus,
.qmd-grid textarea:focus,
.qmd-select-field:focus {
  border-color: #25d366;
}

.qmd-grid textarea {
  resize: vertical;
  min-height: 70px;
}

/* Compact Country Code + Phone Input */
.qmd-tel-input {
  display: grid;
  grid-template-columns: 85px 1fr;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
  align-items: stretch;
}

.qmd-country-select {
  border: none !important;
  background: #f8fafc;
  padding: 0 4px 0 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  border-right: 1px solid #cbd5e1 !important;
  outline: none;
  cursor: pointer;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  text-overflow: clip;
  white-space: nowrap;
  overflow: hidden;
}

.qmd-country-select:focus {
  background: #ffffff;
}

.qmd-country-select option {
  font-weight: normal;
  padding: 6px 10px;
  background: #ffffff;
  color: #0f172a;
}

.qmd-tel-input input {
  border: none !important;
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
}

.qmd-full {
  grid-column: span 2;
}

/* ==========================================================================
   SUBMIT BUTTON (WhatsApp Emerald Green Color Theme)
   ========================================================================== */
.qmd-btn-submit {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.32);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qmd-btn-submit:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
}

.qmd-btn-submit:active {
  transform: translateY(0);
}

.qmd-btn-wa-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.qmd-footnote {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 4px 0 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Screens)
   ========================================================================== */
@media (max-width: 860px) {
  dialog.qmd {
    max-height: 94vh;
  }
  .qmd-in {
    grid-template-columns: 1fr;
    height: auto;
    max-height: 94vh;
    overflow-y: auto;
  }
  .qmd-side {
    padding: 24px;
    height: auto;
    overflow-y: visible;
  }
  .qmd-main {
    padding: 24px 20px;
    overflow-y: visible;
  }
  .qmd-screen-box {
    display: none;
  }
}

@media (max-width: 580px) {
  .qmd-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .qmd-full {
    grid-column: span 1;
  }
}