.xpert-quote-form {

  max-width: 800px;

  margin: 0 auto;

  padding: 2rem 2.5rem;

  background: rgba(0, 0, 0, 0.75);

  border-radius: 18px;

  backdrop-filter: blur(4px);

  color: #fff;

  box-sizing: border-box;

}

@media only screen and (max-width: 1000px) {
   #quote-form{
    position: relative !important;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
  }
  #header_title h1{
    font-size: 1.8em !important;
  }
  .elementor-59 .elementor-element.elementor-element-24904cd > .elementor-widget-container{
    padding: 20px 0px 0px 20px !important;
  }
}




.xqf-title {

  margin: 0 0 0.25rem;

  font-size: 1.7rem;

  font-weight: 600;

}



.xqf-subtitle {

  margin: 0 0 1.2rem;

  font-size: 0.95rem;

  opacity: 0.8;

}



/* ICON TABS */

.xqf-type-selector {

  display: flex;

  flex-wrap: wrap;

  gap: 0.6rem;

  margin-bottom: 1.5rem;

}



.xqf-type-btn {

  flex: 1 1 120px;

  min-width: 120px;

  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(0, 0, 0, 0.4);

  color: #fff;

  padding: 0.6rem 0.9rem;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 0.4rem;

  cursor: pointer;

  font-size: 0.9rem;

  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;

}



.xqf-type-btn .xqf-icon {

  font-size: 1.1rem;

}



.xqf-type-btn.active {

  background: #ffffff;

  color: #000;

  border-color: #ffffff;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);

  transform: translateY(-1px);

}



.xqf-type-btn:hover:not(.active) {

  border-color: rgba(255, 255, 255, 0.6);

}



/* GRID & FIELDS */

.xqf-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0.2rem 1.5rem;

  margin-bottom: 1.4rem;

}



.xqf-field {

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

}



.xqf-field label {

  font-size: 0.9rem;

  letter-spacing: 0.02em;

}

.xqf-field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.xqf-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: inherit;
}


.xqf-field input,

.xqf-field select,

.xqf-field textarea {

  width: 100%;

  padding: 0.6rem 0.6rem;

  border-radius: 10px;

  border: 1px solid rgba(255, 255, 255, 0.25);

  background: rgba(0, 0, 0, 0.35);

  color: #fff;

  font-size: 0.95rem;

  outline: none;

  box-sizing: border-box;

}


.xpert-quote-form h2{
  color: white !important;
  font-size: 2em !important;
  text-align: center;
}


.xqf-field input::placeholder,

.xqf-field textarea::placeholder {

  color: rgba(255, 255, 255, 0.55);

}



.xqf-field input:focus,

.xqf-field select:focus,

.xqf-field textarea:focus {

  border-color: #ffffff;

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);

}



.xqf-inline-options {

  display: flex;

  flex-wrap: wrap;
  
  align-items: center;

  gap: 18px;

}

.xqf-inline-options label {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  line-height: 1;
}


.xqf-inline-options input {

  margin-right: 0.25rem;

}




.xqf-full {

  grid-column: 1 / -1;

}



/* PANELS */

.xqf-form-panel {

  display: none;

}



.xqf-form-panel.active {

  display: block;

}



.xqf-consent {

  margin: 0.4rem 0 1.6rem;

}



.xqf-consent label {

  font-size: 0.85rem;

}



/* BUTTON */

.xqf-submit {

  display: inline-block;

  padding: 0.85rem 2.4rem;

  border-radius: 999px;

  border: none;

  background: #ffffff;

  color: #000;

  font-size: 1rem;

  font-weight: 600;

  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;

}



.xqf-submit:hover {

  transform: translateY(-1px);

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);

  background: #f5f5f5;

}



.xqf-submit:active {

  transform: translateY(0);

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);

}



/* RESPONSIVE */

@media (max-width: 768px) {

  .xpert-quote-form {

    padding: 1.5rem;

  }



  .xqf-grid {

    grid-template-columns: 1fr;

  }



  .xqf-type-selector {

    flex-wrap: nowrap;

    overflow-x: auto;

  }



  .xqf-type-btn {

    flex: 0 0 auto;

  }



  .xqf-submit {

    width: 100%;

    text-align: center;

    margin-top: 0.5rem;

  }

}


