/* Main Form Container - Fuel Theme Integration */
.guarantee-form {
  max-width: 1170px !important;
  margin: 0 auto;
  padding: 30px;
  background: var(--fuel-background, #fff);
  border-radius: var(--fuel-border-radius, 8px);
  box-shadow: var(--fuel-box-shadow, 0 2px 15px rgba(0, 0, 0, 0.08));
}

.frm_form_field input[type="text"],
.frm_form_field input[type="email"],
.frm_form_field input[type="tel"],
.frm_form_field select,
.frm_form_field textarea {
  border: 1px solid #e7e7e7;
}
/* Step Headers - Fuel Theme Style */
.frm_form_field.frm_section_heading {
  border-bottom: 1px solid var(--fuel-border-color, #e5e7eb);
  margin-bottom: 30px !important;
  padding-bottom: 15px;
}
.frm_style_formidable-style.with_frm_style .form-field.frm_scroll_box {
  min-height: 230px;
  color: #666666;
  font-size: 14px !important;
  font-weight: 400;
  font-family: Outfit, sans-serif;
  line-height: 1.5;
}
.frm_form_field.frm_section_heading h3 {
  color: var(--fuel-heading-color, #111827);
  font-size: var(--wp--preset--font-size--extra-large) !important;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  line-height: 1.3;
  margin: 0 0 10px 0;
}
select:not([name="currency"]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px;
  background: url(
      data:image/svg + xml;utf8,
      <svgfill="black"height="16"viewBox="0 0 24 24"width="16"xmlns="http://www.w3.org/2000/svg"><pathd="M7 10l5 5 5-5z"/></svg>
    )
    no-repeat;
  background-position: right 10px center;
  background-size: 28px;
}
/* Form Fields - Fuel Theme Integration */
.with_frm_style .frm_inside_container.frm_label_float_top > label {
  font-size: 14px;
}
.frm_form_field {
  margin-bottom: 20px;
}

.frm_form_field label {
  display: block !important;
  font-weight: 500 !important;
  color: #1d1d1d !important;
  font-size: 14px !important;
  font-family: Outfit, sans-serif !important;
}
.frm_style_formidable-style.with_frm_style
  .form-field.frm_form_field.frm_section_heading
  h3 {
  margin-top: 20px;
}
.frm_style_formidable-style.with_frm_style .form-field {
  position: relative;
  align-content: end;
}
.frm_style_formidable-style.with_frm_style input + div.frm_description {
  position: absolute;
  top: 0;
  right: 0;
  margin-top: 0;
}
.frm_style_formidable-style.with_frm_style .frm_submit button {
  width: auto;
  background-color: var(--wp--preset--color--foreground);
  border-radius: 100px;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 700;
  padding-top: 7px;
  padding-right: 25px;
  padding-bottom: 7px;
  padding-left: 25px;
  border-width: 0;
  color: #fff;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
}
.frm_style_formidable-style.with_frm_style .frm_submit button:hover {
  padding: 7px 28px;
  opacity: 1;
  color: #fff;
  background-color: var(--wp--preset--color--foreground);
}
/* Input Fields - Fuel Theme Style */
.frm_form_field input[type="text"],
.frm_form_field input[type="email"],
.frm_form_field input[type="tel"],
.frm_form_field select,
.frm_form_field textarea,
.with_frm_style input[type="text"],
.with_frm_style input[type="password"],
.with_frm_style input[type="email"],
.with_frm_style input[type="number"],
.with_frm_style input[type="url"],
.with_frm_style input[type="tel"],
.with_frm_style input[type="phone"],
.with_frm_style input[type="search"],
.with_frm_style select,
.with_frm_style textarea,
.frm_form_fields_style,
.with_frm_style .frm_scroll_box .frm_opt_container,
.frm_form_fields_active_style,
.frm_form_fields_error_style,
.with_frm_style .frm-card-element.StripeElement,
.with_frm_style .frm_slimselect.ss-main {
  width: 100%;
  padding: 12px;
  border: 1px solid;
  border-radius: var(--fuel-input-radius, 6px);
  border-color: #e7e7e7;
  font-size: var(--fuel-input-size, 15px);
  background-color: var(--fuel-input-bg, #fff);
  color: var(--fuel-input-color, #111827);
  transition: all 0.3s ease;
}
.with_frm_style .frm_radio input[type="radio"],
.with_frm_style .frm_checkbox input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  vertical-align: bottom;
  border: 1px solid #e7e7e7;
}
.with_frm_style .frm_checkbox label input[type="checkbox"],
.with_frm_style .frm_radio label input[type="radio"] {
  margin-right: 6px;
}
.frm_form_field input[type="text"],
.frm_form_field input[type="email"],
.frm_form_field input[type="tel"],
.frm_form_field select,
.frm_form_field textarea,
.with_frm_style input[type="text"],
.with_frm_style input[type="password"],
.with_frm_style input[type="email"],
.with_frm_style input[type="number"],
.with_frm_style input[type="url"],
.with_frm_style input[type="tel"],
.with_frm_style input[type="phone"],
.with_frm_style input[type="search"],
.with_frm_style select,
.with_frm_style textarea,
.frm_form_fields_style,
.with_frm_style .frm_scroll_box .frm_opt_container,
.frm_form_fields_active_style,
.frm_form_fields_error_style,
.with_frm_style .frm-card-element.StripeElement,
.with_frm_style .frm_slimselect.ss-main {
  font-size: 14px !important;
}
/* Focus States - Fuel Theme */
.frm_form_field input:focus,
.frm_form_field select:focus,
.frm_form_field textarea:focus {
  border-color: var(--fuel-primary-color, #2563eb);
  outline: none;
  box-shadow: 0 0 0 2px var(--fuel-focus-ring, rgba(37, 99, 235, 0.1));
}

/* Required Fields - Fuel Theme */
.frm_required {
  color: var(--fuel-error-color, #dc2626);
  margin-left: 3px;
}

/* Error States - Fuel Theme */
.frm_error {
  color: var(--fuel-error-color, #dc2626);
  font-size: 13px;
  margin-top: 5px;
}

.frm_error_style {
  background-color: var(--fuel-error-bg, #fef2f2);
  color: var(--fuel-error-color, #dc2626);
  padding: 12px;
  border-radius: var(--fuel-border-radius, 6px);
  margin-bottom: 20px;
  border: 1px solid var(--fuel-error-border, #fecaca);
}

/* Navigation Buttons - Fuel Theme */
.frm_button_submit,
.frm_prev_page,
.frm_next_page {
  padding: 12px 24px;
  font-size: var(--fuel-button-size, 16px);
  font-weight: 500;
  border-radius: var(--fuel-button-radius, 6px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--fuel-button-font, inherit);
}

.frm_button_submit {
  background: var(--fuel-primary-color, #2563eb);
  color: #fff;
  border: none;
}

.frm_button_submit:hover {
  background: var(--fuel-primary-hover, #1d4ed8);
}

.frm_prev_page {
  background: var(--fuel-secondary-bg, #f3f4f6);
  color: var(--fuel-secondary-color, #374151);
  border: 1px solid var(--fuel-border-color, #d1d5db);
  margin-right: 10px;
}

.frm_prev_page:hover {
  background: var(--fuel-secondary-hover, #e5e7eb);
}

.frm_next_page {
  background: var(--fuel-primary-color, #2563eb);
  color: #fff;
  border: none;
}

.frm_next_page:hover {
  background: var(--fuel-primary-hover, #1d4ed8);
}

/* Two Column Layout */
.frm_form_field.frm_first_half {
  float: left;
  margin-right: 2%;
  width: 48%;
}

.frm_form_field.frm_last_half {
  float: right;
  width: 48%;
}

/* Clear Float */
.frm_form_field.frm_clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .guarantee-form {
    padding: 20px;
  }

  .frm_form_field.frm_first_half,
  .frm_form_field.frm_last_half {
    float: none;
    width: 100%;
    margin-right: 0;
  }

  .frm_form_field.frm_section_heading h3 {
    font-size: var(--fuel-mobile-heading-size, 20px);
  }

  .frm_button_submit,
  .frm_prev_page,
  .frm_next_page {
    width: 100%;
    margin: 5px 0;
  }
}

/* Single product pdf download button */
.pdf-btn {
  margin-bottom: 40px;
  display: inline-block;
  width: auto !important;
  background: var(--wp--preset--color--foreground) !important;
  border-radius: 100px !important;
  font-size: var(--wp--preset--font-size--small) !important;
  font-weight: 700;
  padding-top: 7px !important;
  padding-right: 25px !important;
  padding-bottom: 7px !important;
  padding-left: 25px !important;
  border-width: 0 !important;
  color: #fff !important;
  transition: all 0.3s ease !important;
  -webkit-transition: all 0.3s ease !important;
  max-width: fit-content;
}
.pdf-btn:hover {
  padding: 7px 28px !important;
  opacity: 1 !important;
  color: #fff !important;
  background-color: var(--wp--preset--color--foreground) !important;
}

[class^="mas-img-"]:hover {
  opacity: 0.2;
}

/* 1. Hide the toolbar */
#toolbar-div {
  display: none !important;
}

/* 2. Move gal-sidebar to bottom center */
#gal-sidebar {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  height: auto !important;
  max-height: 100px !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 110000 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border-radius: 10px;
}

/* Sidebar thumbnails horizontal layout */
#gal-sidebar .img-preview {
  width: 80px !important;
  height: 60px !important;
  flex-shrink: 0;
  border: 2px solid #fff;
}

/* 3. Move close button to top right of image */
#overlay-close-btn {
  top: 20px !important;
  right: 20px !important;
  position: absolute !important;
  z-index: 200001 !important;
}

/* 404 page design */

.wp-block-button__link:hover {
  background-color: #222;
  color: #fff;
  transition: background-color 0.3s ease;
}
.wp-block-search__button.has-icon {
  line-height: 0;
  border-radius: 8px !important;
}
