@import url('../../../gbhost/public/gbstyle/gbcommonstyle.scss');

#backbutton {
  width: 48px;
  height: 32px;
  border-radius: 4px;
  outline-style: none;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  display: flex;
  box-shadow: 0px 2px 2px 0px #0000000F;
  cursor: pointer;

}

.pagebutton {
  margin: 0px 3px;
  width: 48px;
  height: 32px;
  font-size: 16px;
  outline-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.correctimage {
  // margin-left: 5%;
  width: 300px;
}

::ng-deep gb-gbimage .imagephotocontact {
  width: 200px !important;
  height: 200px !important;
  font-size: 120px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--action-primary-default);
  border-radius: 6px;
  cursor: pointer;
  color: var(--action-primary-default);
}

::ng-deep gb-gbimage .userImagecontact {
  width: 200px !important;
  height: 200px !important;
  font-size: 120px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--action-primary-default);
  border-radius: 6px;
  transform: translate(25%, -50%);
}


.addresshead {
  color: var(--action-primary-default);
  font-family: Helvetica;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 21px;
  margin-top: 40px;
  display: inline-block;
}

.firstclass {
  margin-left: 20px;
  width: 300px;
  height: 320px;
}

.secondclass {
  margin-left: 80px;
  width: 300px;
  height: 250px;
}

.thirdclass {
  margin-left: 20px;
  width: 300px;
  height: 250px;
}

.isd {
  text-decoration: underline;
  border: none;
  outline-style: none;
  font-size: 16px;
  color: var(--mat-sys-inverse-surface, rgba(26, 26, 26, 0.87)) !important;
}


.DocContainer {
  position: relative;
  top: 20px;
  margin-left: 36px;
}

