/* this class might get removed when we remove the bridge core, use elementor classes then  */

body.page-id-33363 {
  /* qode overrides */

  .qode_grid_140 .container_inner {
    max-width: 100% !important;
    padding: 0 20px !important;
  }

  .gform_wrapper.gravity-theme .gform_previous_button.button {
    color: #6b7280 !important;
  }

  /* body.page-id-30825 p {
    color: black;
} */

  .gform_wrapper.gravity-theme #gform_page_30_1 .gform_fields {
    grid-template-rows: repeat(2, 1fr);
  }

  #gform_wrapper_30 {
    #gform_page_30_1 .gform_page_footer {
      position: relative;
      top: 110px;
    }

    div.ginput_container {
      padding-top: unset !important;
    }

    label.gfield_label.gform-field-label {
      color: black;
      font-size: 14px !important;
    }

    .offerte-info-block {
      background: #f0eddc;
      border-radius: 10px;
      padding: 40px;
    }

    .offerte-info-block h3,
    .offerte-info-block p {
      color: #675b22;
    }

    .offerte-info-block h3 {
      line-height: 32px;
      font-size: 24px;
    }

    input,
    label,
    p {
      font-size: 16px;
      color: black;
      line-height: 28px;
    }

    .gform_wrapper.gravity-theme input[type="button"].gform_previous_button.button {
      color: white !important;
    }

    input[type="text"],
    input[type="email"] {
      border-radius: 10px !important;
    }

    /*position */

    .gform_wrapper.gravity-theme .gfield.gfield--width-three-quarter {
      grid-column: 5 / end;
    }

    div.info-block.gfield.gfield--width-half {
      grid-column: span 4;
    }

    .gform_wrapper.gravity-theme .gfield.gfield--width-three-quarter {
      grid-column: 5 / end;
    }

    div.info-block {
      grid-column: span 4;
      grid-row: span 4;
    }

    div.title-block {
      grid-column: 6 / end !important;
    }

    div.text-block {
      grid-row: 3;
      grid-column: 6 / end !important;
    }

    div.text-block#field_30_5 {
      grid-row: 2;
      grid-column: 6 / end !important;
      top: 180px;
      position: relative;
    }

    div.text-block#field_30_154 {
      grid-row: 2;
      top: 90px;
      position: relative;
    }

    div#field_30_14 {
      position: relative;
      top: 110px;
    }

    .checkbox-block {
      grid-column: 6 / end !important;
    }

    div.list-block {
      grid-column: 6 / end !important;
    }

    .radio-block {
      grid-row: 2;
      grid-column: 6 / end !important;
    }

    /* intro-name */

    div.text-block#field_30_4 {
      grid-row: 2;
    }

    /* title */

    .ginput_container.ginput_container_number > input {
      border-bottom: none !important;
      border: 1px solid var(--md-blue) !important ;
      border-radius: 10px !important;
    }

    .checkbox-block.filled .gfield_description {
      color: black;
      font-size: 12px !important;
      padding: 0;
      padding-bottom: 0 !important;
    }

    .offerte-title h2 {
      margin-bottom: 0;
    }

    .offerte-title .section-title {
      color: var(--blue);
    }

    p.description-italic {
      font-size: 14px !important;
      font-style: italic;
      font-weight: 300;
    }

    /* list-block */

    .list-block ul {
      list-style: none; /* remove default bullet */
      padding-left: 0; /* reset indentation */
      margin: 0;
    }

    .list-block ul li {
      position: relative;
      padding-left: 2em; /* make room for icon */
      margin-bottom: 1.5em;
      color: black;
      font-size: 16px;
    }

    /* Inline SVG as background, with control over size/align */
    .list-block ul li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 2px;
      width: 1.25em; /* control icon width */
      height: 1.25em; /* control icon height */
      background: url("/wp-content/uploads/2025/07/BOEM-check-icon-svg_v1_07072025.svg") no-repeat center / contain;
    }

    /* outline  */

    .outline.gfield .ginput_container input {
      border-bottom: none;
    }

    .outline.gfield .ginput_container {
      background: transparent;
      border: 1px solid #b3bcfd;
      border-radius: 10px;
    }

    label.gfield_label.gform-field-label {
      color: black;
      font-size: 14px !important;
    }

    /* filled */

    .checkbox-block.filled .gfield_checkbox {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .checkbox-block.filled .gchoice {
      background: var(--lg-blue);
      padding: 7px;
      border-radius: 10px;
    }

    .checkbox-block label {
      color: black;
      margin-bottom: 1px;
    }

    .checkbox-block.filled input {
      accent-color: var(--blue) !important;
    }

    .radio-block.filled .gfield_radio {
      padding: 5px;
      border-radius: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .radio-block.filled .gchoice {
      background: var(--lg-blue);
      padding: 7px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* override defaults */

    .radio-block.filled input[type="radio"] {
      appearance: none;
      -webkit-appearance: none; /* Safari */
      width: 20px;
      height: 20px;
      border: 1px solid var(--md-blue); /* slate-400 */
      border-bottom: 1px solid var(--md-blue) !important;
      border-radius: 50% !important;
      cursor: pointer;
      position: relative;
    }

    .radio-block.filled input[type="radio"]:checked {
      border-color: var(--md-blue); /* blue-500 */
    }

    .radio-block.filled input[type="radio"]:checked::after {
      content: "";
      position: absolute;
      width: 100%;
      height: 100%;
      border: 1px solid var(--blue);
      border-radius: 50%;
      background: var(--blue); /* dot color */
    }

    .checkbox-block.filled input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none; /* Safari */
      width: 20px;
      height: 20px;
      border: 1px solid var(--md-blue); /* Tailwind slate-300 style */
      border-bottom: 1px solid var(--md-blue) !important;
      border-radius: 4px !important;
      background-color: #fff;
      cursor: pointer;
      display: inline-block;
      vertical-align: middle;
      position: relative;
    }

    .checkbox-block.filled input[type="checkbox"]:checked {
      background-color: var(--blue);
      border-color: var(--blue);
      border-bottom: 2px solid var(--blue) !important;
    }

    .checkbox-block.filled input[type="checkbox"]:checked::after {
      content: "";
      position: absolute;
      top: 3px;
      left: 7px;
      width: 5px;
      height: 10px;
      border: solid white;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    /* buttons */

    input[type="button"].gform_next_button,
    input[type="submit"].gform_button {
      background: var(--red);
      border-radius: 100px;
      border: none;
      color: white;
      text-transform: capitalize;
      font-weight: 400;
      min-width: 125px;
      text-align: center;
    }

    .gform_page.Summary input[type="submit"].gform_button {
      background: white;
      color: var(--blue);
      margin: 0;
    }

    input[type="button"].gform_next_button:hover,
    input[type="submit"].gform_button:hover {
      border: var(--red) 1px solid;
      background: transparent;
      color: var(--red) !important;
    }

    .gform_page.Summary input[type="submit"].gform_button:hover {
      border: white 1px solid;
      background: transparent;
      color: white !important;
    }

    input[type="button"].gform_previous_button {
      background: transparent;
      border-radius: 100px;
      border: var(--dk-blue) 1px solid;
      color: var(--dk-blue) !important;
      text-transform: capitalize;
      font-weight: 400;
      min-width: 125px;
      text-align: center;
    }

    input[type="button"].gform_previous_button:hover {
      background: var(--dk-blue);
      color: white !important;
    }

    .gform_page.Summary input[type="button"].gform_previous_button {
      margin-bottom: 0;
      color: white !important;
      border: white 1px solid;
    }

    .gform_page.Summary input[type="button"].gform_previous_button:hover {
      background: white;
      color: var(--blue) !important;
    }

    span.small-under-txt {
      font-size: 14px !important;
      font-style: italic;
      font-weight: 300;
    }

    /* footer */

    /* ---------- Footer (steps + total) ---------- */

    .gform_page_footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
      padding: 2rem;
    }

    .gform_page.Summary .gform-page-footer {
      background: var(--blue);
    }

    .gf-custom-steps {
      order: 0;
      margin-right: auto;
      margin-bottom: 10px;
    }

    .gf-total-footer {
      margin-right: auto;
      font-size: 1rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .gf-total-footer-amount {
      font-weight: 700;
      font-size: 2rem;
      font-family: "Gustavo_trial-Bold";
    }

    .gf-price-summary.gf-price-summary--accordion .gf-ps-total {
      display: none;
    }

    /* ---------- Legacy summary list (if still used anywhere) ---------- */
    .gf-price-summary {
      margin: 1rem 0;
      font-size: 14px;
    }
    .gf-price-summary .gf-ps-header {
      margin-bottom: 0.25rem;
    }
    .gf-price-summary .gf-ps-list {
      list-style: none;
      margin: 0.25rem 0 0.5rem;
      padding: 0;
    }
    .gf-price-summary .gf-ps-list li {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.15rem 0;
    }
    .gf-price-summary .gf-ps-total,
    .gf-ps-total {
      display: flex;
      justify-content: space-between;
      font-weight: 700;
      border-top: 1px solid #e5e7eb;
      padding-top: 0.5rem;
      margin-top: 0.75rem;
    }

    /* ---------- Step bars (if shown on non-summary pages) ---------- */
    .gf-steps-label {
      font-size: 14px;
      line-height: 1;
      padding-bottom: 10px;
      color: black;
    }
    .gf-steps-bars {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 1fr;
      gap: 0.5rem;
      width: 240px;
      max-width: 100%;
    }
    .gf-step-bar {
      height: 6px;
      border-radius: 9999px;
      background: #eaedf3;
    }
    .gf-step-bar.is-active {
      background: #1f2f6b;
    }

    /* ---------- Accordion summary ---------- */
    .gf-price-summary--accordion {
      margin-top: 1rem;
    }
    .gf-ps-acc-section {
      background: #f6f8ff;
      margin-bottom: 0.75rem;
      overflow: hidden; /* keeps rounded corners during animation */
    }
    .gf-ps-acc-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.8rem 1rem;
      cursor: pointer;
      user-select: none;
    }
    .gf-ps-acc-title {
      font-weight: 700;
      font-size: 1rem;
      color: #000;
    }
    .gf-ps-acc-subtotal {
      font-weight: 700;
      font-size: 1rem;
      color: #000;
    }
    .gf-ps-chevron {
      display: inline-flex;
      margin-left: 0.6rem;
      transition: transform 0.25s ease;
      bottom: 2px;
      position: relative;
    }
    .gf-ps-acc-section[aria-expanded="true"] .gf-ps-chevron {
      transform: rotate(180deg);
    }
    .gf-ps-acc-body {
      background: #fff;
      padding: 0 1rem; /* horizontal padding always present */
      overflow: hidden; /* hide while animating height */
      max-height: 0;
      opacity: 0;
      transition: max-height 0.32s ease, opacity 0.18s ease;
    }
    .gf-ps-acc-body-inner {
      padding: 0.65rem 0 1rem; /* vertical padding for content */
    }
    .gf-ps-acc-body ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    .gf-ps-acc-body li {
      display: flex;
      justify-content: space-between;
      gap: 0.75rem;
      padding: 0.35rem 0;
    }

    /* Item text lines */
    span.gf-ps-item-name {
      font-size: 1rem;
      color: #000;
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    }
    small.gf-ps-item-info,
    .gf-ps-item-name small.gf-ps-item-info {
      color: var(--md-blue); /* subtle */
      font-weight: 400;
    }
    span.gf-ps-item-price {
      color: #000;
      font-weight: 500;
      font-size: 1rem;
    }

    .gf-ps-acc-body li {
      align-items: center;
    }
    .gf-ps-action.gf-ps-remove {
      margin-left: 0.5rem;
      border: none;
      background: transparent;
      color: #9ca3af;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }
    .gf-ps-qty {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      margin-left: 0.75rem;
    }
    .gf-ps-qty-btn {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: 1px solid #e5e7eb;
      background: #fff;
      cursor: pointer;
    }
    .gf-ps-qty-value {
      min-width: 1.5ch;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }

    /* keep list layout tidy when some items have no price */
    .gf-ps-acc-body .gf-ps-item-name {
      display: inline-block;
    }
    .gf-ps-acc-body .gf-ps-item-price {
      display: inline-block;
      float: right;
    }

    p.section-under-title {
      padding-top: 15px;
    }
    /*  total in footer */

    .gform_page .gform-page-footer .gf-total-footer {
      display: none;
    }

    .gform_page.Summary .gform-page-footer .gf-total-footer {
      color: white;
      font-weight: 300;
      display: flex;
      align-items: flex-start;
      flex-direction: column;
    }

    /* pagination in footer */

    .gform_page.intro .gform-page-footer .gf-custom-steps {
      display: none;
    }

    /* ---------- Reduced motion ---------- */
    @media (prefers-reduced-motion: reduce) {
      .gf-ps-chevron,
      .gf-ps-acc-body {
        transition: none !important;
      }
    }

    /* 
.none {
    display: none;
} */

    @media (max-width: 1024px) {
      .offerte-info-block {
        display: none;
      }
      div.title-block {
        grid-column: 1 / end !important;
        grid-row: 1;
      }
      .checkbox-block {
        grid-column: 1 / end !important;
        grid-row: 2;
      }
      div.list-block {
        grid-column: 1 / end !important;
        grid-row: 2;
      }
      div.text-block {
        grid-column: 1 / end !important;
      }
      div.text-block#field_30_5 {
        grid-column: 1 / end !important;
      }
      div.ginput_container {
        padding-top: 0 !important;
      }
      .radio-block {
        grid-column: 1 / end !important;
        grid-row: 2;
      }
    }

    @media (max-width: 768px) {
      .gf-steps-bars {
        width: auto;
      }
      .gf-custom-steps {
        order: 99;
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        padding-top: 30px;
      }

      .gform_page_footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 20px;
        flex-wrap: wrap;
        margin-left: -20px;
        margin-right: -20px;
        padding: 20px;
        width: calc(100% + 40px);
        box-sizing: border-box;
      }
      p.section-under-title {
        padding-top: 10px;
      }
    }

    .counter--hidden {
      display: none !important;
    }

    div#gfield_instruction_30_74,
    div#gfield_instruction_30_72,
    div#gfield_instruction_30_138,
    div#gfield_instruction_30_139,
    div#gfield_instruction_30_141,
    div#gfield_instruction_30_142 {
      display: none;
    }
  }
}

body.page-id-30825 div.gform_wrapper.gravity-theme .gfield input.gfield-choice-input {
  border-radius: 4px !important;
}
