/* Luyin enquiry refresh. Scoped to the plugin and the Contact template. */
.luyin-rfq {
  --rfq-ink: #121517;
  --rfq-muted: #566064;
  --rfq-line: #cdd2d3;
  --rfq-surface: #f0f2f1;
  --rfq-accent: #b31826;
  --rfq-accent-dark: #8f101b;
  --rfq-success: #276448;
  --rfq-error: #a51524;
  color: var(--rfq-ink);
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.5;
}
.luyin-rfq *, .luyin-rfq *::before, .luyin-rfq *::after { box-sizing: border-box; }
.luyin-rfq [hidden] { display: none !important; }
.luyin-rfq a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.luyin-rfq button, .luyin-rfq input, .luyin-rfq textarea, .luyin-rfq select { font: inherit; }
.luyin-rfq :is(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid #b31826; outline-offset: 4px; }
.luyin-rfq__heading { margin-bottom: 2rem; }
.luyin-rfq__heading h2 { margin: 0 0 .5rem; color: var(--rfq-ink); }
.luyin-rfq__heading p { color: var(--rfq-muted); }
.luyin-rfq__form { position: relative; }
.luyin-rfq__grid, .luyin-rfq__core { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
.luyin-rfq__grid + .luyin-rfq__grid { margin-top: 1.15rem; }
.luyin-rfq__request { margin-top: 1.15rem; }
.luyin-rfq__field { display: grid; min-width: 0; gap: .4rem; align-content: start; margin: 0; font-weight: 600; }
.luyin-rfq__field > span { font-size: .9375rem; }
.luyin-rfq__field > span strong { color: var(--rfq-accent); font-weight: 400; }
.luyin-rfq__field input, .luyin-rfq__field select, .luyin-rfq__field textarea {
  display: block; width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 1px solid var(--rfq-line); border-radius: 3px; background: #fff;
  color: var(--rfq-ink); font-weight: 400; line-height: 1.5;
  transition: border-color .15s, background-color .15s;
}
.luyin-rfq__field textarea { min-height: 124px; resize: vertical; }
.luyin-rfq__field :is(input, textarea)::placeholder { color: #727c80; opacity: 1; }
.luyin-rfq__field :is(input, textarea, select):hover { border-color: #7b858a; }
.luyin-rfq__field :is(input, textarea, select):focus { border-color: var(--rfq-ink); }
.luyin-rfq__field small:empty, .luyin-rfq__consent small:empty { display: none; }
.luyin-rfq__field small, .luyin-rfq__consent small { color: var(--rfq-error); font-size: .875rem; font-weight: 400; line-height: 1.4; }
.luyin-rfq__field.is-invalid :is(input, textarea, select) { border-color: var(--rfq-error); background: #fffafa; }
.luyin-rfq__help { margin: .55rem 0 1.25rem; color: var(--rfq-muted); font-size: .9375rem; }
.luyin-rfq [data-rfq-context-summary]:not(:empty) { padding: .75rem 1rem; margin-bottom: 1.25rem; background: var(--rfq-surface); border-left: 2px solid var(--rfq-accent); overflow-wrap: anywhere; }
.luyin-rfq__details { margin: 1.35rem 0 1.15rem; border-block: 1px solid var(--rfq-line); }
.luyin-rfq summary { cursor: pointer; list-style: none; }
.luyin-rfq summary::-webkit-details-marker { display: none; }
.luyin-rfq__details > summary, .luyin-rfq__privacy > summary { display: flex; align-items: center; gap: .75rem; min-height: 52px; padding: .8rem 0; font-size: .9375rem; font-weight: 600; }
.luyin-rfq__details > summary::after, .luyin-rfq__privacy > summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; font-weight: 400; }
.luyin-rfq__details[open] > summary::after, .luyin-rfq__privacy[open] > summary::after { content: '−'; }
.luyin-rfq__details > :not(summary) { margin-inline: 0; }
.luyin-rfq__details > :last-child { margin-bottom: 1.25rem; }
.luyin-rfq__route { margin-bottom: 1.15rem; }
.luyin-rfq__consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: .3rem .65rem; align-items: start; margin: .85rem 0 0; color: var(--rfq-muted); font-size: .875rem; line-height: 1.5; }
.luyin-rfq__consent input { width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--rfq-accent); cursor: pointer; }
.luyin-rfq__consent small { grid-column: 2; }
.luyin-rfq__consent a { text-decoration-thickness: 1px; }
.luyin-rfq__consent.is-invalid { color: var(--rfq-error); }
.luyin-rfq__notice { padding: 1rem; background: var(--rfq-surface); border-left: 2px solid var(--rfq-line); margin: 0 0 1.4rem; font-size: .9375rem; }
.luyin-rfq__notice--error { border-color: var(--rfq-error); }
.luyin-rfq__notice--success { border-color: var(--rfq-success); }
.luyin-rfq__upload-gate, .luyin-rfq__privacy-note, .luyin-rfq__use-note, .luyin-rfq__privacy-link { font-size: .875rem; color: var(--rfq-muted); }
.luyin-rfq__alternative { font-size: .875rem; color: var(--rfq-muted); margin: 1rem 0 0; }
.luyin-rfq__actions { margin-top: 1.4rem; display: flex; flex-direction: column; align-items: stretch; gap: .75rem; }
.luyin-rfq button { cursor: pointer; min-height: 46px; border-radius: 3px; }
.luyin-rfq__submit, .luyin-rfq [data-rfq-security-start] { width: 100%; padding: .9rem 1.25rem; border: 1px solid var(--rfq-accent); background: var(--rfq-accent); color: white; font-weight: 600; transition: background-color .15s; }
.luyin-rfq__submit:hover:not(:disabled), .luyin-rfq [data-rfq-security-start]:hover:not(:disabled) { background: var(--rfq-accent-dark); border-color: var(--rfq-accent-dark); }
.luyin-rfq button:disabled { cursor: not-allowed; opacity: .55; }
.luyin-rfq__status { margin: 0; color: var(--rfq-muted); font-size: .9375rem; overflow-wrap: anywhere; }
.luyin-rfq__status:empty { display: none; }
.luyin-rfq__status.is-error, .luyin-rfq [data-choice-state='error'] { color: var(--rfq-error); }
.luyin-rfq__status.is-success { color: var(--rfq-success); }
.luyin-rfq__status.is-loading::before { content: ''; display: inline-block; width: .8rem; height: .8rem; margin-right: .5rem; border: 2px solid var(--rfq-line); border-top-color: var(--rfq-accent); border-radius: 50%; animation: luyin-rfq-spin .7s linear infinite; }
.luyin-rfq [data-rfq-security] { padding: clamp(1.15rem, 3vw, 1.75rem); margin: 1.25rem 0 0; background: var(--rfq-surface); border-top: 2px solid var(--rfq-ink); min-width: 0; }
.luyin-rfq [data-rfq-security] h3 { margin: 0 0 .75rem; font-size: 1.75rem; line-height: 1.15; }
.luyin-rfq [data-rfq-security] p { color: var(--rfq-muted); font-size: .9375rem; line-height: 1.55; overflow-wrap: anywhere; }
.luyin-rfq [data-rfq-security] details { border-top: 1px solid var(--rfq-line); margin: 1rem 0; }
.luyin-rfq [data-rfq-security] details summary { padding: .6rem 0; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.luyin-rfq [data-rfq-security] details summary::after { content: ' +'; }
.luyin-rfq [data-rfq-security] details[open] summary::after { content: ' −'; }
.luyin-rfq [data-rfq-security-cancel], .luyin-rfq [data-rfq-open-privacy] { border: 0; background: transparent; color: var(--rfq-muted); text-decoration: underline; text-underline-offset: .2em; padding: .6rem 0; }
.luyin-rfq [data-rfq-security-cancel] { display: block; margin: .4rem auto 0; }
.luyin-rfq [data-rfq-security-status] { font-size: .875rem; }
.luyin-rfq [data-rfq-widget]:not(:empty) { margin: 1rem auto; min-width: 0; max-width: 100%; }
.luyin-rfq__privacy { border-top: 1px solid var(--rfq-line); margin-top: 1.5rem; }
.luyin-rfq__privacy > summary { color: var(--rfq-muted); font-size: .875rem; font-weight: 400; }
.luyin-rfq [data-rfq-choice-control] { padding: .35rem 0 1rem; font-size: .875rem; color: var(--rfq-muted); overflow-wrap: anywhere; }
.luyin-rfq [data-rfq-choice-control] h3 { font-size: 1.3rem; }
.luyin-rfq [data-rfq-choice-control] textarea { width: 100%; min-height: 5rem; resize: vertical; border: 1px solid var(--rfq-line); border-radius: 3px; margin: .6rem 0; padding: .7rem; font: .8rem/1.6 monospace; overflow-wrap: anywhere; word-break: break-all; color: var(--rfq-ink); background: #fff; }
.luyin-rfq [data-rfq-choice-control] button, .luyin-rfq [data-rfq-new-enquiry] { background: white; border: 1px solid var(--rfq-line); padding: .65rem 1rem; color: var(--rfq-ink); margin: 0 .4rem .4rem 0; }
.luyin-rfq [data-rfq-choice-control] button:hover:not(:disabled), .luyin-rfq [data-rfq-new-enquiry]:hover { border-color: var(--rfq-ink); }
.luyin-rfq [data-rfq-receipt-history] > div { border-top: 1px solid var(--rfq-line); padding-top: .75rem; margin-top: 1rem; }
.luyin-rfq [data-rfq-success] { padding: 2.5rem 0; border-top: 2px solid var(--rfq-success); }
.luyin-rfq [data-rfq-success] h3 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 1rem; }
.luyin-rfq [data-rfq-success] p { color: var(--rfq-muted); }
.luyin-rfq [data-rfq-success-reference] { display: inline-block; font-variant-numeric: tabular-nums; color: var(--rfq-ink); }
.luyin-rfq__trap { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.contact-refresh { background: #f0f2f1; color: #121517; }
.contact-refresh .enquiry-page { background: #f0f2f1; padding: 0 clamp(1.25rem, 5vw, 5rem) 5rem; }
.contact-refresh .enquiry-breadcrumb { display: flex; gap: .75rem; max-width: 1180px; margin: auto; padding: 1.5rem 0; color: #5d666a; font-size: .8125rem; }
.contact-refresh .enquiry-breadcrumb a { color: inherit; text-underline-offset: .2em; }
.contact-refresh .enquiry-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: max-content 1fr; column-gap: clamp(2.5rem, 6vw, 6rem); max-width: 1180px; margin: 0 auto; align-items: start; }
.contact-refresh .enquiry-form-panel { grid-column: 2; grid-row: 1 / span 2; }
.contact-refresh .enquiry-support { grid-column: 1; grid-row: 2; }
.contact-refresh .enquiry-intro { padding-top: 1.75rem; }
.contact-refresh .enquiry-eyebrow { margin: 0 0 1.1rem; color: #727b7f; font-size: .75rem; letter-spacing: .16em; font-weight: 600; }
.contact-refresh .enquiry-intro h1 { margin: 0 0 1.5rem; max-width: 12ch; font-family: 'Luyin Display', 'Arial Narrow', sans-serif; font-size: clamp(3.3rem, 5.4vw, 5.2rem); font-weight: 600; line-height: .98; letter-spacing: -.02em; }
.contact-refresh .enquiry-intro h1 span { color: #b31826; }
.contact-refresh .enquiry-lead { max-width: 32ch; margin: 0 0 .75rem; font-size: 1.2rem; line-height: 1.55; }
.contact-refresh .enquiry-reassurance { max-width: 34ch; color: #606a6e; font-size: .9375rem; line-height: 1.55; }
.contact-refresh .enquiry-response { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid #cdd2d3; }
.contact-refresh .enquiry-response > strong { font-family: 'Luyin Display', sans-serif; font-size: 3rem; line-height: 1; font-weight: 600; }
.contact-refresh .enquiry-response p { margin: 0; font-size: .9375rem; line-height: 1.5; }
.contact-refresh .enquiry-response p span { color: #626d71; font-size: .8125rem; }
.contact-refresh .enquiry-direct { margin-top: 2.75rem; }
.contact-refresh .enquiry-direct > p { margin: 0 0 .4rem; color: #626d71; font-size: .875rem; }
.contact-refresh .enquiry-email { display: inline-flex; align-items: center; gap: 1rem; color: #121517; font-size: 1.35rem; text-decoration: none; border-bottom: 1px solid #aeb6ba; padding: .25rem 0; }
.contact-refresh .enquiry-direct svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.contact-refresh .enquiry-channel-links { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.25rem; margin-top: .75rem; font-size: .875rem; }
.contact-refresh .enquiry-channel-links a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; color: #566064; text-underline-offset: .25em; }
.contact-refresh .enquiry-form-panel { background: white; padding: clamp(1.5rem, 2.5vw, 2.25rem); border-top: 3px solid #b31826; scroll-margin-top: 100px; }
.contact-refresh .enquiry-form-heading { margin-bottom: 1.25rem; }
.contact-refresh .enquiry-form-heading .enquiry-eyebrow { margin-bottom: .65rem; }
.contact-refresh .enquiry-form-heading h2 { margin: 0 0 .5rem; color: #121517; font-size: clamp(2rem, 2.7vw, 2.4rem); line-height: 1.1; }
.contact-refresh .enquiry-form-heading > p:last-child { margin: 0; color: #626d71; font-size: .9375rem; }
.contact-refresh .enquiry-form-panel:has([data-rfq-success]:not([hidden])) .enquiry-form-heading { display: none; }
.contact-refresh .enquiry-page :is(a, button):focus-visible { outline: 3px solid #b31826; outline-offset: 4px; }
@keyframes luyin-rfq-spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .contact-refresh .enquiry-layout { display: flex; flex-direction: column; gap: 1.5rem; }
  .contact-refresh .enquiry-layout > * { width: 100%; }
  .contact-refresh .enquiry-intro { padding-top: .25rem; }
  .contact-refresh .enquiry-intro h1 { font-size: clamp(3rem, 8vw, 4rem); max-width: 18ch; margin-bottom: 1rem; }
  .contact-refresh .enquiry-intro h1 br { display: none; }
  .contact-refresh .enquiry-intro h1 br::after { content: ' '; }
  .contact-refresh .enquiry-lead, .contact-refresh .enquiry-reassurance { max-width: 44ch; }
  .contact-refresh .enquiry-response { margin-top: 1.25rem; padding-top: 1rem; }
  .contact-refresh .enquiry-response > strong { font-size: 2.4rem; }
  .contact-refresh .enquiry-direct { margin-top: 1.25rem; }
  .contact-refresh .enquiry-breadcrumb { padding: 1.25rem 0; }
  .contact-refresh .enquiry-page { padding-bottom: 2.5rem; }
  .contact-refresh .enquiry-form-panel { padding: 1.5rem; }
}
@media (max-width: 450px) {
  .contact-refresh .enquiry-form-panel { padding: 1.25rem; }
  .contact-refresh .enquiry-intro h1 { font-size: 3rem; }
  .luyin-rfq__field input, .luyin-rfq__field textarea, .luyin-rfq__field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .luyin-rfq *, .luyin-rfq *::before { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Keep the existing cookie-preference control in document flow after the footer.
   Only Contact is affected. Vendor hidden/dismissed states and click handling stay intact. */
body.contact-refresh #cmplz-manage-consent {
  background: #0b0d0e;
  text-align: center;
}
body.contact-refresh #cmplz-manage-consent > button.cmplz-manage-consent {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  animation: none !important;
  z-index: auto;
  box-shadow: none;
  margin: .75rem 1.25rem 1.25rem;
  max-width: calc(100% - 2.5rem);
  min-height: 44px;
  height: auto;
  padding: .75rem 1rem;
  border: 1px solid #697277;
  border-radius: 3px;
  background: transparent;
  color: #e0e5e7;
  font: inherit;
  font-size: .875rem;
  line-height: 1.5;
  white-space: normal;
  text-decoration: underline;
  text-underline-offset: .2em;
}
body.contact-refresh #cmplz-manage-consent > button.cmplz-manage-consent:focus-visible {
  outline: 3px solid #e0e5e7;
  outline-offset: 3px;
}
body.contact-refresh #cmplz-manage-consent > button.cmplz-manage-consent.cmplz-show:not(.cmplz-hidden):not(.cmplz-dismissed) {
  display: inline-block;
}
