/* ============================================================
   Pentapath — Request a Quote
   Buttons / floating CTA / modal / enquiry form
   ============================================================ */

/* ---------- Header CTA button ---------- */
.nav-cta {
  margin-left: 2px;
}

.nav-cta a,
.nav-cta button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad, linear-gradient(90deg, #0A2D4F, #E52421));
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(229, 36, 33, .25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.nav-cta a:hover,
.nav-cta button:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 36, 33, .35);
}

.nav-cta .material-symbols-rounded {
  font-size: 18px;
}

@media (min-width: 769px) and (max-width: 1250px) {
  .navbar .menu {
    gap: 10px;
  }

  .navbar .menu > li > a {
    padding: 8px 8px;
    font-size: 14px;
  }

  .nav-cta a,
  .nav-cta button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .nav-cta .material-symbols-rounded {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .nav-cta {
    width: 100%;
    padding: 15px 20px;
  }

  .nav-cta a,
  .nav-cta button {
    width: 100%;
    justify-content: center;
    border-radius: 10px;
  }
}

/* ---------- Generic quote button ---------- */
.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--grad, linear-gradient(90deg, #0A2D4F, #E52421));
  color: #fff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.btn-quote:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.btn-quote .material-symbols-rounded {
  font-size: 20px;
}

/* ---------- Quote button inside a product card ----------
   style.css renders each card as one big <a>; this override keeps the
   card-level link reset (display:block / color:inherit) from flattening
   the standalone quote button added below the card link. */
.products-grid-cards .product-item a.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 11px 18px;
  font-size: .95rem;
  color: #fff;
  text-decoration: none;
}

/* The in-card quote button stays hidden until the card is hovered.
   opacity + visibility keep the button's space so card heights don't
   jump; the hover media query means touch devices always show it. */
