:host {

  ::ng-deep gb-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  ::ng-deep gb-textarea .mat-mdc-form-field {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  ::ng-deep gb-textarea .mat-mdc-text-field-wrapper,
  ::ng-deep gb-textarea .mat-mdc-form-field-flex,
  ::ng-deep gb-textarea .mat-mdc-form-field-infix {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  ::ng-deep gb-textarea textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical; 
  }

  @media screen and (max-width: 1024px) {
    ::ng-deep .FormOverView {
      padding: 0 12px;
      box-sizing: border-box;
      overflow-x: hidden;
    }

    ::ng-deep .FormOverView > div[style*="display: flex"] {
      gap: 16px;
    }
  }

  @media screen and (max-width: 900px) {
    ::ng-deep .FormOverView > div[style*="display: flex"] {
      gap: 12px;
    }
  }

  @media screen and (max-width: 768px) {
    ::ng-deep .FormOverView {
      padding: 0 8px;
      box-sizing: border-box;
      overflow-x: hidden;
      width: 100%;
    }

    ::ng-deep .FormOverView > div[style*="display: flex"] {
      flex-direction: column;
      gap: 10px;
      width: 100%;
      align-items: flex-start;
    }

    ::ng-deep .FormOverView > div[style*="display: flex"] > gb-newpicklist {
      width: 100%;
      display: block;
    }

    ::ng-deep .FormOverView > div[style*="display: flex"] > gb-checkbox {
      margin-top: 4px;
    }

    ::ng-deep gb-newpicklist,
    ::ng-deep gb-checkbox {
      width: 100%;
      display: block;
    }

    ::ng-deep gb-textarea,
    ::ng-deep gb-textarea .mat-mdc-form-field,
    ::ng-deep gb-textarea .mat-mdc-text-field-wrapper,
    ::ng-deep gb-textarea .mat-mdc-form-field-flex,
    ::ng-deep gb-textarea .mat-mdc-form-field-infix,
    ::ng-deep gb-textarea textarea {
      width: calc(100vw - 150px) !important;
      max-width: calc(100vw - 150px) !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }
  }

  @media screen and (max-width: 480px) {
    ::ng-deep .FormOverView {
      padding: 0 4px;
      overflow-x: hidden;
    }

    ::ng-deep .FormOverView > div[style*="display: flex"] {
      gap: 8px;
      margin-bottom: 8px;
    }

    ::ng-deep .FormOverView > * {
      margin-bottom: 10px;
    }

    ::ng-deep gb-textarea,
    ::ng-deep gb-textarea .mat-mdc-form-field,
    ::ng-deep gb-textarea .mat-mdc-text-field-wrapper,
    ::ng-deep gb-textarea .mat-mdc-form-field-flex,
    ::ng-deep gb-textarea .mat-mdc-form-field-infix,
    ::ng-deep gb-textarea textarea {
      width: calc(100vw - 100px) !important;
      max-width: calc(100vw - 100px) !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }

    ::ng-deep gb-textarea textarea {
      min-height: 80px;
      font-size: 14px; 
      padding: 8px;
    }
  }


  @media screen and (max-width: 360px) {
    ::ng-deep .FormOverView {
      padding: 0 2px;
    }

    ::ng-deep gb-textarea,
    ::ng-deep gb-textarea .mat-mdc-form-field,
    ::ng-deep gb-textarea .mat-mdc-text-field-wrapper,
    ::ng-deep gb-textarea .mat-mdc-form-field-flex,
    ::ng-deep gb-textarea .mat-mdc-form-field-infix,
    ::ng-deep gb-textarea textarea {
      width: calc(100vw - 60px) !important;
      max-width: calc(100vw - 60px) !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
    }

    ::ng-deep gb-textarea textarea {
      min-height: 70px;
    }
  }
}