@media (max-width: 1199px) {
  .correctimage > div:first-child {
    margin-top:  0 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .correctimage > div:last-child {
    position:    static !important;
    margin-top:  0 !important;
    margin-left: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .firstclass > div:first-child > div:nth-child(2) {
    padding-left: 0 !important;
  }

  .secondclass > div[style*="-8px"] {
    margin-left: 0 !important;
  }

  .correctimage { order: 0; gap: 0px;}
  div[style*="margin-left: 5%"] { order: 100; }

  
  ::ng-deep gb-input {
    width: 100% !important;
    max-width: 270px !important;
    display: block !important;
  }
  ::ng-deep gb-input > *,
  ::ng-deep gb-input input,
  ::ng-deep gb-input .mat-mdc-form-field,
  ::ng-deep gb-input mat-form-field,
  ::ng-deep gb-input .mat-form-field,
  ::ng-deep gb-input .inputcontainer,
  ::ng-deep gb-input .mat-mdc-text-field-wrapper,
  ::ng-deep gb-input .mat-mdc-form-field-flex,
  ::ng-deep gb-input .mat-mdc-form-field-infix {
    width: 100% !important;
    max-width: 270px !important;
  }

  ::ng-deep gb-combobox {
    width: 270px !important;
    max-width: 270px !important;
    display: block !important;
  }
  ::ng-deep gb-combobox > *,
  ::ng-deep gb-combobox select,
  ::ng-deep gb-combobox .mat-mdc-form-field,
  ::ng-deep gb-combobox mat-form-field,
  ::ng-deep gb-combobox .mat-form-field,
  ::ng-deep gb-combobox .inputcontainer,
  ::ng-deep gb-combobox .mat-mdc-text-field-wrapper,
  ::ng-deep gb-combobox .mat-mdc-form-field-flex,
  ::ng-deep gb-combobox .mat-mdc-form-field-infix {
    width: 270px !important;
    max-width: 270px !important;
  }

  ::ng-deep gb-combobox .mat-mdc-select {
  width: 100% !important;
}

::ng-deep gb-combobox .mat-mdc-select-arrow-wrapper {
  position: absolute !important;
  right: 30px !important;
}

  ::ng-deep gb-newpicklist {
    width: 100% !important;
    max-width: 270px !important;
    display: block !important;
  }
  ::ng-deep gb-newpicklist > *,
  ::ng-deep gb-newpicklist .mat-mdc-form-field,
  ::ng-deep gb-newpicklist mat-form-field,
  ::ng-deep gb-newpicklist .mat-form-field,
  ::ng-deep gb-newpicklist .inputcontainer,
  ::ng-deep gb-newpicklist .mat-mdc-text-field-wrapper,
  ::ng-deep gb-newpicklist .mat-mdc-form-field-flex,
  ::ng-deep gb-newpicklist .mat-mdc-form-field-infix {
    width: 100% !important;
    max-width: 270px !important;
  }
}


@media (min-width: 768px) and (max-width: 1199px) {
  form {
    display:    block;
    height:     calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .FormOverView {
    overflow:   visible !important;
    height:     auto !important;
    min-height: unset !important;
    max-height: none !important;
    padding-bottom: 32px;
  }

  .FormOverView > div:first-child {
    display:        flex !important;
    flex-direction: row !important;
    flex-wrap:      wrap !important;
    align-items:    flex-start !important;
    gap:            12px 14px !important;
    padding:        12px 14px !important;
  }

  
  .correctimage {
    width:           100% !important;
    display:         flex !important;
    flex-direction:  column !important;
    justify-content: center !important;
    align-items:     center !important;
    gap:             0 !important;
    margin:          0 0 15px !important;
    padding:         0 !important;
  }

  .correctimage > div:first-child {
    margin-bottom: -130px !important;
    z-index: 1;
    position: relative;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  gb-gbimage {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  ::ng-deep gb-gbimage .imagephotocontact,
  ::ng-deep gb-gbimage .userImagecontact {
    width:     130px !important;
    height:    130px !important;
    font-size: 78px  !important;
    transform: none  !important;
    margin:    0 !important;
    position:  static !important;
  }

  .correctimage > div:last-child {
    z-index: 2;
    position: relative;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  gb-gbliveimage {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  ::ng-deep gb-gbliveimage .container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 15px !important;
    min-height: auto !important;
  }

  ::ng-deep gb-gbliveimage .content,
  ::ng-deep gb-gbliveimage .video-preview {
    width: 130px !important;
    height: 130px !important;
  }

  ::ng-deep gb-gbliveimage .sidebar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 10px !important;
  }

  ::ng-deep gb-gbliveimage .sideview {
    margin: 0 !important;
    width: 80px !important;
    height: 65px !important;
    padding: 6px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    border: 1px solid var(--action-primary-default) !important;
    transition: all 0.2s ease-in-out;
  }
  
  ::ng-deep gb-gbliveimage .sideview:active {
    transform: scale(0.95);
  }

  ::ng-deep gb-gbliveimage .sideview mat-icon {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 4px !important;
  }

  ::ng-deep gb-gbliveimage .sideview span {
    font-size: 11px !important;
    font-weight: 500;
  }

  .firstclass,
  .secondclass,
  .thirdclass {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .firstclass > *,
  .secondclass > *,
  .thirdclass > * {
    width:  calc(50% - 7px) !important;
    margin: 0 !important;
    order: 10;
  }

  .fname-order { order: 2 !important; }
  .mname-order { order: 3 !important; }
  .lname-order { order: 4 !important; }

  .firstclass > .salutation-group {
    order: 1 !important;
    display:       flex !important;
    flex-wrap:     wrap !important;
    gap:           12px !important;
    align-items:   flex-start !important;
    margin-bottom: 6px !important;
    width:         100% !important;
    max-width:     none !important;
  }

  .thirdclass > div[style*="display: flex"] {
    display:        flex !important;
    flex-direction: row !important;
    align-items:    center !important;
    width:          calc(50% - 7px) !important;
    min-width:      180px;
    gap:            4px !important;
  }

  .thirdclass > div[style*="display: flex"] > div:first-child {
    display:   none !important;
  }

  .thirdclass > div[style*="display: flex"] > div:first-child:has(gb-input) {
    display:   block !important;
    flex:      0 0 auto;
    min-width: 56px;
    max-width: 74px;
  }

  .thirdclass > div[style*="display: flex"] > div:last-child {
    flex:        1 1 auto;
    min-width:   0;
    margin-left: 0 !important;
  }

  .DocContainer {
    position:    relative;
    top:         4px;
    margin-left: 10px;
  }

  div[style*="margin-left: 5%"] {
    margin-left: 0 !important;
    align-self:  center;
  }

  div[style*="margin-left: 20px"][style*="margin-top: 20px"] {
    margin-left: 14px !important;
    margin-top:  12px !important;
  }

  .addresshead { margin-top: 0; }

  .addresscontainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

}


@media (max-width: 767px) {

  form {
    display:    block;
    height:     calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .FormOverView {
    overflow:   visible !important;
    height:     auto !important;
    min-height: unset !important;
    max-height: none !important;
    padding-bottom: 48px;
  }

  .FormOverView > div:first-child {
    display:        flex !important;
    flex-direction: column !important;
    flex-wrap:      nowrap !important;
    align-items:    stretch !important;
    gap:            0 !important;
    padding:        8px !important;
  }

  .correctimage {
    width:           100% !important;
    display:         flex !important;
    flex-direction:  column !important;
    justify-content: center !important;
    align-items:     center !important;
    gap:             0 !important;
    margin:          0 0 15px !important;
    padding:         12px 0 15px !important;
    border-bottom:   1px solid var(--color-border-tertiary);
  }

  .correctimage > div:first-child {
    margin-bottom: -90px !important;
    z-index: 1;
    position: relative;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  gb-gbimage {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  ::ng-deep gb-gbimage .imagephotocontact,
  ::ng-deep gb-gbimage .userImagecontact {
    width:         90px  !important;
    height:        90px  !important;
    font-size:     54px  !important;
    transform:     none  !important;
    border-radius: 6px   !important;
    margin:        0 !important;
    position:      static !important;
  }

  .correctimage > div:last-child {
    z-index: 2;
    position: relative;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  gb-gbliveimage {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  ::ng-deep gb-gbliveimage .container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  ::ng-deep gb-gbliveimage .content,
  ::ng-deep gb-gbliveimage .video-preview {
    width: 90px !important;
    height: 90px !important;
  }

  ::ng-deep gb-gbliveimage .sidebar {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 8px !important;
  }

  ::ng-deep gb-gbliveimage .sideview {
    margin: 0 !important;
    width: 70px !important;
    height: 60px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
    border: 1px solid var(--action-primary-default) !important;
    transition: all 0.2s ease-in-out;
  }
  
  ::ng-deep gb-gbliveimage .sideview:active {
    transform: scale(0.95);
  }

  ::ng-deep gb-gbliveimage .sideview mat-icon {
    font-size: 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
  }

  ::ng-deep gb-gbliveimage .sideview span {
    font-size: 10px !important;
    font-weight: 500;
  }

  .firstclass,
  .secondclass,
  .thirdclass {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
  }

  .firstclass > *,
  .secondclass > *,
  .thirdclass > * {
    order: 10;
    width: 100% !important;
    margin: 0 0 6px !important;
  }



  .firstclass > .salutation-group {
    order: 1 !important;
    display:       flex !important;
    flex-wrap:     wrap !important;
    gap:           8px !important;
    align-items:   flex-start !important;
    margin-bottom: 2px !important;
    max-width:     none !important;
  }

  .fname-order { order: 2 !important; }
  .mname-order { order: 3 !important; }
  .lname-order { order: 4 !important; }

 
  .DocContainer {
    position:    static !important;
    top:         0 !important;
    margin-left: 0 !important;
    margin-top:  6px !important;
    width:       auto;
  }

  .thirdclass > div[style*="display: flex"] {
    display:        flex !important;
    flex-direction: row !important;
    align-items:    center !important;
    width:          100% !important;
    margin-bottom:  4px;
    gap:            4px !important;
  }

  .thirdclass > div[style*="display: flex"] > div:first-child {
    display:   none !important;
  }

  .thirdclass > div[style*="display: flex"] > div:first-child:has(gb-input) {
    display:   block !important;
    flex:      0 0 auto;
    min-width: 50px;
    max-width: 66px;
  }

  .thirdclass > div[style*="display: flex"] > div:last-child {
    flex:        1 1 auto;
    min-width:   0;
    margin-left: 0 !important;
  }

  div[style*="margin-left: 5%"] {
    margin-left: 0 !important;
    align-self:  flex-end !important;
    width:       auto !important;
  }

  #backbutton {
    position: fixed;
    top:      64px;
    right:    8px;
    z-index:  1000;
    width:    36px;
    height:   36px;
  }

  .pagebutton {
    width:     36px;
    height:    36px;
    font-size: 14px;
  }

  div[style*="margin-left: 20px"][style*="margin-top: 20px"] {
    margin-left: 0 !important;
    margin-top:  10px !important;
    padding:     0 !important;
  }

  .addresshead {
    margin-top: 2px;
    font-size:  13px;
  }

  .addresscontainer {
    width:      100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  gb-formaction {
    display: block;
    width:   100%;
  }

}


@media (max-width: 380px) {

  .FormOverView > div:first-child {
    padding: 6px !important;
  }

  .firstclass > div:first-child {
    flex-direction: column !important;
    gap:            6px !important;
  }

  .correctimage {
    gap: 0 !important;
  }

  .correctimage > div:first-child {
    margin-bottom: -78px !important;
  }

  ::ng-deep gb-gbimage .imagephotocontact,
  ::ng-deep gb-gbimage .userImagecontact {
    width:     78px !important;
    height:    78px !important;
    font-size: 44px !important;
  }

  ::ng-deep gb-gbliveimage .content,
  ::ng-deep gb-gbliveimage .video-preview {
    width: 78px !important;
    height: 78px !important;
  }

  ::ng-deep gb-gbliveimage .sidebar {
    gap: 6px !important;
  }

  ::ng-deep gb-gbliveimage .sideview {
    width: 65px !important;
    height: 55px !important;
  }

  .thirdclass > div[style*="display: flex"] > div:first-child {
    min-width: 42px;
    max-width: 56px;
  }
}