.hero-quick {
  min-height: 544px;
  background-color: #7979B9;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.hero-quick h1 {
  color: white;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: -1.44px;
  margin-top: 0;
}

.hero-quick p {
  color: white;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}


/* FORM */

.form-quick {
  position: relative;
  z-index: 2;
}

.form-group {
  width: 100%;
  margin-top: -145px;
  border: 1px solid rgba(9, 9, 17, 0.10);
  background: white;
  padding: 20px 40px 40px;
}

.cf7-form > div > h2,
.cf7-form .cf7-section-heading p {
  color: #090911;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 12px;
  margin-top: 32px;
}

.cf7-form .cf7-section-heading:first-of-type p,
.cf7-form > .cf7-section-heading:first-child p {
  margin-top: 0;
}

.cf7-form .cf7-section-heading p {
  margin-top: 32px;
}

.cf7-dropdown-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-bottom: 20px;
}

.dropdown-container {
  position: relative;
  min-width: 0;
}

/* Row 1: Badges + Keyrings | Row 2: Other (Medals, Cufflinks, Custom) */
.cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) {
  grid-column: 1 / -1;
}

.cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) .dropdown-content .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) .dropdown-content .wpcf7-list-item {
  margin: 0;
  flex: 0 0 auto;
}

.dropdown-header {
  background-color: white;
  border: 1px solid rgba(9, 9, 17, 0.10);
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.dropdown-header p {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0;
}

.dropdown-header:hover {
  background-color: #e8e8e8;
}

.dropdown-header.active {
  background-color: #e0e0e0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-title {
  font-weight: 600;
  font-size: 15px;
  color: #333;
}

.dropdown-arrow {
  display: block;
  width: 12px;
  height: 15px;
  background-image: url(images/faqs-arrows.png);
  background-position: 0px 7px;
  background-repeat: no-repeat;
  transform: rotate(0deg);
  transform-origin: 6px 10px;
  transition: transform 0.3s ease;
}

.dropdown-header.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  border: 1px solid #ddd;
  border-top: none;
  background-color: #fff;
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-content.active {
  display: block;
}

.dropdown-content .wpcf7-list-item {
  margin: 8px 0;
  display: block;
}

.dropdown-content .wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  transition: background-color 0.2s ease;
  border-radius: 3px;
}

.dropdown-content .wpcf7-list-item label:hover {
  background-color: #f9f9f9;
}

.dropdown-content input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin-top: 0;
  box-sizing: border-box;
}

/* Scrollbar personalizada */
.dropdown-content::-webkit-scrollbar {
  width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.cf7-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.cf7-fields .field {
  flex: 1;
  width: 100%;
  min-width: 0;
}

/* Quantity — label (heading), field, then note: one element per row, 100% width */
.cf7-fields--quantity {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 4px;
}

.cf7-fields--quantity .field {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.cf7-fields--quantity .field .wpcf7-form-control-wrap,
.cf7-fields--quantity .field input[type="number"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.cf7-fields--quantity > p {
  width: 100%;
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  color: rgba(9, 9, 17, 0.5);
}

.cf7-fields--quantity > p small {
  font-size: inherit;
  color: inherit;
}

/* Fallback if layout classes are not injected */
.cf7-dropdown-checkboxes + .cf7-section-heading + .cf7-fields {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.cf7-dropdown-checkboxes + .cf7-section-heading + .cf7-fields .field,
.cf7-dropdown-checkboxes + .cf7-section-heading + .cf7-fields > p {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.cf7-fields--quantity + .cf7-section-heading + .cf7-fields,
.cf7-form--quick-quote .cf7-section-heading + .cf7-fields:has(textarea[name="comments"]) {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 16px;
}

.cf7-fields--quantity + .cf7-section-heading + .cf7-fields .field,
.cf7-form--quick-quote .cf7-section-heading + .cf7-fields:has(textarea[name="comments"]) > .field {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Comments + file upload — one field per row, full width */
.cf7-fields--details,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]),
.cf7-form--quick-quote .cf7-fields:has(.wpcf7-form-control-wrap.comments),
#quick-quote .cf7-fields:has(textarea[name="comments"]),
#quick-quote .cf7-fields:has(.wpcf7-form-control-wrap.comments) {
  display: flex;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 16px;
}

.cf7-fields--details > .field,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) > .field,
.cf7-form--quick-quote .cf7-fields:has(.wpcf7-form-control-wrap.comments) > .field,
#quick-quote .cf7-fields:has(textarea[name="comments"]) > .field,
#quick-quote .cf7-fields:has(.wpcf7-form-control-wrap.comments) > .field {
  flex: none !important;
  flex-basis: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
}

.cf7-fields--details .field .wpcf7-form-control-wrap,
.cf7-fields--details .field textarea,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) .wpcf7-form-control-wrap,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) textarea,
#quick-quote .cf7-fields:has(textarea[name="comments"]) textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.cf7-fields--details .field textarea,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) textarea,
#quick-quote .cf7-fields:has(textarea[name="comments"]) textarea {
  min-height: 112px;
  resize: vertical;
}

.cf7-fields--details .field .btn-attach,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) .btn-attach,
#quick-quote .cf7-fields:has(textarea[name="comments"]) .btn-attach {
  width: 100%;
}

/* CF7 sometimes wraps controls in <p> instead of .field */
.cf7-fields--details > p,
.cf7-form--quick-quote .cf7-fields:has(textarea[name="comments"]) > p {
  width: 100%;
  margin: 0;
  flex: none !important;
}

.cf7-fields .field p span input,
.cf7-fields .field p span textarea {
  padding: 12px 15px;
  background: #fff;
  border: 1px solid rgba(7, 18, 9, 0.1);
  box-shadow: none;
  border-radius: 0px;
  height: auto;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  color: #555;
  outline: none;
  transition: all 0.3s ease;
}