/* ZIP autocomplete container */
.location_list {
  list-style: none !important;
  margin: 0;
  padding: 0;

  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 999999;

  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;

  max-height: 250px;
  overflow-y: auto;
  backdrop-filter: blur(6px);
}

/* Remove ALL list markers from ALL themes */
.location_list li,
.location_list li::before,
.location_list li::after,
.location_list li::marker {
  content: "" !important;
  list-style-type: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Each item */
.location_list li {
  padding: 12px 14px;
  cursor: pointer;
  color: #fff;
  font-size: 0.95rem;

  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Last item without border */
.location_list li:last-child {
  border-bottom: none;
}

/* Hover effect */
.location_list li:hover {
  background: rgba(255,255,255,0.12);
}

.xqf-success {
    background: #4CAF50;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    opacity: 1;
    transition: opacity 1s ease-out;
}

/* Radio: needs display:block on ::before to render in grid cell */
.xpert-quote-form .xqf-inline-options input[type="radio"],
.xpert-quote-form .xqf-inline-options input[type="checkbox"] {
  margin: 0;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;

  border: 2px solid #ffffff !important;
  background: transparent !important;
  cursor: pointer !important;

  /* Keep inline-grid for centering, but ensure pseudo renders */
  display: inline-grid !important;
  place-items: center !important;  /* use place-items, not place-content */
  vertical-align: middle !important;
}
/* Radio selected state — use box-shadow instead of ::before */
.xpert-quote-form .xqf-inline-options input[type="radio"]:checked {
  background: transparent !important;
  box-shadow: inset 0 0 0 4px #ffffff !important;
  border: 2px solid #ffffff !important;
}
.xpert-quote-form .xqf-inline-options input[type="radio"]:checked::before {
  content: none !important;
  display: none !important;    
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #ffffff !important;
}

input[type="radio"] {
  box-shadow: inset 0 0 0 10px #fff !important;
  background-color: #fff !important;
  appearance: auto; /* Restore default appearance */
  accent-color: #fff;
}

.xpert-quote-form .xqf-inline-options input[type="radio"] {
  border-radius: 50% !important;
}

.xpert-quote-form .xqf-inline-options input[type="checkbox"] {
  border-radius: 4px !important;
}

/* FIX 2: Checkbox — use an SVG background instead of a text character */
.xpert-quote-form .xqf-inline-options input[type="checkbox"]:checked {
  background: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 10px !important;
}

/* Ensure the checkbox ::before is suppressed */
.xpert-quote-form .xqf-inline-options input[type="checkbox"]:checked::before {
  content: none !important;
}

.xqf-validation-error {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}



.xqf-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #111;
  border: 1px solid #08741f;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  animation: xqfSlideIn 0.35s ease both;
}

.xqf-toast::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: #08741f;
  border-radius: 0 0 0 12px;
  animation: xqfProgress 4s linear 0.35s both;
}
@keyframes xqfSlideIn {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes xqfProgress {
  from { width: 100%; }
  to   { width: 0%; }
}


.xqf-toast-icon {
  width: 2.25em; height: 2.25em; flex-shrink: 0;
  background: #1e1e1e;
  border: 0.0625em solid #08741f;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.xqf-check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: xqfCheck 0.4s ease 0.4s forwards;
}
@keyframes xqfCheck {
  to { stroke-dashoffset: 0; }
}

.xqf-toast-body strong {
  display: block;
  font-size: 0.9em; font-weight: 700;
  color: #fff; letter-spacing: 0.03em;
  margin-bottom: 0.1875em;
}

.xqf-toast-body span { font-size: 0.8em; color: #ababab; }

.xqf-toast-close {
  background: none; border: none;
  color: #555; font-size: 1.125em;
  cursor: pointer; padding: 0 0 0 0.5em;
  margin-left: auto; line-height: 1;
}

.xqf-toast-close:hover { color: #fff; }

#xqf-date {
  color: #fff;
}

#xqf-date::-webkit-calendar-picker-indicator {
  filter: invert(1);
}