/* ==========================================================================
   Schedule-meeting popup on service pages (#schdule-quotation)
   Matches the homepage "Schedule a meeting" popup: navy left panel,
   white form panel, clean fields, full-width gradient button.
   Load after all other page CSS.
   ========================================================================== */
#schdule-quotation {
  --sm-navy: #0a1f44; --sm-ink: #0b1524; --sm-muted: #6c7f9c; --sm-line: #dfe7f3;
  --sm-field: #cfdaea; --sm-blue: #2563eb; --sm-green: #10b981;
  --sm-grad: linear-gradient(115deg, #1c4ed8 0%, #2563eb 45%, #10b981 100%);
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; z-index: 1000;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
#schdule-quotation.is-open { display: flex; }
#schdule-quotation .modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 48, .62); backdrop-filter: blur(4px); }

/* Two-column card: navy aside | heading + form */
#schdule-quotation .modal-dialog {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr;
  position: relative; z-index: 2; width: min(920px, 100%); max-width: 100%; max-height: calc(100dvh - 32px); margin: 0;
  overflow: auto; background: #fff; border-radius: 22px; box-shadow: 0 40px 90px rgba(0, 0, 0, .35);
}
#schdule-quotation .modal-body { display: contents; }

#schdule-quotation .modal-head {
  grid-column: 2; grid-row: 1; position: static; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 26px 28px 0; background: transparent; color: var(--sm-ink); border: 0; border-radius: 0;
}
#schdule-quotation .modal-head h3 {
  margin: 0; font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25; color: var(--sm-ink);
}
#schdule-quotation .modal-close {
  width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--sm-line);
  background: #fff; color: var(--sm-ink); display: grid; place-items: center; cursor: pointer;
}
#schdule-quotation .modal-close:hover { background: #f2f7ff; color: var(--sm-ink); border-color: var(--sm-line); }
#schdule-quotation .modal-close svg { width: 18px; height: 18px; }

/* Navy aside */
#schdule-quotation .modal-aside {
  display: grid; grid-column: 1; grid-row: 1 / span 2; align-content: center; gap: 18px;
  padding: 26px; margin: 0; background: var(--sm-navy); color: rgba(255, 255, 255, .82);
  border: 0; border-radius: 0; overflow: visible;
}
#schdule-quotation .modal-aside img {
  display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 4 / 3; object-fit: contain;
  background: #fff; border-radius: 14px; margin: 0;
}
#schdule-quotation .modal-aside .inner { padding: 0; margin: 0; }
#schdule-quotation .sm-aside-title {
  margin: 0 0 14px; color: #fff; font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.2rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
}
#schdule-quotation .modal-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#schdule-quotation .modal-aside li {
  display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .82);
}
#schdule-quotation .modal-aside li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--sm-green); }

/* Form panel */
#schdule-quotation form {
  grid-column: 2; grid-row: 2; min-width: 0; margin: 0; padding: 18px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
#schdule-quotation form > * { order: 0; margin: 0; }
#schdule-quotation .form-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0;
}
#schdule-quotation .field { display: grid; gap: 6px; min-width: 0; margin: 0; }
#schdule-quotation .field > label, #schdule-quotation .modal-aside li {
  font-family: inherit;
}
#schdule-quotation .field > label {
  margin: 0; font-size: .84rem; font-weight: 600; line-height: 1.3; color: var(--sm-ink); text-transform: none; letter-spacing: 0;
}
#schdule-quotation .field input:not([type="hidden"]):not([type="checkbox"]),
#schdule-quotation .field select,
#schdule-quotation .field textarea {
  width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; height: auto; min-height: 48px; margin: 0;
  font: inherit; font-size: .95rem; color: var(--sm-ink); background-color: #fff;
  border: 1px solid var(--sm-field); border-radius: 10px; padding: 12px 14px; box-shadow: none;
  transition: border-color .2s, box-shadow .2s;
}
#schdule-quotation .field textarea { min-height: 96px; resize: vertical; }
#schdule-quotation .field input:focus, #schdule-quotation .field select:focus, #schdule-quotation .field textarea:focus {
  outline: none; border-color: var(--sm-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
#schdule-quotation .field input::placeholder, #schdule-quotation .field textarea::placeholder { color: #8a9ab3; }
#schdule-quotation .phone-group { display: grid; grid-template-columns: minmax(96px, 118px) minmax(0, 1fr); gap: 8px; }

/* Button first, reCAPTCHA note under it (same order as homepage) */
#schdule-quotation form [type="submit"] {
  order: 1; width: 100%; min-height: 50px; margin: 4px 0 0; padding: 15px 26px; border: 0; border-radius: 12px;
  background: var(--sm-grad); background-size: 150% 100%; color: #fff; cursor: pointer;
  font-family: 'Sora', 'Plus Jakarta Sans', system-ui, sans-serif; font-size: .95rem; font-weight: 600; line-height: 1.2;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .28); transition: background-position .3s, transform .3s, box-shadow .3s;
}
#schdule-quotation form [type="submit"]:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 16px 32px rgba(16, 185, 129, .3); }
#schdule-quotation .captcha-field { order: 2; }
#schdule-quotation .captcha-note { margin: 0; font-size: .78rem; line-height: 1.5; color: var(--sm-muted); }
#schdule-quotation .captcha-note a { color: inherit; text-decoration: underline; }

/* Shorter laptop screens: tighten so the button stays in view */
@media (min-width: 761px) and (max-height: 820px) {
  #schdule-quotation .modal-head { padding-top: 20px; }
  #schdule-quotation form { gap: 11px; padding-top: 14px; padding-bottom: 22px; }
  #schdule-quotation .field input:not([type="hidden"]):not([type="checkbox"]), #schdule-quotation .field select { min-height: 44px; padding-block: 10px; }
  #schdule-quotation .field textarea { min-height: 76px; }
  #schdule-quotation .modal-aside { padding: 22px; gap: 14px; }
}

/* Phones: single column, aside hidden (same as homepage) */
@media (max-width: 760px) {
  #schdule-quotation { padding: 10px; }
  #schdule-quotation .modal-dialog { grid-template-columns: minmax(0, 1fr); max-height: calc(100dvh - 20px); border-radius: 18px; }
  #schdule-quotation .modal-aside { display: none; }
  #schdule-quotation .modal-head { grid-column: 1; padding: 20px 18px 0; }
  #schdule-quotation .modal-head h3 { font-size: 1.2rem; }
  #schdule-quotation form { grid-column: 1; padding: 14px 18px 20px; }
}
@media (max-width: 480px) {
  #schdule-quotation .form-row { grid-template-columns: minmax(0, 1fr); }
}
#schdule-quotation .phone-group > * { width: 100%; min-width: 0; max-width: none; margin: 0; }
#schdule-quotation .phone-group .cc-select select { width: 100%; }

/* ==========================================================================
   Products menu in the service-page header (same items as homepage)
   ========================================================================== */
.main-nav .dropdown--products { min-width: 300px; }
.main-nav .dropdown--products a { display: grid; gap: 2px; white-space: normal; line-height: 1.35; }
.main-nav .dropdown--products a b { font-weight: 600; color: inherit; }
.main-nav .dropdown--products a small { font-size: .78rem; font-weight: 400; opacity: .72; }

#schdule-quotation .hx-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#schdule-quotation *, #schdule-quotation *::before, #schdule-quotation *::after { box-sizing: border-box; }
#schdule-quotation ul { list-style: none; margin: 0; padding: 0; }
#schdule-quotation .modal-aside h4 { color: #fff; }