.cf7-fields .field p span input:focus,
.cf7-fields .field p span textarea:focus {
  border: 1px solid rgba(9, 9, 17, 0.40);
  box-shadow: none;
  outline: none;
}

.cf7-fields .field p span input[type=number]::placeholder,
.cf7-fields .field p span input[type=tel]::placeholder {
  font-weight: 300;
}

.cf7-fields .field .btn-attach {
  width: 100%;
}

.cf7-fields .field .file {
  border: 1px solid #090911;
  background: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05) !important;
  padding: 13px 12px;
  display: inline-block;
  height: 47px;
  cursor: pointer;
  position: relative;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  color: #090911 !important;
  text-align: center;
  white-space: nowrap;
  background-color: #FFFFFF;
  width: 100%;
  background-image: url(images/icon-upload.svg);
  background-repeat: no-repeat;
  background-position: 32% center;
  padding-left: 40px;
}

.cf7-fields .field input[type=file] {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.cf7-fields .field .btn-attach .max-file,
.cf7-fields .field .btn-attach #file-name-display {
  font-size: 13px;
  color: #a8a8a8;
}

/* Brands Carousel */
.brands {
  padding: 120px 0 0;
}

.brands h2 {
  color: #090911;
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -0.96px;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
}

/* Responsive */
@media (max-width: 1199px) {
  .hero-quick {
    padding: 150px 0 100px;
  }

  .cf7-fields .field .file {
    background-position: 25% center;
  }
}

@media (max-width: 991px) {
  .hero-quick {
    min-height: 519px;
  }
  
  .hero-quick h1 {
    font-size: 36px;
    line-height: 46px;
  }

  .cf7-fields .field .file {
    background-position: 17% center;
  }
}

@media (max-width: 768px) {
  .hero-quick {
    min-height: unset;
    height: auto;
    padding: 40px 0 40px;
  }

  .form-group {
    margin-top: 0;
    padding: 0;
    border: none;
  }

  .cf7-fields {
    flex-direction: column;
  }

  .cf7-dropdown-checkboxes {
    grid-template-columns: 1fr;
  }

  .cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) {
    grid-column: 1;
  }

  .brands h2 {
    font-size: 26px;
  }
}

/* Quick Quote drawer modal (#quick-quote in footer) */
#quick-quote .modal-dialog {
  transform: translate3d(100%, 0, 0);
  transition: transform 0.3s ease-out;
}

#quick-quote.show .modal-dialog,
#quick-quote.in .modal-dialog {
  transform: translate3d(0, 0, 0);
}

#quick-quote .modal-dialog .modal-content .modal-body .cf7-form > div > h2 {
  margin-top: 24px;
}

#quick-quote .cf7-dropdown-checkboxes {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

#quick-quote .cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) {
  grid-column: 1 / -1;
}

#quick-quote .cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) .dropdown-content .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

#quick-quote .cf7-section-heading p {
  color: #090911;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px !important;
  margin-top: 28px;
}

#quick-quote .cf7-section-heading:first-of-type p {
  margin-top: 0;
}

#quick-quote .cf7-fields--quantity {
  gap: 8px;
}

#quick-quote .cf7-fields:not(.cf7-fields--quantity):not(.cf7-fields--details):not(:has(textarea[name="comments"])) {
  gap: 12px 16px;
}

#quick-quote .cf7-fields:not(.cf7-fields--quantity):not(.cf7-fields--details):not(:has(textarea[name="comments"])) input[type="text"],
#quick-quote .cf7-fields:not(.cf7-fields--quantity):not(.cf7-fields--details):not(:has(textarea[name="comments"])) input[type="email"],
#quick-quote .cf7-fields:not(.cf7-fields--quantity):not(.cf7-fields--details):not(:has(textarea[name="comments"])) input[type="tel"] {
  height: 49px;
  max-height: 49px;
}

#quick-quote [data-name="firstname"],
#quick-quote [data-name="companyname"],
#quick-quote [data-name="email"],
#quick-quote [data-name="phone"] {
  margin-bottom: 12px;
  display: block;
}

#quick-quote .cf7-fields--details,
#quick-quote .cf7-fields:has(textarea[name="comments"]) {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 16px;
}

#quick-quote .cf7-fields--details > .field,
#quick-quote .cf7-fields:has(textarea[name="comments"]) > .field {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

#quick-quote .cf7-fields--quantity > p {
  font-size: 12px;
  color: rgba(7, 18, 9, 0.5);
}

#quick-quote .dropdown-content {
  z-index: 1060;
}

#quick-quote .dropdown-content input[type="checkbox"],
#quick-quote .dropdown-content .wpcf7-list-item label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
  margin-top: 0;
  box-sizing: border-box;
}

#quick-quote .cf7-fields .field p {
  margin-bottom: 0;
}

#quick-quote .cf7-fields .field .btn-attach .max-file,
#quick-quote .cf7-fields .field .btn-attach #file-name-display {
  display: block;
  margin-top: 6px;
}

#quick-quote input[type="submit"],
#quick-quote .wpcf7-submit {
  width: 100%;
  padding: 16px 28px;
  border: 1px solid var(--Brand-600, #464686);
  background: var(--Brand-600, #464686);
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  border-radius: 0;
}

#quick-quote input[type="submit"]:hover,
#quick-quote .wpcf7-submit:hover {
  background: #52529f;
  border-color: #52529f;
}

@media (max-width: 991px) {
  #quick-quote .cf7-dropdown-checkboxes {
    grid-template-columns: 1fr;
  }

  #quick-quote .cf7-dropdown-checkboxes > .dropdown-container:nth-child(3) {
    grid-column: 1;
  }

}