/*
 * Native Services and Courses inquiry triggers in #НОКТИ.
 * The plugins own POST/CSRF, validation and form fields; the theme
 * supplies only consistent branding and viewport-safe offcanvas sizing.
 */

/* Anti-spam honeypots must remain in the DOM for server-side validation,
 * but must never be visible or interactive for legitimate visitors.
 * The plugin CSS may be unavailable or overridden by the active theme.
 */
.services-inquiry .services-inquiry-honeypot,
.courses-inquiry .courses-inquiry-honeypot {
  display: none !important;
}

.services-inquiry,
.courses-inquiry {
  margin-bottom: 3rem !important;
}

.services-inquiry .services-inquiry__trigger,
.courses-inquiry .courses-inquiry__trigger,
.services-inquiry button[data-bs-toggle="offcanvas"],
.courses-inquiry button[data-bs-toggle="offcanvas"] {
  --bs-btn-bg: var(--htn-card-accent, #E5D272);
  --bs-btn-border-color: var(--htn-card-accent, #E5D272);
  --bs-btn-color: #1b1b1b;
  --bs-btn-hover-bg: #d4bf60;
  --bs-btn-hover-border-color: #d4bf60;
  --bs-btn-hover-color: #1b1b1b;
  --bs-btn-active-bg: #c9b454;
  --bs-btn-active-border-color: #c9b454;
  --bs-btn-active-color: #1b1b1b;
  --bs-btn-focus-shadow-rgb: 229, 210, 114;
  background-color: var(--htn-card-accent, #E5D272);
  border-color: var(--htn-card-accent, #E5D272);
  color: #1b1b1b;
}

.services-inquiry .services-inquiry__trigger:hover,
.courses-inquiry .courses-inquiry__trigger:hover,
.services-inquiry button[data-bs-toggle="offcanvas"]:hover,
.courses-inquiry button[data-bs-toggle="offcanvas"]:hover {
  background-color: #d4bf60;
  border-color: #d4bf60;
  color: #1b1b1b;
}

.services-inquiry button[data-bs-toggle="offcanvas"]:focus-visible,
.courses-inquiry button[data-bs-toggle="offcanvas"]:focus-visible {
  outline: 3px solid #1b1b1b;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--htn-card-accent, #E5D272);
}

/* The default Bootstrap offcanvas-bottom is only ~30vh high.
 * Target only native inquiry panels, never other site offcanvas menus.
 * 100dvh accounts for browser chrome; 100vh is the fallback.
 */
.services-inquiry > .offcanvas.offcanvas-bottom,
.courses-inquiry > .offcanvas.offcanvas-bottom {
  --bs-offcanvas-height: 100vh;
  width: 100% !important;
  height: 100vh !important;
  max-height: 100vh;
}

@supports (height: 100dvh) {
  .services-inquiry > .offcanvas.offcanvas-bottom,
  .courses-inquiry > .offcanvas.offcanvas-bottom {
    --bs-offcanvas-height: 100dvh;
    height: 100dvh !important;
    max-height: 100dvh;
  }
}

.services-inquiry > .offcanvas .offcanvas-header,
.courses-inquiry > .offcanvas .offcanvas-header {
  flex-shrink: 0;
}

.services-inquiry > .offcanvas .offcanvas-body,
.courses-inquiry > .offcanvas .offcanvas-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  .services-inquiry button[data-bs-toggle="offcanvas"],
  .courses-inquiry button[data-bs-toggle="offcanvas"] {
    transition: none;
  }
}
