@use "../abstracts" as *;


.form-select:focus {
  border-color: transparent !important;
  outline: 0;
  box-shadow: none !important;
}

.service-details {
  position: relative;
  padding: rem(100) 0;

  @media (max-width: 1399px) {
    padding: rem(90) 0;
  }

  @media (max-width: 1199px) {
    padding: rem(80) 0;
  }

  @media (max-width: 991px) {
    padding: rem(70) 0;
  }

  @media (max-width: 767px) {
    padding: rem(60) 0;
  }

  @media (max-width: 575px) {
    padding: rem(50) 0;
  }

  &__content {
    padding-right: rem(30);

    @media (max-width: 991px) {
      padding-right: 0;
    }
  }

  &__title {
    font-family: $font-family-base;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -2%;

    margin-bottom: rem(20);
    color: #191825;

    @media (max-width: 1199px) {
      font-size: rem(28);
    }

    @media (max-width: 991px) {
      font-size: rem(24);
    }

    @media (max-width: 767px) {
      font-size: rem(20);
    }

    @media (max-width: 575px) {
      font-size: rem(24);
    }
  }

  &__subtitle {
    font-family: $font-family-base;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -2%;
    margin-bottom: rem(30);
    color: #191825;

    @media (max-width: 1199px) {
      font-size: 26px;
    }

    @media (max-width: 767px) {
      font-size: 24px;
      margin-bottom: rem(20);
    }

    &-two {
      font-family: $font-family-base;
      font-weight: 700;
      font-size: 24px;
      line-height: 100%;
      letter-spacing: -2%;
      margin-bottom: 30px;

      @media (max-width: 1199px) {
        font-size: 22px;
      }

      @media (max-width: 767px) {
        font-size: 20px;
      }
    }
  }

  &__text {
    color: #878C8F;
    margin-bottom: rem(30);
    line-height: $line-height-base;

    @media (max-width: 767px) {
      font-size: rem(15);
      margin-bottom: rem(20);
    }
  }

  &__sub-section {
    margin-top: rem(50);
    margin-bottom: rem(30);

    @media (max-width: 1199px) {
      margin-top: rem(30);
      margin-bottom: 10px;
    }
  }

  &__mistakes-img {
    border-radius: rem(10);
    overflow: hidden;

    img {
      width: 100%;
      height: auto;
      object-fit: cover;
    }
  }

  &__list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
      margin-bottom: rem(20);
      color: #878C8F;
      font-family: $font-family-base;
      font-weight: 500;
      font-size: rem(16);
      line-height: rem(28);
      letter-spacing: 0%;

      &:last-child {
        margin-bottom: 0;
      }


      @media (max-width: 767px) {
        font-size: rem(15);
        margin-bottom: rem(15);
      }

      i {
        position: absolute;
        left: 0;
        top: rem(4);
        color: $color-primary;
        font-size: rem(18);

        @media (max-width: 767px) {
          font-size: rem(16);
        }
      }
    }
  }

  &__doc-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: rem(40);
    flex-wrap: wrap;

    @media (max-width: 767px) {
      gap: rem(20);
    }
  }

  &__doc-item {
    display: flex;
    gap: rem(20);
    border-radius: rem(15);
    height: 100%;
    transition: transform 0.3s ease;
    max-width: 342px;

    @media (max-width: 1199px) {
      max-width: 100%;
    }

    &:hover {
      transform: translateY(-5px);
    }

    &-icon {
      i {
        font-size: rem(45);
        color: $color-primary;

        @media (max-width: 767px) {
          font-size: rem(35);
        }
      }
    }

    &-info {
      h4 {
        font-size: rem(20);
        font-weight: 700;
        margin-bottom: rem(10);
        color: #191825;

        @media (max-width: 767px) {
          font-size: rem(18);
        }
      }

      p {
        margin: 0;
        color: #878C8F;
        font-size: rem(15);

        @media (max-width: 767px) {
          font-size: rem(14);
        }
      }
    }
  }

  &__sidebar {
    padding-left: rem(20);

    @media (max-width: 991px) {
      padding-left: 0;
    }
  }

  &__widget {
    background: #f1f3f9;
    padding: rem(40) rem(30);
    border-radius: rem(10);
    margin-bottom: rem(30);

    &:last-child {
      margin-bottom: 0;
    }

    @media (max-width: 1199px) {
      padding: rem(30) rem(25);
    }

    @media (max-width: 575px) {
      padding: rem(25) rem(20);
    }

    &-title {
      font-size: rem(24);
      font-weight: 700;
      color: #191825;
      margin-bottom: rem(30);
      display: inline-block;

      @media (max-width: 1199px) {
        font-size: rem(22);
        margin-bottom: rem(25);
      }

      @media (max-width: 575px) {
        font-size: rem(20);
        margin-bottom: rem(20);
      }
    }
  }

  // Refined Search Widget
  &__search {
    &-inner {
      position: relative;
      background: #fff;
      border-radius: rem(8);
      padding: rem(5);
      display: flex;
      align-items: center;
    }

    input {
      flex: 1;
      height: rem(50);
      border: none;
      background: transparent;
      padding: 0 rem(25);
      font-size: rem(15);
      font-weight: 600;
      color: #878C8F;
      outline: none;

      @media (max-width: 575px) {
        padding: 0 rem(15);
        font-size: rem(14);
      }

      &::placeholder {
        color: #9DA6AE;
        text-transform: uppercase;
        letter-spacing: rem(1);
      }
    }

    button {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 10px;
      width: rem(45);
      height: rem(45);
      background: $color-primary;
      color: #fff;
      border: none;
      border-radius: rem(8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: rem(20);
      transition: all 0.3s ease;
      flex: none;

      @media (max-width: 575px) {
        width: rem(40);
        height: rem(40);
        font-size: rem(18);
      }

      &:hover {
        background: #191825;
      }
    }
  }

  // Refined Category Widget
  &__cat-list {
    list-style: none;
    padding: 0;
    margin: 0;

    li {
      margin-bottom: rem(15);

      &:last-child {
        margin-bottom: 0;
      }

      a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #fff;
        padding: 7px 7px 7px 20px;
        border-radius: rem(8);
        color: #878C8F;
        text-decoration: none;
        transition: all 0.3s ease;
        font-family: $font-family-base;
        font-weight: 500;
        font-size: rem(18);
        line-height: rem(28);
        letter-spacing: -2%;

        @media (max-width: 1199px) {
          font-size: rem(16);
          padding: 6px 6px 6px 15px;
        }

        @media (max-width: 575px) {
          font-size: rem(15);
        }


        .count {
          background: #f1f3f9;
          color: #191825;
          width: rem(45);
          height: rem(45);
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: rem(8);
          transition: all 0.3s ease;
          font-family: $font-family-base;
          font-weight: 700;
          font-size: rem(15);
          line-height: rem(25);
          letter-spacing: 0%;
          text-align: center;
          background: #EFF3FA;

          @media (max-width: 1199px) {
            width: rem(40);
            height: rem(40);
            font-size: rem(14);
          }
        }

        &:hover,
        &.active {
          color: #191825;

          .count {
            background: $color-primary;
            color: #fff;
          }
        }
      }

      &.active {
        a {
          color: #191825;

          .count {
            background: $color-primary;
            color: #fff;
          }
        }
      }
    }
  }

  // Refined Quote Form
  &__quote-form {
    .form-group {
      margin-bottom: rem(15);
    }

    input,
    select,
    textarea {
      width: 100%;
      background: #fff;
      border: none;
      border-radius: rem(10);
      height: rem(65);
      padding: 0 rem(30);
      font-size: rem(15);
      font-weight: 600;
      color: #878C8F;
      outline: none;
      appearance: none;

      @media (max-width: 1199px) {
        height: rem(55);
        padding: 0 rem(20);
        font-size: rem(14);
      }

      &::placeholder {
        color: #9DA6AE;
        text-transform: uppercase;
        letter-spacing: rem(1);
      }
    }

    textarea {
      height: rem(180);
      padding-top: rem(25);
      resize: none;

      @media (max-width: 1199px) {
        height: rem(140);
        padding-top: rem(15);
      }
    }

    select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%239DA6AE' d='M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right rem(30) center;
      background-size: rem(15);

      @media (max-width: 1199px) {
        background-position: right rem(20) center;
      }
    }

    .submit-btn {
      width: 100%;
      height: rem(80);
      background: $color-primary;
      color: #fff;
      font-size: rem(16);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: rem(1);
      border-radius: rem(40);
      border: none;
      display: flex;
      align-items: center;
      padding-left: rem(40);
      position: relative;
      overflow: hidden;
      margin-top: rem(20);
      transition: all 0.3s ease;
      cursor: pointer;

      @media (max-width: 1199px) {
        height: rem(65);
        padding-left: rem(30);
        font-size: rem(14);
      }

      &::after {
        content: "\f061";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        background: #000;
        width: rem(120);
        height: rem(120);
        position: absolute;
        right: rem(-15);
        top: 50%;
        transform: translateY(-50%) rotate(15deg);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: rem(20);
        border-radius: 40% 60% 40% 60% / 50%;
        padding-right: rem(15);
        transition: all 0.3s ease;

        @media (max-width: 1199px) {
          width: rem(100);
          height: rem(100);
          font-size: rem(16);
        }
      }

      &:hover {
        background: #191825;

        &::after {
          right: 0;
          color: $color-primary;
        }
      }
    }
  }

  // Refined Tags Widget
  &__tags {
    display: flex;
    flex-wrap: wrap;
    gap: rem(12);

    .tag-link {
      background: #fff;
      padding: rem(13) rem(20);
      border-radius: rem(10);
      color: #191825;
      font-family: $font-family-base;
      font-weight: 600;
      font-size: 16px;
      line-height: 25px;
      letter-spacing: 0%;
      text-transform: capitalize;
      text-decoration: none;
      transition: all 0.3s ease;

      @media (max-width: 1199px) {
        padding: rem(10) rem(15);
        font-size: rem(14);
      }

      &:hover {
        background: $color-primary;
        color: #fff;
      }
    }
  }

  // Refined FAQ Accordion
  &__faq {
    margin-top: rem(50);

    @media (max-width: 767px) {
      margin-top: rem(30);
    }

    .accordion-item {
      border: none;
      background: transparent;
      margin-bottom: rem(20);
      border-radius: 8px;

      &:last-child {
        margin-bottom: 0;
      }
    }

    .accordion-button {
      background: #fff;
      border: rem(1) solid #00000026;
      border-radius: rem(8) !important;
      padding: rem(30) rem(40);
      font-size: rem(22);
      font-weight: 700;
      color: #191825;
      box-shadow: none;
      display: flex;
      align-items: center;
      gap: rem(25);
      flex-direction: row;

      @media (max-width: 1199px) {
        padding: rem(20) rem(25);
        font-size: rem(18);
        gap: rem(15);
      }

      &::before {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: rem(20);
        color: #9DA6AE;
        transition: all 0.3s ease;

        @media (max-width: 1199px) {
          font-size: rem(16);
        }
      }

      &::after {
        display: none;
      }

      &:not(.collapsed) {
        background: #f1f3f9;
        border-color: #f1f3f9;
        color: #191825;

        &::before {
          transform: rotate(180deg);
          color: $color-primary;
        }
      }
    }

    .accordion-body {
      background: #EFF3FA;
      padding: rem(20) rem(40) rem(30) rem(85);
      color: #878C8F;
      font-size: rem(17);
      line-height: $line-height-base;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;

      @media (max-width: 1199px) {
        padding: rem(20) rem(25) rem(20) rem(55);
        font-size: rem(15);
      }
    }

    // Special state from reference
    .accordion-item {
      .accordion-button:not(.collapsed) {
        background: #f1f3f9;
        padding-bottom: 0;
      }
    }
  }
}