/*
 * Styling for the pieces we add on top of the mirrored Damsak site: the
 * contact form, the per-product enquiry modal and their states.
 *
 * Everything is namespaced under .dsk- so it can never collide with Elementor's
 * generated classes, and it inherits the site's own typography rather than
 * importing a font, so the additions read as part of the original design.
 */

.dsk-section {
  --dsk-blue: #0166b8;
  --dsk-blue-dark: #014e8e;
  --dsk-yellow: #f0c923;
  --dsk-ink: #1a1a1a;
  --dsk-muted: #5b6b7c;
  --dsk-line: #d8e2ec;

  padding: 70px 20px;
  background: #f4f8fb;
}

.dsk-shell {
  max-width: 1140px;
  margin: 0 auto;
}

.dsk-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dsk-blue);
}

.dsk-eyebrow::before {
  content: '';
  width: 5px;
  height: 20px;
  background: var(--dsk-yellow);
}

.dsk-title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  color: var(--dsk-ink);
}

.dsk-lede {
  margin: 0 0 32px;
  max-width: 62ch;
  color: var(--dsk-muted);
  font-size: 17px;
  line-height: 1.6;
}

.dsk-card {
  background: #fff;
  border: 1px solid var(--dsk-line);
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 18px 40px -28px rgb(1 102 184 / 45%);
}

.dsk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dsk-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.dsk-field--wide {
  grid-column: 1 / -1;
}

.dsk-field > label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dsk-ink);
}

.dsk-field > label span {
  color: #b3261e;
}

.dsk-field input,
.dsk-field select,
.dsk-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--dsk-line);
  border-radius: 4px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--dsk-ink);
}

.dsk-field textarea {
  min-height: 130px;
  resize: vertical;
}

.dsk-field input:focus,
.dsk-field select:focus,
.dsk-field textarea:focus {
  outline: none;
  border-color: var(--dsk-blue);
  box-shadow: 0 0 0 3px rgb(1 102 184 / 15%);
}

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.dsk-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dsk-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dsk-muted);
}

.dsk-consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex: none;
}

.dsk-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.dsk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border: none;
  border-radius: 3px;
  background: var(--dsk-yellow);
  color: var(--dsk-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease;
}

.dsk-btn:hover:not(:disabled) {
  background: #ffd633;
}

.dsk-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.dsk-btn--ghost {
  background: transparent;
  color: var(--dsk-blue);
  border: 1px solid var(--dsk-line);
}

.dsk-btn--ghost:hover:not(:disabled) {
  background: #eef5fb;
}

.dsk-note {
  font-size: 14px;
  line-height: 1.5;
}

.dsk-note--error {
  color: #b3261e;
}

.dsk-done {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 28px;
  border-left: 5px solid var(--dsk-yellow);
  background: #eef5fb;
  border-radius: 4px;
}

.dsk-done h3 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--dsk-ink);
}

.dsk-done p {
  margin: 0;
  color: var(--dsk-muted);
  line-height: 1.6;
}

.dsk-ref {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--dsk-blue-dark);
}

/* ── Product enquiry modal ─────────────────────────────────────────────── */

.dsk-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  background: rgb(10 25 41 / 62%);
  overflow-y: auto;
}

.dsk-modal[hidden] {
  display: none;
}

.dsk-modal__panel {
  --dsk-blue: #0166b8;
  --dsk-blue-dark: #014e8e;
  --dsk-yellow: #f0c923;
  --dsk-ink: #1a1a1a;
  --dsk-muted: #5b6b7c;
  --dsk-line: #d8e2ec;

  position: relative;
  width: min(720px, 100%);
  background: #fff;
  border-radius: 6px;
  padding: 34px;
  box-shadow: 0 30px 70px -20px rgb(0 0 0 / 55%);
}

