/* Loading States

.spiner_wrapper
  display: inline-block
  width: 5rem
  height: 5rem
  position: relative
  .spinner-border
    display: inline-block
    width: 5rem
    height: 5rem
    vertical-align: -0.125em
    border: 0.25em solid currentcolor
    border-right-color: transparent
    border-radius: 50%
    animation: 0.75s linear infinite spinner-border
    &-sm
      width: 1rem
      height: 1rem
      border-width: 0.2em
  .sr-only
    position: absolute
    top: 2rem
    color: #fff
    font-size: 13px
    width: 100%
    text-align: center


@-webkit-keyframes spinner-border
  to
    transform: rotate(360deg)

@keyframes spinner-border
  to
    transform: rotate(360deg)

.loading-state
  opacity: 0.6
  pointer-events: none

.appointment-wizard
  position: relative
  .error-message
    display: flex
    position: absolute
    top: 1rem
    right: 1rem
    z-index: 50
    padding: 0.25rem 0.65rem 0.25rem 1rem
    gap: 0.25rem
    justify-content: space-between
    align-items: center
    border-radius: 0.25rem
    border-width: 1px
    border-color: #F87171
    max-width: 28rem
    font-size: 0.875rem
    line-height: 1.25rem
    color: #B91C1C
    background-color: #FEE2E2
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)

  .loading-overlay
    display: flex
    position: absolute
    top: 0
    right: 0
    bottom: 0
    left: 0
    justify-content: center
    align-items: center
    background-color: rgba(107, 114, 128, 0.7)
    z-index: 99

  .btn
    padding-top: 0.5rem
    padding-bottom: 0.5rem
    padding-left: 1.5rem
    padding-right: 1.5rem
    border-radius: 0.5rem
    border-width: 0
    font-weight: 500
    transition-property: all
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)
    transition-duration: 300ms
    transition-duration: 300ms
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1)
    line-height: 1.5
    &.btn-outline-secondary
      background-color: #f8f9fa
      &:hover
        color: $white
        background-color: $secondary
        border-color: $secondary

  .form-group
    label
      margin-bottom: .3rem
      font-size: 1rem
      display: block
    select.form-control
      appearance: none
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")
      background-position: right 0.5rem center
      background-repeat: no-repeat
      background-size: 1.5em 1.5em
      padding-right: 2.5rem
      -webkit-print-color-adjust: exact
      print-color-adjust: exact

    .custom-control-label
      margin-bottom: 0
  .custom-control
    position: relative
    display: flex
    min-height: 1.7rem
    padding-left: 0 
    align-items: center 

  .form-control
    padding-top: 0.6rem
    padding-bottom: 0.6rem
    padding-left: 1rem
    padding-right: 1rem
    border-radius: 5px
    border-width: 1px
    border-color: #D6DAE0
    width: 100%
    font-size: 1rem
    line-height: 1.2
    background-color: rgba(245, 245, 245, .25)
    &:focus
      box-shadow: none

  .custom-control-label::after
    background-color: rgba(245, 245, 245, .25)

/* Personal Info Step

.appointment-personal-info
  .company_logos_container 
    width: 7rem
    height: auto
    img
      transition: transform 0.5s ease
      max-width: 100%
      &:hover
        transform: scale(1.3)
  .form-group
    margin-bottom: 1.5rem !important
    .invalid-feedback
      position: absolute
  h1
    font-weight: 600
    color: #ffff
    margin-top: 0
    margin-bottom: 1.5rem
    font-size: 2.7rem
  h2
    font-size: 1.5rem
  p
    color: #fff
    font-size: 1.3rem
    font-weight: 300

  .image-section
    padding-right: 5rem
    min-height: 100%
    display: flex
    flex-direction: column
    justify-content: center

    .image-content
      position: relative
      height: 100%

      .people-image
        object-fit: cover
        position: absolute
        width: 100%
        height: auto
        bottom: 4rem

      .logos-image
        object-fit: cover
        position: absolute
        width: 100%
        height: auto

  .black-div-bg
    position: absolute
    bottom: 0
    left: 0
    width: 100%
    height: 24rem
    object-fit: cover
    z-index: 2

  .form-section
    display: flex
    align-items: center
    z-index: 10
    height: 100%

  .form-card
    max-width: 100%
    margin: 0 auto
    width: 100%
    border-radius: 10px

/* Form Validation States

.form-control.is-invalid
  border-color: #dc3545
  background-color: #fef2f2

.checkbox-error
  padding: 0.5rem
  border: 1px solid #f5c6cb
  border-radius: 0.25rem
  background-color: #f8d7da

/* Company Dropdown

.company-dropdown
  position: absolute !important
  top: 100% !important
  left: 0 !important
  right: 0 !important
  margin-top: 0.125rem
  border: 1px solid rgba(0, 0, 0, 0.15)
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175)

  .dropdown-item
    padding: 0.35rem 1rem
    cursor: pointer

    &:hover
      background-color: #f8f9fa

  .company-results
    max-height: 300px
    overflow-y: auto
    overflow-x: hidden

  .company-name
    font-size: 0.825rem
    font-weight: 500
    color: $gray-800

  .company-domain
    font-size: 0.75rem
    color: $gray-500

/* Service Selection Cards

.service-card
  transition: all 0.3s ease
  cursor: pointer

  &:hover
    transform: translateY(-5px)

.shadow-hover:hover
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.175) !important


.service-icon
  width: 50px
  height: 50px
  border-radius: 50%
  display: flex
  align-items: center
  justify-content: center
  transition: all 0.3s ease

.service-icon-support
  color: #28a745

.service-icon-sales
  color: #007bff

.service-card:hover .service-icon
  transform: rotate(12deg)

/* Date Time Selection

.appointment-datetime-selection
  height: 690px
  background-color: #fff
  border-radius: 10px
  padding: 2rem
  @include custom_desktop
    height: 620px
  @include tablet
    height: 590px
  @include tablet-ls
    height: 590px

  h2
    font-weight: 600
    font-size: 2.25rem
  .row
    .date-selection,
    .time-slot-selection
      display: flex
      flex-direction: column
      height: 95%
      border: 1px solid #D6DAE0
      border-radius: 10px
      padding: 1rem
      margin-bottom: 1rem
      @inclue tablet
        height: 75%
      @inclue tablet-ls
        height: 75%

      @include phone
        height: auto

  .time-slots-container
    flex-grow: 1
    overflow-y: auto
    display: flex
    flex-direction: column
    justify-content: center 
    align-items: center  
    min-height: 300px
    @include phone
      min-height: auto
    &.has-content
      justify-content: flex-start  // aligns content at top when slots exist
      align-items: stretch         // allows grid to fill full width

      .col-6.col-sm-4.col-md-3:nth-last-child(-n + 4)
        margin-bottom: 0 !important

.appointment-datetime-selection
  .time-slots-container.has-content
    @media (min-width: 768px)
      .col-md-3:nth-last-child(-n + 4)
        margin-bottom: 0 !important

    @media (min-width: 576px) and (max-width: 767.98px)
      .col-sm-4:nth-last-child(-n + 3)
        margin-bottom: 0 !important

    @media (max-width: 575.98px)
      .col-6:nth-last-child(-n + 2)
        margin-bottom: 0 !important


.time-slots-container
  min-height: 0
  overflow-y: auto

/* Calendar Styles Override

.simple-calendar
  background: white
  border-radius: 0.5rem
  max-width: 100%
  margin: 0 auto
  overflow: hidden

.calendar-header
  display: flex
  justify-content: space-between
  align-items: center
  padding: .75rem .25rem
  background: #fff
  span
    font-weight: 600
    font-size: 1.2rem

  button.btn
    background: none
    border: none
    font-size: 1.25rem
    cursor: pointer
    padding: 0.25rem 0.5rem
    border-radius: 0.25rem

    &:hover
      background-color: rgba(77,77,77,0.05)

.calendar-weekdays
  display: grid
  grid-template-columns: repeat(7, 1fr)
  background: #fff

.weekday
  padding: 0.75rem 0.5rem
  text-align: center
  font-size: 1rem
  font-weight: 600
  color: #000
  text-transform: uppercase

.calendar-days
  display: grid
  grid-template-columns: repeat(7, 1fr)
  gap: 1px
  background: #fff

.calendar-day
  background: white
  padding: 0.75rem 1.3rem
  text-align: center
  cursor: pointer
  min-height: 40px
  display: flex
  align-items: center
  justify-content: center
  font-size: 1rem
  font-weight: 600
  border-radius: 35px
  @include tablet
    padding: 0.4rem 0.8rem
    min-height: 32px
  @include tablet-ls
    padding: 0.4rem 0.8rem
    min-height: 32px
  &.empty
    &:hover:not(.disabled):not(.selected)
      background-color: #fff
      color: #ccc
      cursor: default
  &.available
    &:hover:not(.disabled):not(.selected)
      background-color: #8CC541
      color: #000
      cursor: pointer

  &.today
    font-weight: 600
    background-color: #fff3cd
    color: #856404

  &.selected
    background-color: #8CC541
    color: #000
    font-weight: 600

  &.disabled
    color: #B4B4B4
    cursor: not-allowed

/* Time Slot Buttons

.slot-button
  transition: all 0.2s ease
  background-color: #f8f9fa

  &:hover:not(:disabled)
    transform: translateY(-2px)
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1)

  &.active
    background-color: #92278F !important
    border-color: #92278F !important
    color: white !important

/* Confirmation Step

.animate-fadeIn
  animation: fadeIn 0.7s ease-in

@keyframes fadeIn
  from
    opacity: 0
    transform: translateY(20px)

  to
    opacity: 1
    transform: translateY(0)

.success-icon-wrapper
  display: inline-block

.success-icon
  width: 60px
  height: 60px
  background-color: #28a745
  border-radius: 50%
  display: flex
  align-items: center
  justify-content: center
  color: white
  font-size: 1.5rem

.pulse
  animation: pulse 2s infinite

@keyframes pulse
  0%
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4)

  70%
    box-shadow: 0 0 0 10px rgba(40, 167, 69, 0)

  100%
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0)



/* Recording Indicator Animation

.blink
  animation: blink-animation 1s infinite

@keyframes blink-animation
  0%
    opacity: 1

  50%
    opacity: 0

  100%
    opacity: 1

/* Responsive Adjustments
@media (max-width: 767.98px)
  .appointment-wizard
    padding: 0
    box-shadow: none !important
    border: none !important
    .personal-info-template 
      .card
        border: none !important
    .card-body
      padding: 0 !important
  .service-card .card-body
    padding: 2rem !important

  .appointment-personal-info .form-card
    padding: 0 !important
    box-shadow: none
    border: none !important

  .time-slots-container
    max-height: 300px
    @include tablet
      max-height: 200px
    @include tablet-ls
      max-height: 200px
  .appointment-datetime-selection
    height: 100%


/* Print Styles
@media print
  .calendar-header button, #error-message, #loading-overlay, #recording-indicator, .slot-button:not(.active)
    display: none !important

/* Utilities

.shadow-hover
  transition: box-shadow 0.3s ease

/* Custom scrollbar for time slots

.time-slots-container
  &::-webkit-scrollbar
    width: 8px

  &::-webkit-scrollbar-track
    background: #f1f1f1
    border-radius: 4px

  &::-webkit-scrollbar-thumb
    background: #888
    border-radius: 4px

    &:hover
      background: #555

.appointment_wrapper_main
  background-size: cover
  background-repeat: no-repeat
  background-position: center
  padding: 7rem 0 5rem
  min-height: 100vh
  display: flex
  align-items: center
  @include tablet
    min-height: auto
  @include tablet-ls
    min-height: auto
  .country_phone_wrap
    .input-group
      .iti
        width: 100%
  img
    max-width: 100%
    &.appointment_hero_image
      border-radius: 10px
      @include tablet
        display: unset
        margin-bottom: 1.5rem
      @include tablet-ls
        display: unset
      @include phone
        display: none
  .appointment-company
    display: flex
    justify-content: space-between
    align-items: center
    margin-bottom: 2rem
  .personal-info-btn-1
    display: flex
    align-items: center
    justify-content: center
    margin-top: 1.5rem
    #personal-info-submit
      background-color: #92288F
      border: 1px solid #92288F
      color: #fff
      border-radius: 35px
      font-size: 1.2rem
      padding: 1rem 2.5rem
      width: 100%
      display: flex
      align-items: center
      font-weight: 600
      justify-content: center
      cursor: pointer
      &:hover
        opacity: 0.8
      svg
        margin-left: 10px
  .custom-control
    position: relative;
    display: inline-block
    width: auto
    margin: 6px 10px 6px 0
    padding: 0
  .custom-control-input
    position: absolute
    opacity: 0
  .custom-control-label
    padding: 0.7rem 1.5rem
    background-color: #fff 
    color: #000
    border-radius: 6px
    border: 1px solid #D6DAE0
    cursor: pointer
    font-size: 1rem !important
    transition: 0.25s ease
    border-radius: 35px
    user-select: none
    &:before
      display: none !important
    &:after
      display: none !important
    &:hover
      background-color: #8CC541
      color: #000
      border-color: #8CC541
      @include tablet
        background-color: unset
        border-color: unset
      @include tablet-ls
        background-color: unset
        border-color: unset
      @include phone
        background-color: unset
        border-color: unset
  .custom-control-input:checked + .custom-control-label
    background: #8CC541
    color: #000
    border-color: #8CC541
    font-weight: normal
  #products-container
    margin-top: 0
  .form-section
    .card-body
      padding: 1.5rem !important
  #slots-container
    max-height: 300px
    @include tablet
      max-height: 200px
      overflow-x: hidden
    @include tablet-ls
      max-height: 200px
      overflow-x: hidden
    @include phone
      max-height: 160px
    button
      border: 1px solid #000000
      background-color: #fff
      border-radius: 35px
      font-size: 1rem
      padding: 0.7rem 2rem
      @include tablet
        padding: 0.4rem 0.8rem
      @include tablet
        padding: 0.4rem 0.8rem
      &:hover
        background: #8CC541 !important
        border-color: #8CC541 !important
        color: #000 !important
      &.active
        background: #8CC541 !important
        border-color: #8CC541 !important
        color: #000 !important
        &:focus
          box-shadow: 0 0 0 .25rem rgba(140, 197, 65, 0.5)
  .text-italic
    font-style: italic
  #confirm-slot-button
    background-color: #92278f !important
    color: #fff !important
    border-radius: 35px
    padding: 0.7rem 2.5rem
    font-weight: 600
    font-size: 1rem
    &:hover
      opacity: 0.8
  .btn-back
    border-radius: 35px
    padding: 0.7rem 0
    color: #92278f
    display: flex
    align-items: center
    font-weight: 600
    font-size: 1rem
    cursor: pointer
    border: none
    background-color: #fff
    svg
      margin-right: 10px
      width: 1.5rem
  .badge
    color: #000
    background-color: #ededed
    svg
      margin-right: 5px
.appointment-service-selection
  height: 690px
  background-color: #fff
  border-radius: 10px
  padding: 2rem
  @include custom_desktop
    height: 620px
  @include tablet
    height: 590px
  @include tablet-ls
    height: 590px
  @include phone
    height: auto
  .service-card
    border: 1px solid #D6DAE0
    border-radius: 10px
    padding: 1.5rem
    .card-body
      display: flex
      flex-direction: column
      justify-content: space-between
    .service-icon-wrapper
      display: flex
      justify-content: space-between
      align-items: center
      h3
        margin: 0
        font-size: 1.8rem
      h2
        font-weight: 600
        font-size:  
    .contact-btn-wrap
      display: flex
      justify-content: end
      .btn_sales
        background-color: #92278f !important
        border: 1px solid #92278f !important
        color: #fff !important
        border-radius: 35px
        padding: 1rem 1.8rem
        font-size: 1rem
        cursor: pointer
      .btn_support
        background-color: #8CC541 !important
        border: 1px solid #8CC541 !important
        color: #000 !important
        border-radius: 35px
        padding: 1rem 1.8rem
        font-size: 1rem
        cursor: pointer
  .contact_tile_bottom
    span
      font-weight: 600

.appointment-confirmation
  height: 690px
  background-color: #fff
  border-radius: 10px
  padding: 2rem
  @include custom_desktop
    height: 620px
  @include tablet
    height: 590px
  @include tablet-ls
    height: 590px
  @include phone
    height: auto
  .appointment-details-wrap
    border: 1rem solid #F4F2F1
    padding: 0
    overflow: hidden
    margin-bottom: 1.5rem
  .appointment-details
    border: 1px dashed #8CC541
    padding: 1.5rem 2rem
    position: relative
    background-color: #fff

    &:before, &:after
      content: ""
      position: absolute
      width: 30px
      height: 30px
      border: 1px dashed #8CC541
      border-radius: 50%
      background: #F4F2F1

    &:before
      top: -15px
      left: 74%
      transform: translateX(-74%)

    &:after
      bottom: -15px
      left: 74%
      transform: translateX(-74%)

  h2
    font-weight: normal
  .recording-icon
    margin-right: 8px
  .back_to_home
    a
      cursor: pointer
      font-size: 1.2rem
      text-decoration: underline
  .confirm-top-icon
    height: 50px
    max-width: 100%
  

      