@media (hover: hover) {
  .products-grid-cards .product-item a.btn-quote {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, box-shadow .25s ease;
  }

  .products-grid-cards .product-item:hover a.btn-quote,
  .products-grid-cards .product-item:focus-within a.btn-quote {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Keep the button's own lift feedback on direct hover. */
  .products-grid-cards .product-item a.btn-quote:hover {
    transform: translateY(-2px);
  }
}

.btn-quote-outline {
  background: #fff;
  color: var(--primary, #0A2D4F);
  border: 2px solid var(--primary, #0A2D4F);
}

.btn-quote-outline:hover {
  background: var(--primary, #0A2D4F);
  color: #fff;
}

.hero .btn-quote {
  background: #fff;
  color: var(--primary, #0A2D4F);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.hero .btn-quote:hover {
  background: var(--accent, #E52421);
  color: #fff;
}

/* Hero button row */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Quote CTA band (inline section) ---------- */
.quote-band {
  padding: 56px 20px;
  background: var(--white, #fff);
  width: 100%;
}

.quote-band__inner {
  max-width: var(--max-width, 1100px);
  margin: 0 auto;
  background: var(--grad, linear-gradient(90deg, #0A2D4F, #E52421));
  border-radius: 18px;
  padding: 44px 32px;
  color: #fff;
  text-align: center;
  box-shadow: 0 14px 34px rgba(10, 45, 79, .22);
}

.quote-band h2 {
  color: #fff;
  font-size: 1.9rem;
  margin-bottom: 12px;
}

.quote-band p {
  color: rgba(255, 255, 255, .92);
  max-width: 680px;
  margin: 0 auto 22px;
  font-size: 1.05rem;
}

.quote-band__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.quote-band .btn-quote {
  background: #fff;
  color: var(--primary, #0A2D4F);
}

.quote-band .btn-quote:hover {
  background: #0A2D4F;
  color: #fff;
}

.quote-band .btn-quote-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.quote-band .btn-quote-outline:hover {
  background: #fff;
  color: var(--primary, #0A2D4F);
}

/* ============================================================
   Quote modal
   ============================================================ */
.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
}

.quote-modal.is-open {
  display: block;
}

.quote-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 42, .66);
}

.quote-modal__dialog {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 40px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.quote-panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 780px;
  border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .4);
  overflow: hidden;
  animation: quotePopIn .28s ease;
}

@keyframes quotePopIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.quote-panel__head {
  background: var(--grad, linear-gradient(90deg, #0A2D4F, #E52421));
  color: #fff;
  padding: 26px 28px;
  position: relative;
}

.quote-panel__head h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 6px;
  padding-right: 40px;
}

.quote-panel__head p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
}

.quote-panel__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.quote-panel__close:hover {
  background: rgba(255, 255, 255, .35);
}

.quote-panel__body {
  padding: 26px 28px 30px;
}

body.quote-open {
  overflow: hidden;
}

/* ============================================================
   Enquiry form (shared by modal + inline embeds)
   ============================================================ */
.qf-form {
  display: block;
}

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

.qf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qf-field.qf-full {
  grid-column: 1 / -1;
}

.qf-field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary, #0A2D4F);
}

.qf-field label .req {
  color: var(--accent, #E52421);
}

.qf-field input,
.qf-field select,
.qf-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: #2D3436;
  padding: 11px 13px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #fbfcfe;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.qf-field textarea {
  min-height: 110px;
  resize: vertical;
}

.qf-field input:focus,
.qf-field select:focus,
.qf-field textarea:focus {
  outline: none;
  border-color: var(--accent, #E52421);
  box-shadow: 0 0 0 3px rgba(229, 36, 33, .12);
  background: #fff;
}

/* Radios must keep their native box. The shared input rule above sets
   width:100% + padding + border + background, which stretches the native
   control on several mobile engines so the checked dot lands on the label
   text. Reset those and give a fixed, vertically-centred size instead. */
.qf-field input[type="radio"] {
  width: auto;
  flex: none;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  accent-color: var(--accent, #E52421);
  cursor: pointer;
}

.qf-field input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent, #E52421);
  outline-offset: 2px;
}

.qf-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 4px 2px 0;
}

.qf-radios label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: #2D3436;
  font-size: .92rem;
  cursor: pointer;
}

/* Radios must NOT inherit the full-width text-input styling above.
   With width:100% + padding, mobile browsers stretch the radio itself and
   it overlaps its own label text. Draw a fixed-size custom radio instead. */
.qf-radios input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin: 0;
  padding: 0;
  border: 1px solid #b9c3cf;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.qf-radios input[type="radio"]:checked {
  border: 5px solid var(--accent, #E52421);
  background: #fff;
}

.qf-radios input[type="radio"]:focus,
.qf-radios input[type="radio"]:focus-visible {
  outline: none;
  border-color: var(--accent, #E52421);
  box-shadow: 0 0 0 3px rgba(229, 36, 33, .15);
}

.qf-file {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qf-file input[type="file"] {
  display: none;
}

.qf-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px dashed var(--primary, #0A2D4F);
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--primary, #0A2D4F);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease;
}

.qf-file-btn:hover {
  background: #e8eff7;
}

.qf-file-name {
  font-size: .88rem;
  color: #636E72;
  word-break: break-all;
}

.qf-note {
  font-size: .82rem;
  color: #7b8794;
  margin: 4px 0 0;
}

.qf-error {
  color: var(--accent, #E52421);
  font-size: .9rem;
  margin: 10px 0 0;
}

.qf-submit {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qf-submit .btn-quote {
  padding: 14px 32px;
  font-size: 1.02rem;
}

.qf-success {
  text-align: center;
  padding: 30px 10px 10px;
}

.qf-success .material-symbols-rounded {
  font-size: 56px;
  color: #0f9d58;
}

.qf-success h3 {
  color: var(--primary, #0A2D4F);
  font-size: 1.35rem;
  margin: 12px 0 8px;
}

.qf-success p {
  color: #5b6570;
  margin: 0 auto 18px;
  max-width: 480px;
}

@media (max-width: 640px) {
  .qf-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel__body {
    padding: 20px 18px 26px;
  }

  .quote-panel__head {
    padding: 22px 20px;
  }

  /* 16px keeps iOS Safari from auto-zooming the viewport on focus */
  .qf-field input,
  .qf-field select,
  .qf-field textarea {
    font-size: 16px;
  }

  .qf-radios {
    gap: 14px;
  }
}