.dsk-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #eef2f6;
  color: var(--dsk-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.dsk-modal__close:hover {
  background: #dde5ec;
}

.dsk-modal__product {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--dsk-blue-dark);
  font-size: 14px;
  font-weight: 700;
}

/* Our enquiry button stands in for WooCommerce's add-to-cart, which the client
   hides site-wide via YITH Catalog Mode. It is our own element, sited as a
   sibling of the hidden widget rather than inside it, and it declares its own
   visibility so no catalogue-mode rule can suppress it. */
.dsk-enquire {
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center;
  gap: 8px;
  margin: 6px 0 18px;
  padding: 14px 30px;
  border: none;
  border-radius: 3px;
  background: #f0c923;
  color: #1a1a1a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.dsk-enquire:hover {
  background: #ffd633;
}

.dsk-section--slim {
  padding: 40px 20px;
  background: transparent;
}

/* ── "Download Brochures" — top-bar entry and its dialog ───────────────────── */

/* Sits beside "Download Price List" in the theme's top bar, so it borrows that
   bar's own typography rather than declaring a look of its own. */
.dsk-brochure-link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font: inherit;
}

.dsk-brochure-link:hover {
  text-decoration: underline;
}

/* The brochure dialog is centred in the viewport, unlike the enquiry modal
   which is tall enough to want the top of the screen. */
.dsk-modal--centred {
  align-items: center;
  padding: 24px 16px;
}

.dsk-modal__panel--brochures {
  width: min(560px, 100%);
  text-align: center;
}

.dsk-modal__panel--brochures .dsk-title {
  margin-bottom: 6px;
}

.dsk-modal__panel--brochures .dsk-lede {
  margin: 0 auto 26px;
}

.dsk-brochure-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.dsk-brochure-btn {
  flex: 1 1 200px;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 480px) {
  .dsk-brochure-row {
    flex-direction: column;
  }
}

/* ── Admin-managed FAQ accordion ──────────────────────────────────────────── */

.dsk-faq {
  --dsk-blue: #0166b8;
  --dsk-yellow: #f0c923;
  --dsk-ink: #1a1a1a;
  --dsk-muted: #5b6b7c;
  --dsk-line: #d8e2ec;

  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--dsk-line);
}

.dsk-faq__item {
  border-bottom: 1px solid var(--dsk-line);
}

.dsk-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 4px;
  border: none;
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--dsk-ink);
  text-align: left;
  cursor: pointer;
}

.dsk-faq__q:hover {
  color: var(--dsk-blue);
}

.dsk-faq__chev {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dsk-yellow);
  font-size: 18px;
  line-height: 1;
  color: var(--dsk-ink);
}

.dsk-faq__answer {
  display: none;
  padding: 0 4px 20px;
  color: var(--dsk-muted);
  font-size: 16px;
  line-height: 1.65;
}

.dsk-faq__item.is-open .dsk-faq__answer {
  display: block;
}

.dsk-faq__answer p {
  margin: 0 0 12px;
}

.dsk-faq__answer p:last-child {
  margin-bottom: 0;
}

/* Product detail copy managed from the back office. */
.dsk-product-copy p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.dsk-product-copy .dsk-spec {
  margin-bottom: 2px;
}

/* Breadcrumb trail — see tidyBreadcrumbs() in damsak.js. The widget's own
   stylesheet never loads (on the live site either), leaving a bulleted list. */
.dsk-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.dsk-crumbs > li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #5b6b7c;
}

.dsk-crumbs > li + li::before {
  content: '/';
  color: #b6c2ce;
}

.dsk-crumbs a {
  color: #0166b8;
  text-decoration: none;
}

.dsk-crumbs a:hover {
  text-decoration: underline;
}

.dsk-crumbs > li:last-child {
  font-weight: 600;
  color: #1a1a1a;
}

@media (max-width: 720px) {
  .dsk-section {
    padding: 48px 16px;
  }

  .dsk-card,
  .dsk-modal__panel {
    padding: 22px;
  }

  .dsk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
